complexConstant(realPart:imaginaryPart:dataType:)
Creates a complex constant operation and returns the result tensor.
Declaration
func complexConstant(realPart: Double, imaginaryPart: Double, dataType: MPSDataType) -> 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.
- dataType:
The dataType of the constant tensor.
Return Value
A valid MPSGraphTensor object.