Math

Core Tensor functionality

  • A tensor is an n-dimensional array of numbers with a given shape.

    See more

    Declaration

    Swift

    public struct Tensor<Element, Device> where Element : NumericType, Device : DeviceType
    extension Tensor: CustomStringConvertible, CustomDebugStringConvertible
    extension Tensor: ExpressibleByFloatLiteral
    extension Tensor: ExpressibleByIntegerLiteral
    extension Tensor: Equatable where Element: Equatable
    extension Tensor: Codable where Element: Codable

Tensor - Image conversion