ValueInfoProto#
- class onnx_light.onnx.ValueInfoProto(*args, **kwargs)#
Defines information on value, including the name, the type, and the shape of the value.
- CopyFrom(self, arg: onnx_light.onnx_py._onnxpy.ValueInfoProto, /) None#
Copies one instance into this one.
- ParseFromFile(self, name: str, options: object | None = None, external_data_file: str = '') None#
Parses a binary file to fill this instance.
- ParseFromString(self, data: bytes, options: object | None = None) None#
- ParseFromString(self, data: str, options: object | None = None) None
Overloaded function.
ParseFromString(self, data: bytes, options: object | None = None) -> None
Parses a sequence of bytes to fill this instance.
ParseFromString(self, data: str, options: object | None = None) -> None
Parses a string to fill this instance.
- SerializeSize(self, options: object | None = None) onnx_light.onnx_py._onnxpy.SerializeSizeResult#
Returns the size once serialized without serializing.
- SerializeToFile(self, name: str, options: object | None = None, external_data_file: str = '') None#
Serializes this instance into a file. If
external_data_sizeis not empty, big weights are stored in this (depending onoptions.raw_data_threshold). When writing to two files, temporary external-data metadata is cleared so the in-memory model stays unchanged.
- SerializeToString(self, options: object | None = None) bytes#
Serializes this instance into a sequence of bytes.
- add_type(self) onnx_light.onnx_py._onnxpy.TypeProto#
Sets an empty value.
- property doc_string#
A human-readable documentation for this tensor. Markdown is allowed.
- property metadata_props#
Named metadata values; keys should be distinct.
- property name#
This field MUST be present in this version of the IR.
- property type#
This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.