SerranoTensorSymbol

public class SerranoTensorSymbol: SerranoGraphSymbol, TensorSymbol

Implementation of TensorSymbol

  • Bind to a tensor. There two cases could not bind successfull: 1. Passed in data is not a tensor object; 2. Passed in tensor object has not compatible shape with attribute shape.

    Declaration

    Swift

    public func bindData(_ data:DataSymbolSupportedDataType) -> Bool

    Parameters

    data

    data. Should be a Tensor object.

    Return Value

    bind result