# TensorProto Source: https://www.tensorplay.cn/docs/generated/tensorplay.onnx.TensorProto.html ```python class tensorplay.onnx.TensorProto ``` ```python ByteSize() ``` Returns the size of the message in bytes. ```python Clear() ``` Clears the message. ```python ClearExtension() ``` Clears a message field. ```python ClearField() ``` Clears a message field. ```python CopyFrom() ``` Copies a protocol message into the current message. ```python DiscardUnknownFields() ``` Discards the unknown fields. ```python Extensions ``` Extension dict ```python FindInitializationErrors() ``` Finds unset required fields. ```python classmethod FromString() ``` Creates new method instance from given serialized data. ```python HasExtension() ``` Checks if a message field is set. ```python HasField() ``` Checks if a message field is set. ```python IsInitialized() ``` Checks if all required fields of a protocol message are set. ```python ListFields() ``` Lists all set fields of a message. ```python MergeFrom() ``` Merges a protocol message into the current message. ```python MergeFromString() ``` Merges a serialized message into the current message. ```python ParseFromString() ``` Parses a serialized message into the current message. ```python SerializePartialToString() ``` Serializes the message to a string, even if it isn’t initialized. ```python SerializeToString() ``` Serializes the message to a string, only for initialized messages. ```python SetInParent() ``` Sets the has bit of the given field in its parent message. ```python UnknownFields() ``` Parse unknown field set ```python WhichOneof() ``` Returns the name of the field set inside a oneof, or None if no field is set.