Inverted dropout: at training time zeros activations with probability rate and rescales survivors.
More...
|
| bool | active () const |
| | Returns true when the dropout rate is non-zero.
|
| |
| void | set_rate (float new_rate) |
| | Sets the drop probability (0 disables dropout).
|
| |
| void | forward_propagate (ForwardPropagation &fp, size_t layer, bool is_training) noexcept override |
| | Runs the operator's forward computation.
|
| |
| void | back_propagate (ForwardPropagation &fp, BackPropagation &bp, size_t layer) const noexcept override |
| | Runs the operator's backward computation, accumulating into gradient/delta buffers.
|
| |
| void | apply_cpu (TensorView &output) |
| | CPU forward implementation; samples the mask and rescales survivors in place.
|
| |
| void | apply_gpu (TensorView &output) |
| | GPU forward implementation; samples the mask and rescales survivors in place.
|
| |
| void | apply_delta (TensorView &delta) const |
| | Applies the cached mask to a gradient tensor during the backward pass.
|
| |
| void | to_JSON (JsonWriter &w) const override |
| | Serializes the operator configuration to a JSON writer.
|
| |
| void | from_JSON (const Json *parent) override |
| | Restores the operator configuration from a JSON node.
|
| |
| void | destroy_cuda () override |
| | Releases CUDA resources owned by the operator; called from destructors.
|
| |
| | ~DropoutOp () override |
| |
| | DropoutOp ()=default |
| |
| | DropoutOp (DropoutOp &&) noexcept=default |
| |
| DropoutOp & | operator= (DropoutOp &&) noexcept=default |
| |
| virtual | ~Operator ()=default |
| |
| virtual vector< TensorSpec > | parameter_specs () const |
| | Returns the tensor specs of trainable parameters owned by this operator.
|
| |
| virtual vector< TensorSpec > | state_specs () const |
| | Returns the tensor specs of persistent state owned by this operator.
|
| |
| virtual void | link_parameters (span< const TensorView >) |
| | Binds parameter views provided by the hosting layer.
|
| |
| virtual void | link_gradients (span< const TensorView >) |
| | Binds gradient views provided by the hosting layer.
|
| |
| virtual void | link_states (span< const TensorView >) |
| | Binds state views provided by the hosting layer.
|
| |
| virtual void | set_parameters_random () |
| | Initializes parameters with random values.
|
| |
| virtual void | set_parameters_glorot () |
| | Initializes parameters using Glorot (Xavier) initialization.
|
| |
| virtual void | load_state_from_JSON (const Json *) |
| | Restores persistent state (e.g. running statistics) from a JSON node.
|
| |
| TensorView & | get_input (ForwardPropagation &fp, size_t layer, size_t i=0) const noexcept |
| |
| vector< TensorView > & | get_inputs (ForwardPropagation &fp, size_t layer, size_t i=0) const noexcept |
| |
| TensorView & | get_output (ForwardPropagation &fp, size_t layer, size_t i=0) const noexcept |
| |
| TensorView & | get_output_delta (BackPropagation &bp, size_t layer, size_t i=0) const noexcept |
| |
| TensorView & | get_input_delta (BackPropagation &bp, size_t layer, size_t i=0) const noexcept |
| |
Inverted dropout: at training time zeros activations with probability rate and rescales survivors.