module training._base_estimator#

Inheritance diagram of onnxcustom.training._base_estimator

Short summary#

module onnxcustom.training._base_estimator

Optimizer with onnxruntime-training.

source on GitHub

Classes#

class

truncated documentation

BaseEstimator

Base class for optimizers. Implements common methods such __repr__.

Static Methods#

staticmethod

truncated documentation

_get_param_names

Extracts all parameters to serialize.

Methods#

method

truncated documentation

__getstate__

Removes any non pickable attribute.

__init__

__repr__

Usual.

__setstate__

Restores any non pickable attribute.

_get_trained_onnx

Returns the trained onnx graph, the initial graph modified by replacing the initializers with the trained …

get_params

Returns the list of parameters. Parameter deep is unused.

get_trained_onnx

Returns the trained onnx graph, the initial graph modified by replacing the initializers with the trained …

set_params

Returns the list of parameters. Parameter deep is unused.

Documentation#

Optimizer with onnxruntime-training.

source on GitHub

class onnxcustom.training._base_estimator.BaseEstimator(model_onnx, learning_rate, device)#

Bases: BaseOnnxClass

Base class for optimizers. Implements common methods such __repr__.

Parameters:

source on GitHub

__getstate__()#

Removes any non pickable attribute.

__init__(model_onnx, learning_rate, device)#
__repr__()#

Usual.

__setstate__(state)#

Restores any non pickable attribute.

classmethod _get_param_names()#

Extracts all parameters to serialize.

_get_trained_onnx(state, model=None)#

Returns the trained onnx graph, the initial graph modified by replacing the initializers with the trained weights.

Parameters:
  • state – trained weights

  • model – replace the weights in another graph than the training graph

Returns:

onnx graph

source on GitHub

get_params(deep=False)#

Returns the list of parameters. Parameter deep is unused.

source on GitHub

get_trained_onnx()#

Returns the trained onnx graph, the initial graph modified by replacing the initializers with the trained weights.

Returns:

onnx graph

source on GitHub

set_params(**params)#

Returns the list of parameters. Parameter deep is unused.

source on GitHub