AnyTensor

public protocol AnyTensor

A type-erased tensor.

  • Declaration

    Swift

    var storage: AnyTensorStorage { get }
  • Declaration

    Swift

    var cTensor: UnsafeMutablePointer<ccv_nnc_tensor_t> { get }
  • Declaration

    Swift

    init(from: AnyTensor)
  • 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 }
  • shape Extension method

    Declaration

    Swift

    @inlinable
    public var shape: TensorShape { get }
  • isTensorView Extension method

    Declaration

    Swift

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

    Declaration

    Swift

    @inlinable
    public var isContiguous: Bool { get }
  • strides Extension method

    Declaration

    Swift

    @inlinable
    public var strides: TensorShape { get }