Skip to content

Commit

Permalink
Update generated tensor_shape.py.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 561134679
  • Loading branch information
jburnim authored and tensorflower-gardener committed Aug 29, 2023
1 parent 0ff4e3a commit 8cce50a
Showing 1 changed file with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1357,8 +1357,28 @@ def most_specific_common_supertype(

@doc_controls.do_not_doc_inheritable
def placeholder_value(self, placeholder_context):
raise NotImplementedError("A graph placeholder is not currently supported"
"for an object of type: TensorShape.")
"""See tf.types.experimental.TraceType base class."""
return super().placeholder_value(placeholder_context)

@doc_controls.do_not_doc_inheritable
def from_tensors(self, tensors):
"""See tf.types.experimental.TraceType base class."""
return super().from_tensors(tensors)

@doc_controls.do_not_doc_inheritable
def to_tensors(self, value):
"""See tf.types.experimental.TraceType base class."""
return super().to_tensors(value)

@doc_controls.do_not_doc_inheritable
def flatten(self):
"""See tf.types.experimental.TraceType base class."""
return super().flatten()

@doc_controls.do_not_doc_inheritable
def cast(self, value, cast_context):
"""See tf.types.experimental.TraceType base class."""
return super().cast(value, cast_context)

@classmethod
def experimental_type_proto(cls) -> Type[tensor_shape_pb2.TensorShapeProto]:
Expand Down

0 comments on commit 8cce50a

Please sign in to comment.