init(sequenceLength:featureChannelCount:batchSize:randomInitializerType:)
Creates a tensor with the sequence length, number of feature channels, batch size, and random initializer type you specify.
Declaration
convenience init(sequenceLength: Int, featureChannelCount: Int, batchSize: Int, randomInitializerType: MLCRandomInitializerType)Parameters
- sequenceLength:
The length of sequences stored in the tensor.
- featureChannelCount:
The number of feature channels.
- batchSize:
The tensor batch size.
- randomInitializerType:
The random initializer type you use to generate random data.