Contents

init(descriptor:randomInitializerType:)

Creates a tensor with the descriptor and random initializer type you specify.

Declaration

convenience init(descriptor tensorDescriptor: MLCTensorDescriptor, randomInitializerType: MLCRandomInitializerType)

Parameters

  • tensorDescriptor:

    An object you use to configure the tensor.

  • randomInitializerType:

    The random initializer type you use to generate random data.

See Also

Creating Tensors with Descriptors