TensorArray changes: respect infer_shape argument inside the TensorArray object.
This adds a new attr to the TensorArrayV3 construction op: identical_element_shapes (default False). If True, then shape for all elements is inferred at runtime when any single element is written. The Python TensorArray constructor's "infer_shape" argument is piped through to this attribute. Since it is true by default, this enables runtime element consistency checking on top of the existing graph build time static shape checking. PiperOrigin-RevId: 175862771
Loading
Please sign in to comment