|
| void | set (Index, Index, Index, ActivationFunction=ActivationFunction::Tanh, Type=Type::FP32) |
| |
| vector< TensorSpec > | parameter_specs () const override |
| |
| vector< ParameterSlot > | parameter_slots () override |
| |
| void | set_parameters_random () override |
| |
| void | set_parameters_glorot () override |
| |
| void | set_parameters_pytorch () override |
| |
| void | forward_propagate (ForwardPropagation &, size_t, ForwardPropagationMode) override |
| |
| void | back_propagate (ForwardPropagation &, BackPropagation &, size_t) const override |
| |
| virtual | ~Operator ()=default |
| |
| virtual vector< TensorSpec > | state_specs () const |
| |
| virtual vector< SlotQuantization > | parameter_quantization () const |
| |
| virtual void | link_parameters (span< const TensorView > views) |
| |
| virtual void | link_gradients (span< const TensorView > views) |
| |
| virtual void | link_states (span< const TensorView >) |
| |
| virtual void | link_parameter_scales (span< const TensorView >) |
| |
| bool | link_slots (span< const TensorView > views, TensorView *ParameterSlot::*member) |
| |
| virtual void | initialize_states () |
| |
| virtual void | set_weights_dtype (Type new_weights_dtype) |
| |
| virtual void | to_JSON (JsonWriter &) const |
| |
| virtual void | from_JSON (const Json *) |
| |
| virtual void | load_state_from_JSON (const Json *) |
| |
| TensorView & | get_input (ForwardPropagation &forward_propagation, size_t layer, size_t slot_index=0) const noexcept |
| |
| vector< TensorView > & | get_inputs (ForwardPropagation &forward_propagation, size_t layer) const noexcept |
| |
| TensorView & | get_output (ForwardPropagation &forward_propagation, size_t layer, size_t slot_index=0) const noexcept |
| |
| TensorView & | get_output_delta (BackPropagation &back_propagation, size_t layer, size_t slot_index=0) const noexcept |
| |
| TensorView & | get_input_delta (BackPropagation &back_propagation, size_t layer, size_t slot_index=0) const noexcept |
| |
|
| unique_lock< mutex > | lock_backend_state () const |
| |
| void | cudnn_rnn_forward_ (const CudnnRnnShapeSlot &, bool is_training, bool has_cell_state, const void *x, void *y, Buffer &forward_state, const function< CudnnRnnShapeSlot &()> &reconfigure) const |
| |
| void | cudnn_rnn_backward_ (const CudnnRnnShapeSlot &, bool has_cell_state, const void *x, const void *y, const void *dy, void *dx, const Buffer &forward_state, Buffer &backward_scratch) const |
| |
| CudnnRnnShapeSlot & | cudnn_setup_ (const CudnnRnnConfig &, Index input_features, Index output_features, Index time_steps, Index batch_size, bool for_training) const |
| |
| CudnnRnnShapeSlot & | cudnn_setup_attempt_ (const CudnnRnnConfig &, Index input_features, Index output_features, Index time_steps, Index batch_size, bool for_training) const |
| |
| void | cudnn_copy_weight_regions_ (int num_linear_layers, Index input_features, Index output_features, const TensorView *const *matrices, const TensorView *const *vectors, Buffer &packed_weights, bool to_cudnn) const |
| |
| void | cudnn_pack_weights_ (int num_linear_layers, Index input_features, Index output_features, const TensorView *const *weights, const TensorView *const *biases, Buffer &forward_state, uint64_t parameters_version) const |
| |
| void | cudnn_unpack_gradients_ (int num_linear_layers, Index input_features, Index output_features, const TensorView *const *weight_gradients, const TensorView *const *bias_gradients, Buffer &backward_scratch) const |
| |
| void | prepare_cudnn_forward_state_ (Buffer &, bool is_training, const CudnnRnnShapeSlot &) const |
| |
| string | cudnn_rnn_configuration_ (const CudnnRnnShapeSlot &, const char *mode) const |
| |
| void | drive_cudnn_forward_ (const CudnnRnnDims &, const TensorView &input, TensorView &sequence_output, TensorView &output, TensorView &cudnn_input_sequence, TensorView &cudnn_output_sequence, Buffer &forward_state, bool is_training, uint64_t parameters_version) const |
| |
| void | drive_cudnn_backward_ (const CudnnRnnDims &, const TensorView &input, const TensorView &sequence_output, const TensorView &output_delta, const TensorView &cudnn_input_sequence, const TensorView &cudnn_output_sequence, TensorView &input_delta, TensorView &sequence_delta_scratch, TensorView &input_delta_scratch, const Buffer &forward_state, Buffer &backward_scratch) const |
| |
| BackendState | backend_state |
| |