onnx_chainer.context.Context¶
-
class
onnx_chainer.context.
Context
(model)[source]¶ Context of converter
This context shares names during exporting.
-
name_list
¶ list of being exported as ONNX node name with pinned or not, keyed by instance ID. When the target variable is
chainer.Variable
orchainer.Parameter
, instance ID ofndarray
held by the variable is also put as key, because some functions likeF.where
internally unwrap variable.Type: dict
Methods
-
add_const
(array, name)[source]¶ Add a constant array as an ONNX Constant node.
Returns: registered name. Return type: str
-
add_param
(array, name, use_original_name=False)[source]¶ Add a parameter array as an ONNX initializer.
Returns: registered name. Return type: str
-