AnyTensor

public protocol AnyTensor

A type-erased tensor.

  • Declaration

    Swift

    var storage: AnyTensorStorage { get }
  • Declaration

    Swift

    var cTensor: UnsafeMutablePointer<ccv_nnc_tensor_t> { get }
  • dataType Extension method

    Declaration

    Swift

    @inlinable
    public var dataType: DataType { get }
  • kind Extension method

    Declaration

    Swift

    @inlinable
    public var kind: DeviceKind { get }
  • format Extension method

    Declaration

    Swift

    @inlinable
    public var format: TensorFormat { get }
  • dimensions Extension method

    Declaration

    Swift

    @inlinable
    public var dimensions: [Int] { get }
  • isTensorView Extension method

    Declaration

    Swift

    @inlinable
    public var isTensorView: Bool { get }
  • increments Extension method

    Declaration

    Swift

    @inlinable
    public var increments: [Int] { get }