get_gradients Interface

interface
private pure module function get_gradients(this, clip_method) result(gradients)

Arguments

Type IntentOptional Attributes Name
class(learnable_layer_type), intent(in) :: this

Instance of the layer

type(clip_type), intent(in), optional :: clip_method

Clip method

Return Value real(kind=real32),dimension(this%num_params)

Parameter gradients

Description

Get parameter gradients of layer