28template<
typename Real_t>
35 for (
size_t i = 0; i <
m; i++) {
36 for (
size_t j = 0; j <
n; j++) {
38 if (
r >= dropoutProbability) {
41 A(i,j) /= dropoutProbability;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
R__EXTERN TRandom * gRandom
TMatrixT< AReal > Tensor_t
static void DropoutForward(Tensor_t &A, TDescriptors *descriptors, TWorkspace *workspace, Scalar_t p)
Apply dropout with activation probability p to the given matrix A and scale the result by reciprocal ...
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
create variable transformations