def _get_trained_weight_file(log_path, output_log_file):
    trained_weight_file = None
    with open(output_log_file) as f:
        content = f.read()
        # Note: not all versions of Caffe include the phrase 'binary proto file ' in the log output.
        trained_weight_file = re.findall("Snapshotting to (?:binary proto file )?(.*)$", content,
                re.MULTILINE)[-1]

    return trained_weight_file
Looks at the server handshake bytes to try and detect a different protocol
dataset/ETHPy150Open BradNeuberg/cloudless/src/cloudless/train/train.py/_get_trained_weight_file--crossover with--dataset/ETHPy150Open wbond/oscrypto/oscrypto/_tls.py/detect_other_protocol