Contents

init(_:)

Initializes a tensor data with an MPS matrix.

Declaration

init(_ matrix: MPSMatrix)

Parameters

  • matrix:

    MPSMatrix to be used within the MPSGraphTensorData

Return Value

A valid MPSGraphTensorData, or nil if allocation failure.

Discussion

The device of the MPSMatrix will be used to get the MPSDevice for this MPSGraphTensorData.