allocate(repeating:shape:stride:)
Creates a BNNSTensor filled with the specified scalar value.
Declaration
static func allocate<T>(repeating repeatedValue: T, shape: [Int], stride: [Int]) -> BNNSTensor where T : BNNSScalarParameters
- repeatedValue:
The value that the function uses for a fillable element.
- shape:
The shape of the tensor.
- stride:
The stride of the tensor.