Get desktop application:
View/edit binary Protocol Buffers messages
Used in:
The mypy type of this attribute
Offset into attribute table
Represents all non-module code that the model depends on. Right now it's just a straight list of classes, defined in dependency order (i.e. dependencies appear before their dependers)
for the proto version, to keep both backward and forward compatibility, please bump the proto_version when we add any change in the proto. runtime decides whether accept the model based on the ir_version.
main module of the model
to distinguish whether exported from c2 or torch
put build version here
the table contains all the tensor information the tensor id is defined as TensorProto.name
Used in:
because the old pickle modules may not be supported by torch_script, have to stored as pickle_arena at this moment.
should be exposed by the Class Archive, so user can save module specific data which cannot be store in the graph or torch_script
the parameters of this module
whether apply the optimizations to this module, only applicable to script modules
Used for retrieving module state from the pickled IValues table
Used in:
whether this parameter is registered as buffer or not
the offset into the tensor table where this parameter is stored
Used in:
, ,Used in:
whether we compute the gradient for the parameter
device field stores the canonical device string, and it follows the format below: `(cpu|cuda)[:<device-index>]`, e.g., 'cuda:0'