complexConstant(realPart:imaginaryPart:)
Creates a complex constant op with the MPSDataTypeComplexFloat32 data type and returns the result tensor.
Declaration
func complexConstant(realPart: Double, imaginaryPart: Double) -> MPSGraphTensorParameters
- realPart:
The real part of the complex scalar to fill the entire tensor values with.
- imaginaryPart:
The imaginary part of the complex scalar to fill the entire tensor values with.
Return Value
A valid MPSGraphTensor object.