Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepy
themeConfluence
titleImport ONNX to Symbolic Interface
def mxnet.contrib.onnx.import_model(model_file):
	"""
	Imports the ONNX model file, passed as a parameter, into MXNet symbol and parameters. Operator support and coverage - https://cwiki.apache.org/confluence/display/MXNET/ONNX
	Input Parameters –
	----------
	model_file – 
		A string object representing the path to the ONNX model file.
	
	Return type –
	----------
	sym – 
		An mxnet symbol object representing the symbolic graph of the given model.
	arg_params -  
		A dictionary object mapping the parameter name to an mxnet ndarray object representing its tensor value. These are the parameter values that are learned while 						training the model.
	aux_params – 
		A dictionary object mapping parameter names to an mxnet ndarray object representing the tensor values of the parameters. It stores the values that are not learned during the training process.
	"""
	...
	return sym, arg_params, aux_params

...