Documentation ¶
Index ¶
- Constants
- Variables
- func GetOpNames() []string
- func GetOperator(operatorType string) (ops.Operator, error)
- type Abs
- func (a *Abs) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (a *Abs) GetInputTypeConstraints() [][]tensor.Dtype
- func (a *Abs) GetMaxInputs() int
- func (a *Abs) GetMinInputs() int
- func (a *Abs) Init(*onnx.NodeProto) error
- func (a *Abs) String() string
- func (a *Abs) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Acos
- func (c *Acos) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (c *Acos) GetInputTypeConstraints() [][]tensor.Dtype
- func (c *Acos) GetMaxInputs() int
- func (c *Acos) GetMinInputs() int
- func (c *Acos) Init(*onnx.NodeProto) error
- func (c *Acos) String() string
- func (c *Acos) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Acosh
- func (c *Acosh) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (c *Acosh) GetInputTypeConstraints() [][]tensor.Dtype
- func (c *Acosh) GetMaxInputs() int
- func (c *Acosh) GetMinInputs() int
- func (c *Acosh) Init(*onnx.NodeProto) error
- func (c *Acosh) String() string
- func (c *Acosh) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Add
- func (a *Add) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (a *Add) GetInputTypeConstraints() [][]tensor.Dtype
- func (a *Add) GetMaxInputs() int
- func (a *Add) GetMinInputs() int
- func (a *Add) Init(*onnx.NodeProto) error
- func (a *Add) String() string
- func (a *Add) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type And
- func (a *And) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (a *And) GetInputTypeConstraints() [][]tensor.Dtype
- func (a *And) GetMaxInputs() int
- func (a *And) GetMinInputs() int
- func (a *And) Init(*onnx.NodeProto) error
- func (a *And) String() string
- func (a *And) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Asin
- func (s *Asin) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (s *Asin) GetInputTypeConstraints() [][]tensor.Dtype
- func (s *Asin) GetMaxInputs() int
- func (s *Asin) GetMinInputs() int
- func (s *Asin) Init(*onnx.NodeProto) error
- func (s *Asin) String() string
- func (s *Asin) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Asinh
- func (a *Asinh) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (a *Asinh) GetInputTypeConstraints() [][]tensor.Dtype
- func (a *Asinh) GetMaxInputs() int
- func (a *Asinh) GetMinInputs() int
- func (a *Asinh) Init(*onnx.NodeProto) error
- func (a *Asinh) String() string
- func (a *Asinh) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Atan
- func (a *Atan) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (a *Atan) GetInputTypeConstraints() [][]tensor.Dtype
- func (a *Atan) GetMaxInputs() int
- func (a *Atan) GetMinInputs() int
- func (a *Atan) Init(*onnx.NodeProto) error
- func (a *Atan) String() string
- func (a *Atan) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Atanh
- func (a *Atanh) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (a *Atanh) GetInputTypeConstraints() [][]tensor.Dtype
- func (a *Atanh) GetMaxInputs() int
- func (a *Atanh) GetMinInputs() int
- func (a *Atanh) Init(*onnx.NodeProto) error
- func (a *Atanh) String() string
- func (a *Atanh) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type AutoPadSetting
- type Cast
- func (c *Cast) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (c *Cast) GetInputTypeConstraints() [][]tensor.Dtype
- func (c *Cast) GetMaxInputs() int
- func (c *Cast) GetMinInputs() int
- func (c *Cast) Init(n *onnx.NodeProto) error
- func (c *Cast) String() string
- func (c *Cast) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Concat
- func (c *Concat) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (c *Concat) GetInputTypeConstraints() [][]tensor.Dtype
- func (c *Concat) GetMaxInputs() int
- func (c *Concat) GetMinInputs() int
- func (c *Concat) Init(n *onnx.NodeProto) error
- func (c *Concat) String() string
- func (c *Concat) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Constant
- func (c *Constant) Apply(_ []tensor.Tensor) ([]tensor.Tensor, error)
- func (c *Constant) GetInputTypeConstraints() [][]tensor.Dtype
- func (c *Constant) GetMaxInputs() int
- func (c *Constant) GetMinInputs() int
- func (c *Constant) Init(n *onnx.NodeProto) error
- func (c *Constant) String() string
- func (c *Constant) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type ConstantOfShape
- func (c *ConstantOfShape) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (c *ConstantOfShape) GetInputTypeConstraints() [][]tensor.Dtype
- func (c *ConstantOfShape) GetMaxInputs() int
- func (c *ConstantOfShape) GetMinInputs() int
- func (c *ConstantOfShape) Init(n *onnx.NodeProto) error
- func (c *ConstantOfShape) String() string
- func (c *ConstantOfShape) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Conv
- func (c *Conv) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (c *Conv) GetInputTypeConstraints() [][]tensor.Dtype
- func (c *Conv) GetMaxInputs() int
- func (c *Conv) GetMinInputs() int
- func (c *Conv) Init(n *onnx.NodeProto) error
- func (c *Conv) String() string
- func (c *Conv) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Cos
- func (c *Cos) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (c *Cos) GetInputTypeConstraints() [][]tensor.Dtype
- func (c *Cos) GetMaxInputs() int
- func (c *Cos) GetMinInputs() int
- func (c *Cos) Init(*onnx.NodeProto) error
- func (c *Cos) String() string
- func (c *Cos) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Cosh
- func (c *Cosh) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (c *Cosh) GetInputTypeConstraints() [][]tensor.Dtype
- func (c *Cosh) GetMaxInputs() int
- func (c *Cosh) GetMinInputs() int
- func (c *Cosh) Init(*onnx.NodeProto) error
- func (c *Cosh) String() string
- func (c *Cosh) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Div
- func (d *Div) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (d *Div) GetInputTypeConstraints() [][]tensor.Dtype
- func (d *Div) GetMaxInputs() int
- func (d *Div) GetMinInputs() int
- func (d *Div) Init(*onnx.NodeProto) error
- func (d *Div) String() string
- func (d *Div) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Equal
- func (e *Equal) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (e *Equal) GetInputTypeConstraints() [][]tensor.Dtype
- func (e *Equal) GetMaxInputs() int
- func (e *Equal) GetMinInputs() int
- func (e *Equal) Init(*onnx.NodeProto) error
- func (e *Equal) String() string
- func (e *Equal) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Flatten
- func (f *Flatten) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (f *Flatten) GetInputTypeConstraints() [][]tensor.Dtype
- func (f *Flatten) GetMaxInputs() int
- func (f *Flatten) GetMinInputs() int
- func (f *Flatten) Init(n *onnx.NodeProto) error
- func (f *Flatten) String() string
- func (f *Flatten) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type GRU
- func (g *GRU) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (g *GRU) GetInputTypeConstraints() [][]tensor.Dtype
- func (g *GRU) GetMaxInputs() int
- func (g *GRU) GetMinInputs() int
- func (g *GRU) Init(n *onnx.NodeProto) error
- func (g *GRU) String() string
- func (g *GRU) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Gather
- func (g *Gather) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (g *Gather) GetInputTypeConstraints() [][]tensor.Dtype
- func (g *Gather) GetMaxInputs() int
- func (g *Gather) GetMinInputs() int
- func (g *Gather) Init(n *onnx.NodeProto) error
- func (g *Gather) String() string
- func (g *Gather) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Gemm
- func (g *Gemm) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (g *Gemm) GetInputTypeConstraints() [][]tensor.Dtype
- func (g *Gemm) GetMaxInputs() int
- func (g *Gemm) GetMinInputs() int
- func (g *Gemm) Init(n *onnx.NodeProto) error
- func (g *Gemm) String() string
- func (g *Gemm) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Greater
- func (g *Greater) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (g *Greater) GetInputTypeConstraints() [][]tensor.Dtype
- func (g *Greater) GetMaxInputs() int
- func (g *Greater) GetMinInputs() int
- func (g *Greater) Init(*onnx.NodeProto) error
- func (g *Greater) String() string
- func (g *Greater) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type GreaterOrEqual
- func (g *GreaterOrEqual) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (g *GreaterOrEqual) GetInputTypeConstraints() [][]tensor.Dtype
- func (g *GreaterOrEqual) GetMaxInputs() int
- func (g *GreaterOrEqual) GetMinInputs() int
- func (g *GreaterOrEqual) Init(*onnx.NodeProto) error
- func (g *GreaterOrEqual) String() string
- func (g *GreaterOrEqual) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type LSTM
- func (l *LSTM) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (l *LSTM) GetInputTypeConstraints() [][]tensor.Dtype
- func (l *LSTM) GetMaxInputs() int
- func (l *LSTM) GetMinInputs() int
- func (l *LSTM) Init(n *onnx.NodeProto) error
- func (l *LSTM) String() string
- func (l *LSTM) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Less
- func (l *Less) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (l *Less) GetInputTypeConstraints() [][]tensor.Dtype
- func (l *Less) GetMaxInputs() int
- func (l *Less) GetMinInputs() int
- func (l *Less) Init(*onnx.NodeProto) error
- func (l *Less) String() string
- func (l *Less) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type LessOrEqual
- func (l *LessOrEqual) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (l *LessOrEqual) GetInputTypeConstraints() [][]tensor.Dtype
- func (l *LessOrEqual) GetMaxInputs() int
- func (l *LessOrEqual) GetMinInputs() int
- func (l *LessOrEqual) Init(*onnx.NodeProto) error
- func (l *LessOrEqual) String() string
- func (l *LessOrEqual) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type LinearRegressor
- func (l *LinearRegressor) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (l *LinearRegressor) GetInputTypeConstraints() [][]tensor.Dtype
- func (l *LinearRegressor) GetMaxInputs() int
- func (l *LinearRegressor) GetMinInputs() int
- func (l *LinearRegressor) Init(n *onnx.NodeProto) error
- func (l *LinearRegressor) String() string
- func (l *LinearRegressor) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type MatMul
- func (m *MatMul) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (m *MatMul) GetInputTypeConstraints() [][]tensor.Dtype
- func (m *MatMul) GetMaxInputs() int
- func (m *MatMul) GetMinInputs() int
- func (m *MatMul) Init(*onnx.NodeProto) error
- func (m *MatMul) String() string
- func (m *MatMul) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Mul
- func (m *Mul) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (m *Mul) GetInputTypeConstraints() [][]tensor.Dtype
- func (m *Mul) GetMaxInputs() int
- func (m *Mul) GetMinInputs() int
- func (m *Mul) Init(*onnx.NodeProto) error
- func (m *Mul) String() string
- func (m *Mul) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Not
- func (n *Not) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (n *Not) GetInputTypeConstraints() [][]tensor.Dtype
- func (n *Not) GetMaxInputs() int
- func (n *Not) GetMinInputs() int
- func (n *Not) Init(*onnx.NodeProto) error
- func (n *Not) String() string
- func (n *Not) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Or
- func (o *Or) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (o *Or) GetInputTypeConstraints() [][]tensor.Dtype
- func (o *Or) GetMaxInputs() int
- func (o *Or) GetMinInputs() int
- func (o *Or) Init(*onnx.NodeProto) error
- func (o *Or) String() string
- func (o *Or) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type PRelu
- func (op *PRelu) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (op *PRelu) GetInputTypeConstraints() [][]tensor.Dtype
- func (op *PRelu) GetMaxInputs() int
- func (op *PRelu) GetMinInputs() int
- func (op *PRelu) Init(*onnx.NodeProto) error
- func (op *PRelu) String() string
- func (op *PRelu) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type RNN
- func (r *RNN) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (r *RNN) GetInputTypeConstraints() [][]tensor.Dtype
- func (r *RNN) GetMaxInputs() int
- func (r *RNN) GetMinInputs() int
- func (r *RNN) Init(n *onnx.NodeProto) error
- func (r *RNN) String() string
- func (r *RNN) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Relu
- func (r *Relu) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (r *Relu) GetInputTypeConstraints() [][]tensor.Dtype
- func (r *Relu) GetMaxInputs() int
- func (r *Relu) GetMinInputs() int
- func (r *Relu) Init(*onnx.NodeProto) error
- func (r *Relu) String() string
- func (r *Relu) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Reshape
- func (r *Reshape) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (r *Reshape) GetInputTypeConstraints() [][]tensor.Dtype
- func (r *Reshape) GetMaxInputs() int
- func (r *Reshape) GetMinInputs() int
- func (r *Reshape) Init(*onnx.NodeProto) error
- func (r *Reshape) String() string
- func (r *Reshape) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Scaler
- func (s *Scaler) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (s *Scaler) GetInputTypeConstraints() [][]tensor.Dtype
- func (s *Scaler) GetMaxInputs() int
- func (s *Scaler) GetMinInputs() int
- func (s *Scaler) Init(n *onnx.NodeProto) error
- func (s *Scaler) String() string
- func (s *Scaler) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Shape
- func (s *Shape) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (s *Shape) GetInputTypeConstraints() [][]tensor.Dtype
- func (s *Shape) GetMaxInputs() int
- func (s *Shape) GetMinInputs() int
- func (s *Shape) Init(*onnx.NodeProto) error
- func (s *Shape) String() string
- func (s *Shape) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Sigmoid
- func (s *Sigmoid) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (s *Sigmoid) GetInputTypeConstraints() [][]tensor.Dtype
- func (s *Sigmoid) GetMaxInputs() int
- func (s *Sigmoid) GetMinInputs() int
- func (s *Sigmoid) Init(*onnx.NodeProto) error
- func (s *Sigmoid) String() string
- func (s *Sigmoid) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Sin
- func (s *Sin) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (s *Sin) GetInputTypeConstraints() [][]tensor.Dtype
- func (s *Sin) GetMaxInputs() int
- func (s *Sin) GetMinInputs() int
- func (s *Sin) Init(*onnx.NodeProto) error
- func (s *Sin) String() string
- func (s *Sin) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Sinh
- func (s *Sinh) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (s *Sinh) GetInputTypeConstraints() [][]tensor.Dtype
- func (s *Sinh) GetMaxInputs() int
- func (s *Sinh) GetMinInputs() int
- func (s *Sinh) Init(*onnx.NodeProto) error
- func (s *Sinh) String() string
- func (s *Sinh) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Slice
- func (s *Slice) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (s *Slice) GetInputTypeConstraints() [][]tensor.Dtype
- func (s *Slice) GetMaxInputs() int
- func (s *Slice) GetMinInputs() int
- func (s *Slice) Init(*onnx.NodeProto) error
- func (s *Slice) String() string
- func (s *Slice) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Softmax
- func (s *Softmax) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (s *Softmax) GetInputTypeConstraints() [][]tensor.Dtype
- func (s *Softmax) GetMaxInputs() int
- func (s *Softmax) GetMinInputs() int
- func (s *Softmax) Init(n *onnx.NodeProto) error
- func (s *Softmax) String() string
- func (s *Softmax) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Squeeze
- func (s *Squeeze) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (s *Squeeze) GetInputTypeConstraints() [][]tensor.Dtype
- func (s *Squeeze) GetMaxInputs() int
- func (s *Squeeze) GetMinInputs() int
- func (s *Squeeze) Init(*onnx.NodeProto) error
- func (s *Squeeze) String() string
- func (s *Squeeze) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Sub
- func (s *Sub) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (s *Sub) GetInputTypeConstraints() [][]tensor.Dtype
- func (s *Sub) GetMaxInputs() int
- func (s *Sub) GetMinInputs() int
- func (s *Sub) Init(*onnx.NodeProto) error
- func (s *Sub) String() string
- func (s *Sub) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Tan
- func (t *Tan) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (t *Tan) GetInputTypeConstraints() [][]tensor.Dtype
- func (t *Tan) GetMaxInputs() int
- func (t *Tan) GetMinInputs() int
- func (t *Tan) Init(*onnx.NodeProto) error
- func (t *Tan) String() string
- func (t *Tan) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Tanh
- func (t *Tanh) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (t *Tanh) GetInputTypeConstraints() [][]tensor.Dtype
- func (t *Tanh) GetMaxInputs() int
- func (t *Tanh) GetMinInputs() int
- func (t *Tanh) Init(*onnx.NodeProto) error
- func (t *Tanh) String() string
- func (t *Tanh) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Transpose
- func (t *Transpose) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (t *Transpose) GetInputTypeConstraints() [][]tensor.Dtype
- func (t *Transpose) GetMaxInputs() int
- func (t *Transpose) GetMinInputs() int
- func (t *Transpose) Init(n *onnx.NodeProto) error
- func (t *Transpose) String() string
- func (t *Transpose) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Unsqueeze
- func (u *Unsqueeze) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (u *Unsqueeze) GetInputTypeConstraints() [][]tensor.Dtype
- func (u *Unsqueeze) GetMaxInputs() int
- func (u *Unsqueeze) GetMinInputs() int
- func (u *Unsqueeze) Init(*onnx.NodeProto) error
- func (u *Unsqueeze) String() string
- func (u *Unsqueeze) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- type Xor
- func (x *Xor) Apply(inputs []tensor.Tensor) ([]tensor.Tensor, error)
- func (x *Xor) GetInputTypeConstraints() [][]tensor.Dtype
- func (x *Xor) GetMaxInputs() int
- func (x *Xor) GetMinInputs() int
- func (x *Xor) Init(*onnx.NodeProto) error
- func (x *Xor) String() string
- func (x *Xor) ValidateInputs(inputs []tensor.Tensor) ([]tensor.Tensor, error)
Constants ¶
const ( MinAbsInputs = 1 MaxAbsInputs = 1 )
const ( MinAddInputs = 2 MaxAddInputs = 2 )
const ( MinCastInputs = 1 MaxCastInputs = 1 )
const ( MinConstantOfShapeInputs = 1 MaxConstantOfShapeInputs = 1 )
const ( MinDivInputs = 2 MaxDivInputs = 2 )
const ( MinFlattenInputs = 1 MaxFlattenInputs = 1 )
const ( MinGatherInputs = 2 MaxGatherInputs = 2 )
const ( MinGemmInputs = 2 MaxGemmInputs = 3 )
const ( MinGRUInputs = 3 MaxGRUInputs = 6 )
const ( MinLinearRegressorInputs = 1 MaxLinearRegressorInputs = 1 )
const ( MinLSTMInputs = 3 MaxLSTMInputs = 8 )
const ( MinMatMulInputs = 2 MaxMatMulInputs = 2 )
const ( MinMulInputs = 2 MaxMulInputs = 2 )
const ( PReluMinInputs = 2 PReluMaxInputs = 2 )
const ( ReshapeMinInputs = 2 ReshapeMaxInputs = 2 )
const ( MinRNNInputs = 3 MaxRNNInputs = 6 )
const ( ScalerExpectedAttributes = 2 MinScalerInputs = 1 MaxScalerInputs = 1 )
const ( MinShapeInputs = 1 MaxShapeInputs = 1 )
const ( MinSliceInputs = 3 MaxSliceInputs = 5 )
const ( MinSqueezeInputs = 1 MaxSqueezeInputs = 2 )
const ( MinSubInputs = 2 MaxSubInputs = 2 )
const ( MinTransposeInputs = 1 MaxTransposeInputs = 1 )
const ( MinUnsqueezeInputs = 2 MaxUnsqueezeInputs = 2 )
const (
MinConcatInputs = 1
)
Variables ¶
var ( MinAndInputs = 2 MaxAndInputs = 2 )
var ( MinConvInputs = 2 MaxConvInputs = 3 NDims1DConvolution = 3 NDims2DConvolution = 4 )
var ( MinEqualInputs = 2 MaxEqualInputs = 2 )
var ( MinGreaterInputs = 2 MaxGreaterInputs = 2 )
var ( MinGreaterOrEqualInputs = 2 MaxGreaterOrEqualInputs = 2 )
var ( MinLessInputs = 2 MaxLessInputs = 2 )
var ( MinLessOrEqualInputs = 2 MaxLessOrEqualInputs = 2 )
var ( MinOrInputs = 2 MaxOrInputs = 2 )
var ( MinXorInputs = 2 MaxXorInputs = 2 )
Functions ¶
func GetOpNames ¶
func GetOpNames() []string
GetOpNames returns a list with operator names for opset 13.
Types ¶
type Abs ¶
type Abs struct{}
Abs represents the ONNX abs operator.
func (*Abs) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Abs) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Abs) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Acos ¶
type Acos struct{}
Acos represents the ONNX acos operator.
func (*Acos) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Acos) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Acos) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Acosh ¶
type Acosh struct{}
Acosh represents the ONNX acosh operator.
func (*Acosh) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Acosh) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Acosh) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Add ¶
type Add struct{}
Add represents the ONNX add operator.
func (*Add) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Add) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Add) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type And ¶
type And struct{}
And represents the ONNX and operator.
func (*And) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*And) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*And) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Asin ¶
type Asin struct{}
Asin represents the ONNX asin operator.
func (*Asin) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Asin) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Asin) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Asinh ¶
type Asinh struct{}
Asinh represents the ONNX asinh operator.
func (*Asinh) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Asinh) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Asinh) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Atan ¶
type Atan struct{}
Atan represents the ONNX atan operator.
func (*Atan) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Atan) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Atan) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Atanh ¶
type Atanh struct{}
Atanh represents the ONNX atanh operator.
func (*Atanh) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Atanh) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Atanh) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type AutoPadSetting ¶
type AutoPadSetting string
const ( NotSet AutoPadSetting = "NOTSET" SameUpper AutoPadSetting = "SAME_UPPER" SameLower AutoPadSetting = "SAME_LOWER" Valid AutoPadSetting = "VALID" )
type Cast ¶
type Cast struct {
// contains filtered or unexported fields
}
Cast represents the ONNX cast operator.
func (*Cast) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Cast) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Cast) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Concat ¶
type Concat struct {
// contains filtered or unexported fields
}
Concat represents the ONNX concat operator.
func (*Concat) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Concat) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Concat) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Constant ¶
type Constant struct {
// contains filtered or unexported fields
}
Constant represents the ONNX constant operator.
func (*Constant) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Constant) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Constant) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
func (*Constant) Init ¶
Init initializes the constant operator. It supports all constant types except `sparse_value`, `value_string`, and `value_strings`.
type ConstantOfShape ¶
type ConstantOfShape struct {
// contains filtered or unexported fields
}
ConstantOfShape represents the ONNX constant of shape operator.
func (*ConstantOfShape) GetInputTypeConstraints ¶
func (c *ConstantOfShape) GetInputTypeConstraints() [][]tensor.Dtype
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*ConstantOfShape) GetMaxInputs ¶
func (c *ConstantOfShape) GetMaxInputs() int
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*ConstantOfShape) GetMinInputs ¶
func (c *ConstantOfShape) GetMinInputs() int
GetMinInputs returns the minimum number of input tensors this operator expects.
func (*ConstantOfShape) Init ¶
func (c *ConstantOfShape) Init(n *onnx.NodeProto) error
Init initializes the constant of shape operator.
func (*ConstantOfShape) String ¶
func (c *ConstantOfShape) String() string
String implements the stringer interface, and can be used to format errors or messages.
func (*ConstantOfShape) ValidateInputs ¶
ValidateInputs validates the inputs that will be given to Apply for this operator.
type Conv ¶
type Conv struct {
// contains filtered or unexported fields
}
Conv represents the ONNX conv operator.
func (*Conv) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Conv) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Conv) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Cos ¶
type Cos struct{}
Cos represents the ONNX cos operator.
func (*Cos) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Cos) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Cos) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Cosh ¶
type Cosh struct{}
Cosh represents the ONNX cosh operator.
func (*Cosh) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Cosh) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Cosh) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Div ¶
type Div struct{}
Div represents the ONNX div operator.
func (*Div) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Div) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Div) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Equal ¶
type Equal struct{}
Equal represents the ONNX equal operator.
func (*Equal) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Equal) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Equal) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Flatten ¶ added in v1.1.0
type Flatten struct {
// contains filtered or unexported fields
}
Flatten represents the ONNX flatten operator.
func (*Flatten) GetInputTypeConstraints ¶ added in v1.1.0
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Flatten) GetMaxInputs ¶ added in v1.1.0
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Flatten) GetMinInputs ¶ added in v1.1.0
GetMinInputs returns the minimum number of input tensors this operator expects.
type GRU ¶
type GRU struct {
// contains filtered or unexported fields
}
GRU represents the ONNX gru operator. It only supports a simple forward gru operation with default activations.
func (*GRU) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*GRU) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*GRU) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
func (*GRU) Init ¶
Init initializes the gru operator. Currently, our GRU operator does not support all attributes as specified by the ONNX operator. The basic functionality is working and the other attributes can be added later on.
type Gather ¶
type Gather struct {
// contains filtered or unexported fields
}
Gather represents the ONNX gather operator.
func (*Gather) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Gather) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Gather) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Gemm ¶
type Gemm struct {
// contains filtered or unexported fields
}
Gemm represents the ONNX gemm operator.
func (*Gemm) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Gemm) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Gemm) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Greater ¶
type Greater struct{}
Greater represents the ONNX greater operator.
func (*Greater) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Greater) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Greater) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type GreaterOrEqual ¶
type GreaterOrEqual struct{}
GreaterOrEqual represents the ONNX greaterOrEqual operator.
func (*GreaterOrEqual) GetInputTypeConstraints ¶
func (g *GreaterOrEqual) GetInputTypeConstraints() [][]tensor.Dtype
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*GreaterOrEqual) GetMaxInputs ¶
func (g *GreaterOrEqual) GetMaxInputs() int
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*GreaterOrEqual) GetMinInputs ¶
func (g *GreaterOrEqual) GetMinInputs() int
GetMinInputs returns the minimum number of input tensors this operator expects.
func (*GreaterOrEqual) Init ¶
func (g *GreaterOrEqual) Init(*onnx.NodeProto) error
Init initializes the greaterOrEqual operator.
func (*GreaterOrEqual) String ¶
func (g *GreaterOrEqual) String() string
String implements the stringer interface, and can be used to format errors or messages.
func (*GreaterOrEqual) ValidateInputs ¶
ValidateInputs validates the inputs that will be given to Apply for this operator.
type LSTM ¶
type LSTM struct {
// contains filtered or unexported fields
}
LSTM represents the ONNX lstm operator.
func (*LSTM) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*LSTM) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*LSTM) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Less ¶
type Less struct{}
Less represents the ONNX less operator.
func (*Less) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Less) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Less) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type LessOrEqual ¶
type LessOrEqual struct{}
LessOrEqual represents the ONNX lessOrEqual operator.
func (*LessOrEqual) GetInputTypeConstraints ¶
func (l *LessOrEqual) GetInputTypeConstraints() [][]tensor.Dtype
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*LessOrEqual) GetMaxInputs ¶
func (l *LessOrEqual) GetMaxInputs() int
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*LessOrEqual) GetMinInputs ¶
func (l *LessOrEqual) GetMinInputs() int
GetMinInputs returns the minimum number of input tensors this operator expects.
func (*LessOrEqual) Init ¶
func (l *LessOrEqual) Init(*onnx.NodeProto) error
Init initializes the lessOrEqual operator.
func (*LessOrEqual) String ¶
func (l *LessOrEqual) String() string
String implements the stringer interface, and can be used to format errors or messages.
func (*LessOrEqual) ValidateInputs ¶
ValidateInputs validates the inputs that will be given to Apply for this operator.
type LinearRegressor ¶
type LinearRegressor struct {
// contains filtered or unexported fields
}
LinearRegressor represents the ONNX-ml linearRegressor operator.
func (*LinearRegressor) GetInputTypeConstraints ¶
func (l *LinearRegressor) GetInputTypeConstraints() [][]tensor.Dtype
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*LinearRegressor) GetMaxInputs ¶
func (l *LinearRegressor) GetMaxInputs() int
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*LinearRegressor) GetMinInputs ¶
func (l *LinearRegressor) GetMinInputs() int
GetMinInputs returns the minimum number of input tensors this operator expects.
func (*LinearRegressor) Init ¶
func (l *LinearRegressor) Init(n *onnx.NodeProto) error
Init initializes the linearRegressor operator.
func (*LinearRegressor) String ¶
func (l *LinearRegressor) String() string
String implements the stringer interface, and can be used to format errors or messages.
func (*LinearRegressor) ValidateInputs ¶
ValidateInputs validates the inputs that will be given to Apply for this operator.
type MatMul ¶
type MatMul struct{}
MatMul represents the ONNX matmul operator.
func (*MatMul) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*MatMul) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*MatMul) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Mul ¶
type Mul struct{}
Mul represents the ONNX mul operator.
func (*Mul) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Mul) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Mul) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Not ¶
type Not struct{}
Not represents the ONNX not operator.
func (*Not) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Not) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Not) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Or ¶
type Or struct{}
Or represents the ONNX or operator.
func (*Or) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Or) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Or) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type PRelu ¶
type PRelu struct{}
PRelu represents the ONNX prelu operator.
func (*PRelu) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*PRelu) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*PRelu) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type RNN ¶
type RNN struct {
// contains filtered or unexported fields
}
RNN represents the ONNX rnn operator.
func (*RNN) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*RNN) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*RNN) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Relu ¶
type Relu struct{}
Relu represents the ONNX relu operator.
func (*Relu) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Relu) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Relu) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Reshape ¶
type Reshape struct{}
Reshape represents the ONNX reshape operator.
func (*Reshape) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Reshape) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Reshape) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Scaler ¶
type Scaler struct {
// contains filtered or unexported fields
}
Scaler represents the ONNX-ml scaler operator.
func (*Scaler) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Scaler) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Scaler) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Shape ¶
type Shape struct{}
Shape represents the ONNX shape operator.
func (*Shape) Apply ¶
Apply the shape operator to the graph. It creates a node that holds the shape of the input node as 1D int64 tensor.
func (*Shape) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Shape) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Shape) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Sigmoid ¶
type Sigmoid struct{}
Sigmoid represents the ONNX sigmoid operator.
func (*Sigmoid) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Sigmoid) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Sigmoid) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Sin ¶
type Sin struct{}
Sin represents the ONNX sin operator.
func (*Sin) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Sin) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Sin) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Sinh ¶
type Sinh struct{}
Sinh represents the ONNX sinh operator.
func (*Sinh) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Sinh) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Sinh) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Slice ¶
type Slice struct{}
Slice represents the ONNX slice operator.
func (*Slice) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Slice) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Slice) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Softmax ¶
type Softmax struct {
// contains filtered or unexported fields
}
Softmax represents the ONNX softmax operator.
func (*Softmax) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Softmax) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Softmax) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Squeeze ¶
type Squeeze struct{}
Squeeze represents the ONNX squeeze operator.
func (*Squeeze) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Squeeze) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Squeeze) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Sub ¶
type Sub struct{}
Sub represents the ONNX sub operator.
func (*Sub) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Sub) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Sub) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Tan ¶
type Tan struct{}
Tan represents the ONNX tan operator.
func (*Tan) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Tan) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Tan) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Tanh ¶
type Tanh struct{}
Tanh represents the tanh operator.
func (*Tanh) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list with for every input tensor a list of allowed types.
func (*Tanh) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Tanh) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Transpose ¶
type Transpose struct {
// contains filtered or unexported fields
}
Transpose represents the ONNX transpose operator.
func (*Transpose) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Transpose) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Transpose) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Unsqueeze ¶
type Unsqueeze struct{}
Unsqueeze represents the ONNX unsqueeze operator.
func (*Unsqueeze) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Unsqueeze) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Unsqueeze) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
type Xor ¶
type Xor struct{}
Xor represents the ONNX xor operator.
func (*Xor) GetInputTypeConstraints ¶
GetInputTypeConstraints returns a list. Every element represents a set of allowed tensor dtypes for the corresponding input tensor.
func (*Xor) GetMaxInputs ¶
GetMaxInputs returns the maximum number of input tensors this operator expects.
func (*Xor) GetMinInputs ¶
GetMinInputs returns the minimum number of input tensors this operator expects.
Source Files ¶
- abs.go
- acos.go
- acosh.go
- add.go
- and.go
- asin.go
- asinh.go
- atan.go
- atanh.go
- cast.go
- concat.go
- constant.go
- constant_of_shape.go
- conv.go
- cos.go
- cosh.go
- div.go
- equal.go
- flatten.go
- gather.go
- gemm.go
- greater.go
- greater_or_equal.go
- gru.go
- less.go
- less_or_equal.go
- linear_regressor.go
- lstm.go
- matmul.go
- mul.go
- not.go
- opset13.go
- or.go
- prelu.go
- relu.go
- reshape.go
- rnn.go
- scaler.go
- shape.go
- sigmoid.go
- sin.go
- sinh.go
- slice.go
- softmax.go
- squeeze.go
- sub.go
- tan.go
- tanh.go
- transpose.go
- unsqueeze.go
- xor.go