imag_op
Structs
Struct: Imag
Fields
Methods
compute_shape(mut curr: ArrayShape, args: List[ArrayShape])
Computes the shape of the imaginary part of a complex array.
jvp(primals: List[Array], tangents: List[Array]) -> Array
vjp(primals: List[Array], grad: Array, out: Array) -> List[Array]
__call__(mut curr: Array, args: List[Array])
Performs the forward pass for the imag operation. It sets the base of the argument to be the base of the current array and computes the shape of the current array via its dedicated ArraySahpe fwd fucntion.
fwd(arg0: Array) -> Array
Creates a view of the input array as an imaginary array.
Functions
imag
imag(arg0: Array) -> Array
Computes the imaginary part of the input array.
Last updated on