tfrecord

AttributeError: 'Tensor' object has no attribute 'numpy' in Tensorflow 2.1

AttributeError: 'Tensor' object has no attribute 'numpy' in Tensorflow 2.1 Question: I am trying to convert the shape property of a Tensor in Tensorflow 2.1 and I get this error: AttributeError: ‘Tensor’ object has no attribute ‘numpy’ I already checked that the output of tf.executing eagerly() is True, A bit of context: I load a …

Total answers: 2

Numpy to TFrecords: Is there a more simple way to handle batch inputs from tfrecords?

Is there a simpler way to handle batch inputs from tfrecords? Question: My question is about how to get batch inputs from multiple (or sharded) tfrecords. I’ve read the example https://github.com/tensorflow/models/blob/master/inception/inception/image_processing.py#L410. The basic pipeline is, take the training set as as example, (1) first generate a series of tfrecords (e.g., train-000-of-005, train-001-of-005, …), (2) from …

Total answers: 1

How to inspect a Tensorflow .tfrecord file?

How to inspect a Tensorflow .tfrecord file? Question: I have a .tfrecord but I don’t know how it is structured. How can I inspect the schema to understand what the .tfrecord file contains? All Stackoverflow answers or documentation seem to assume I know the structure of the file. reader = tf.TFRecordReader() file = tf.train.string_input_producer(“record.tfrecord”) _, …

Total answers: 8