예제 #1
0
def get_num_samples(sample_md):
    yml = read_yaml_tf(sample_md)
    if not yml:
        raise Exception(f"Invalid sample file {sample_md}")
    return yml['num_samples']
예제 #2
0
def get_num_samples(sample_md):
    yml = read_yaml_tf(sample_md)
    return yml['num_samples']