|
Expression Templates Library (ETL)
|
Generator from an uniform distribution using a custom random engine. More...
#include <dropout_mask.hpp>
Public Types | |
| using | value_type = T |
| The value type. | |
Public Member Functions | |
| dropout_mask_generator_g_op (G &g, T probability) | |
| Construct a new generator with the given start and end of the range. More... | |
| value_type | operator() () |
| Generate a new value. More... | |
| template<typename Y > | |
| auto | gpu_compute_hint (Y &y) noexcept |
| Compute the result of the operation using the GPU. More... | |
| template<typename Y > | |
| Y & | gpu_compute (Y &y) noexcept |
| Compute the result of the operation using the GPU. More... | |
Public Attributes | |
| const T | probability |
| The dropout probability. | |
| G & | rand_engine |
| The random engine. | |
| dropout_distribution< value_type > | distribution |
| The used distribution. | |
Static Public Attributes | |
| static constexpr bool | gpu_computable |
| Indicates if the operator can be computed on GPU. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const dropout_mask_generator_g_op &s) |
| Outputs the given generator to the given stream. More... | |
Generator from an uniform distribution using a custom random engine.
|
inline |
Construct a new generator with the given start and end of the range.
| start | The beginning of the range |
| end | The end of the range |
|
inlinenoexcept |
Compute the result of the operation using the GPU.
| x | The expression of the unary operation |
| y | The expression into which to store the reuslt |
|
inlinenoexcept |
Compute the result of the operation using the GPU.
| x | The expression of the unary operation |
|
inline |
Generate a new value.
|
friend |
Outputs the given generator to the given stream.
| os | The output stream |
| s | The generator |
|
static |
Indicates if the operator can be computed on GPU.
1.8.13