get_partial_lno_encode_poles Function

function get_partial_lno_encode_poles(this, upstream_grad) result(output)

Gradient of lno_encode with respect to poles.

Arguments

Type IntentOptional Attributes Name
class(array_type), intent(inout) :: this

Forward result node containing saved operands

type(array_type), intent(in) :: upstream_grad

Upstream gradient tensor

Return Value type(array_type)

Gradient tensor for poles


Source Code

  function get_partial_lno_encode_poles(this, upstream_grad) result(output)
    !! Gradient of lno_encode with respect to poles.
    implicit none

    ! Arguments
    class(array_type), intent(inout) :: this
    !! Forward result node containing saved operands
    type(array_type), intent(in) :: upstream_grad
    !! Upstream gradient tensor
    type(array_type) :: output
    !! Gradient tensor for poles

    call output%allocate(array_shape=shape(this%right_operand%val))
    call this%get_partial_right_val(upstream_grad%val, output%val)

  end function get_partial_lno_encode_poles