identity(with:name:)
Copies the input tensor values into the output, behaving as an identity operation.
Declaration
func identity(with tensor: MPSGraphTensor, name: String?) -> MPSGraphTensorParameters
- tensor:
The input tensor.
- name:
An optional string which serves as an identifier for the operation.
Return Value
A valid MPSGraphTensor object which is a copy of the input.