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']
def get_num_samples(sample_md): yml = read_yaml_tf(sample_md) return yml['num_samples']