init(descriptor:fillWithData:)
Creates a tensor with the descriptor and scalar value you specify.
Declaration
convenience init(descriptor tensorDescriptor: MLCTensorDescriptor, fillWithData fillData: NSNumber)Parameters
- tensorDescriptor:
An object you use to configure the tensor.
- fillData:
The scalar value with which to initialize the tensor data.