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 methodDeclaration
Swift
@inlinable public var dataType: DataType { get }
-
kind
Extension methodDeclaration
Swift
@inlinable public var kind: DeviceKind { get }
-
format
Extension methodDeclaration
Swift
@inlinable public var format: TensorFormat { get }
-
shape
Extension methodDeclaration
Swift
@inlinable public var shape: TensorShape { get }
-
isTensorView
Extension methodDeclaration
Swift
@inlinable public var isTensorView: Bool { get }
-
isContiguous
Extension methodDeclaration
Swift
@inlinable public var isContiguous: Bool { get }
-
strides
Extension methodDeclaration
Swift
@inlinable public var strides: TensorShape { get }