module onnxrt.ops_cpu.op_clip#

Inheritance diagram of mlprodict.onnxrt.ops_cpu.op_clip

Short summary#

module mlprodict.onnxrt.ops_cpu.op_clip

Runtime operator.

source on GitHub

Classes#

class

truncated documentation

Clip_11

Clip ==== Clip operator limits the given input within an interval. The interval is specified by the inputs ‘min’ and ‘max’. …

Clip_11

Clip ==== Clip operator limits the given input within an interval. The interval is specified by the inputs ‘min’ and ‘max’. …

Clip_6

Properties#

property

truncated documentation

args_default

Returns the list of arguments as well as the list of parameters with the default values (close to the signature). …

args_default

Returns the list of arguments as well as the list of parameters with the default values (close to the signature). …

args_default

Returns the list of arguments as well as the list of parameters with the default values (close to the signature). …

args_default_modified

Returns the list of modified parameters.

args_default_modified

Returns the list of modified parameters.

args_default_modified

Returns the list of modified parameters.

args_mandatory

Returns the list of optional arguments.

args_mandatory

Returns the list of optional arguments.

args_mandatory

Returns the list of optional arguments.

args_optional

Returns the list of optional arguments.

args_optional

Returns the list of optional arguments.

args_optional

Returns the list of optional arguments.

atts_value

Returns all parameters in a dictionary.

atts_value

Returns all parameters in a dictionary.

atts_value

Returns all parameters in a dictionary.

Methods#

method

truncated documentation

__init__

__init__

__init__

_run

_run

_run

_run_inplace

_run_inplace

_run_inplace

infer_shapes

infer_shapes

infer_types

infer_types

run

Calls method _run.

run

Calls method _run.

to_python

to_python

to_python

Documentation#

Runtime operator.

source on GitHub

mlprodict.onnxrt.ops_cpu.op_clip.Clip#

alias of Clip_11

class mlprodict.onnxrt.ops_cpu.op_clip.Clip_11(onnx_node, desc=None, **options)#

Bases: OpRunUnaryNum

Clip operator limits the given input within an interval. The interval is specified by the inputs ‘min’ and ‘max’. They default to numeric_limits::lowest() and numeric_limits::max(), respectively.

Inputs

Between 1 and 3 inputs.

  • input (heterogeneous)T: Input tensor whose elements to be clipped

  • min (optional, heterogeneous)T: Minimum value, under which element is replaced by min. It must be a scalar(tensor of empty shape).

  • max (optional, heterogeneous)T: Maximum value, above which element is replaced by max. It must be a scalar(tensor of empty shape).

Outputs

  • output (heterogeneous)T: Output tensor with clipped input elements

Type Constraints

  • T tensor(float16), tensor(float), tensor(double): Constrain input and output types to float tensors.

Version

Onnx name: Clip

This version of the operator has been available since version 11.

Runtime implementation: Clip

__init__(onnx_node, desc=None, **options)#
_run(data, *minmax, attributes=None, verbose=0, fLOG=None)#

Should be overwritten.

source on GitHub

_run_inplace(data, *minmax)#
infer_shapes(x, *minmax)#

Infer shapes of the outputs given the shapes of the inputs. It works the same way as method run.

source on GitHub

infer_types(x, *minmax)#

Infer types of the outputs given the types of the inputs. It works the same way as method run.

source on GitHub

run(x, *minmax, attributes=None, verbose=0, fLOG=None)#

Calls method _run.

source on GitHub

to_python(inputs)#

Returns a python code equivalent to this operator.

Parameters:

inputs – inputs name

Returns:

imports, python code, both as strings

source on GitHub

class mlprodict.onnxrt.ops_cpu.op_clip.Clip_6(onnx_node, desc=None, **options)#

Bases: OpRunUnaryNum

__init__(onnx_node, desc=None, **options)#
_run(data, attributes=None, verbose=0, fLOG=None)#

Should be overwritten.

source on GitHub

_run_inplace(data)#
to_python(inputs)#

Returns a python code equivalent to this operator.

Parameters:

inputs – inputs name

Returns:

imports, python code, both as strings

source on GitHub