"python/git@developer.sourcefind.cn:change/sglang.git" did not exist on "b57d87c297f6928851b8830389300f6dbe64701c"
Commit 5ab89ea9 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 e6248341
...@@ -424,8 +424,8 @@ class PostBatchProcessor(): ...@@ -424,8 +424,8 @@ class PostBatchProcessor():
[-1, self.num_classes]) [-1, self.num_classes])
else: else:
video_matrix = tf.squeeze(video_matrix) video_matrix = tf.squeeze(video_matrix, axis=1)
labels = tf.squeeze(labels) labels = tf.squeeze(labels, axis=1)
batched_tensors = { batched_tensors = {
"video_matrix": video_matrix, "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