-
Undocumented
Declaration
Swift
public typealias RawBuffer = UnsafeMutableRawBufferPointer
-
Undocumented
Declaration
Swift
public typealias Device = CPU
-
Declaration
Swift
public static func allocateBuffer<Element>(withShape shape: [Int], type: Element.Type) -> ShapedBuffer<Element, CPU>
-
Declaration
Swift
public static func free<Element>(_ buffer: ShapedBuffer<Element, CPU>)
-
Declaration
Swift
@_specialize(exported: false, kind: full, where Element == Float) @_specialize(exported: false, kind: full, where Element == Int32) @_specialize(exported: false, kind: full, where Element == Double) @inline(__always) public static func get<Element>(slice: [Int?], of buffer: Buffer<Element, CPU>, with shape: [Int]) -> (Buffer<Element, CPU>, Bool, [Int])