SerranoOperatorSymbol
public class SerranoOperatorSymbol: SerranoGraphSymbol, OperatorSymbol
Implementaion of OperatorSymbol
-
Operator instance
Declaration
Swift
public var serranoOperator: ComputableOperator
-
Declaration
Swift
public var inputTensorShapes: [TensorShape]
-
Input tensor symbols
Declaration
Swift
public var inputSymbols: [TensorSymbol]
-
Params tensor symbols
Declaration
Swift
public var paramSymbols: [DataSymbol]
-
Control if update asscoiated operator’s parameter Default is
false
Declaration
Swift
public var enabledParameterUpdate = false
-
Designated initalizers
Declaration
Swift
public init(_ label: String = "Operator symbol", serranoOperator: ComputableOperator, inputSymbols: [TensorSymbol], paramSymbols: [DataSymbol]? = nil, inBounds: [GraphSymbol] = [GraphSymbol](), outBounds: [GraphSymbol] = [GraphSymbol]())
Parameters
serranoOperator
serranoOperator description
label
label description
inBounds
inBounds description
outBounds
outBounds description
-
Get output symbols of this operator. The output shapes are decided by operaotr’s function
outputShape(shapeArray: inputShapes)
Note
This function will automatically add return symbols in
outBounds
.Declaration
Swift
public func outputSymbols() -> [TensorSymbol]
Return Value
Array of TensorSymbols.