: Use get_tensor_shape instead.
时间: 2023-10-15 18:07:48 浏览: 144
tensor_toolbox.zip_TensorToolbox_tensor_tensor toolbox _tensor_t
5星 · 资源好评率100%
Thank you for your suggestion. "get_tensor_shape" is indeed a better method to use when trying to get the shape of a tensor in TensorFlow. It is more explicit and easier to understand than using "shape" attribute directly.
阅读全文