"docs/source/en/training/unconditional_training.md" did not exist on "3b641eabe9876e7c48977b35331fda54ce972b4a"
Commit cfcbb6cb authored by Ruoxin Sang's avatar Ruoxin Sang Committed by A. Unique TensorFlower
Browse files

Specify the axis explicitly when using `tf.squeueze` to avoid unknown result...

Specify the axis explicitly when using `tf.squeueze` to avoid unknown result shape when the input contains dynamic shape dimensions.

PiperOrigin-RevId: 457858716
parent 218deb71
......@@ -424,8 +424,8 @@ class PostBatchProcessor():
[-1, self.num_classes])
else:
video_matrix = tf.squeeze(video_matrix)
labels = tf.squeeze(labels)
video_matrix = tf.squeeze(video_matrix, axis=1)
labels = tf.squeeze(labels, axis=1)
batched_tensors = {
"video_matrix": video_matrix,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment