init(sequenceLength:featureChannelCount:batchSize:data:)
Creates a tensor with the sequence length, number of feature channels, batch size, and data you specify.
Declaration
convenience init(sequenceLength: Int, featureChannelCount: Int, batchSize: Int, data: MLCTensorData?)Parameters
- sequenceLength:
The length of sequences stored in the tensor.
- featureChannelCount:
The number of feature channels.
- batchSize:
The tensor batch size.
- data:
The tensor data.