Following error shows up when i am trying to print the TFRecord using get_records(box - 7) function. Can anyone help ?
TypeError Traceback (most recent call last)
in
1 # Get 3 records from the dataset
----> 2 sample_records = get_records(dataset, 3)
3
4 # Print the output
5 pp.pprint(sample_records)
in get_records(dataset, num_records)
20
21 # Read the example data (output is a protocol buffer message)
—> 22 example.ParseFromString(serialized_example)
23
24 # convert the protocol bufffer message to a Python dictionary
TypeError: a bytes-like object is required, not ‘method’