Expression Templates Library (ETL)
Functions
dropout.hpp File Reference

EGBLAS wrappers for the dropout operation. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void * etl::impl::egblas::dropout_prepare ()
 Prepare random states for dropout. More...
 
void * etl::impl::egblas::dropout_prepare_seed ([[maybe_unused]] size_t seed)
 Prepare random states for dropout with the given seed. More...
 
void etl::impl::egblas::dropout_release ([[maybe_unused]] void *state)
 Prepare random states for dropout with the given seed. More...
 
void etl::impl::egblas::dropout ([[maybe_unused]] size_t n, [[maybe_unused]] float p, [[maybe_unused]] float alpha, [[maybe_unused]] float *A, [[maybe_unused]] size_t lda)
 Wrappers for single-precision egblas dropout. More...
 
void etl::impl::egblas::dropout ([[maybe_unused]] size_t n, [[maybe_unused]] double p, [[maybe_unused]] double alpha, [[maybe_unused]] double *A, [[maybe_unused]] size_t lda)
 Wrappers for double-precision egblas dropout. More...
 
void etl::impl::egblas::dropout_seed ([[maybe_unused]] size_t n, [[maybe_unused]] float p, [[maybe_unused]] float alpha, [[maybe_unused]] float *A, [[maybe_unused]] size_t lda, [[maybe_unused]] size_t seed)
 Wrappers for single-precision egblas dropout. More...
 
void etl::impl::egblas::dropout_seed ([[maybe_unused]] size_t n, [[maybe_unused]] double p, [[maybe_unused]] double alpha, [[maybe_unused]] double *A, [[maybe_unused]] size_t lda, [[maybe_unused]] size_t seed)
 Wrappers for double-precision egblas dropout. More...
 
void etl::impl::egblas::dropout_states ([[maybe_unused]] size_t n, [[maybe_unused]] float p, [[maybe_unused]] float alpha, [[maybe_unused]] float *A, [[maybe_unused]] size_t lda, [[maybe_unused]] void *states)
 Wrappers for single-precision egblas dropout. More...
 
void etl::impl::egblas::dropout_states ([[maybe_unused]] size_t n, [[maybe_unused]] double p, [[maybe_unused]] double alpha, [[maybe_unused]] double *A, [[maybe_unused]] size_t lda, [[maybe_unused]] void *states)
 Wrappers for double-precision egblas dropout. More...
 
void etl::impl::egblas::inv_dropout ([[maybe_unused]] size_t n, [[maybe_unused]] float p, [[maybe_unused]] float alpha, [[maybe_unused]] float *A, [[maybe_unused]] size_t lda)
 Wrappers for single-precision egblas dropout. More...
 
void etl::impl::egblas::inv_dropout ([[maybe_unused]] size_t n, [[maybe_unused]] double p, [[maybe_unused]] double alpha, [[maybe_unused]] double *A, [[maybe_unused]] size_t lda)
 Wrappers for double-precision egblas dropout. More...
 
void etl::impl::egblas::inv_dropout_seed ([[maybe_unused]] size_t n, [[maybe_unused]] float p, [[maybe_unused]] float alpha, [[maybe_unused]] float *A, [[maybe_unused]] size_t lda, [[maybe_unused]] size_t seed)
 Wrappers for single-precision egblas dropout. More...
 
void etl::impl::egblas::inv_dropout_seed ([[maybe_unused]] size_t n, [[maybe_unused]] double p, [[maybe_unused]] double alpha, [[maybe_unused]] double *A, [[maybe_unused]] size_t lda, [[maybe_unused]] size_t seed)
 Wrappers for double-precision egblas dropout. More...
 
void etl::impl::egblas::inv_dropout_states ([[maybe_unused]] size_t n, [[maybe_unused]] float p, [[maybe_unused]] float alpha, [[maybe_unused]] float *A, [[maybe_unused]] size_t lda, [[maybe_unused]] void *states)
 Wrappers for single-precision egblas dropout. More...
 
void etl::impl::egblas::inv_dropout_states ([[maybe_unused]] size_t n, [[maybe_unused]] double p, [[maybe_unused]] double alpha, [[maybe_unused]] double *A, [[maybe_unused]] size_t lda, [[maybe_unused]] void *states)
 Wrappers for double-precision egblas dropout. More...
 

Detailed Description

EGBLAS wrappers for the dropout operation.

Function Documentation

◆ dropout() [1/2]

void etl::impl::egblas::dropout ( [[maybe_unused] ] size_t  n,
[[maybe_unused] ] float  p,
[[maybe_unused] ] float  alpha,
[[maybe_unused] ] float *  A,
[[maybe_unused] ] size_t  lda 
)
inline

Wrappers for single-precision egblas dropout.

Parameters
nThe size of the vector
pThe dropout probability
alphaThe scaling factor alpha
AThe memory of the vector a
ldaThe leading dimension of a

◆ dropout() [2/2]

void etl::impl::egblas::dropout ( [[maybe_unused] ] size_t  n,
[[maybe_unused] ] double  p,
[[maybe_unused] ] double  alpha,
[[maybe_unused] ] double *  A,
[[maybe_unused] ] size_t  lda 
)
inline

Wrappers for double-precision egblas dropout.

Parameters
nThe size of the vector
pThe dropout probability
alphaThe scaling factor alpha
AThe memory of the vector a
ldaThe leading dimension of a

◆ dropout_prepare()

void* etl::impl::egblas::dropout_prepare ( )
inline

Prepare random states for dropout.

Returns
random states for dropout

◆ dropout_prepare_seed()

void* etl::impl::egblas::dropout_prepare_seed ( [[maybe_unused] ] size_t  seed)
inline

Prepare random states for dropout with the given seed.

Parameters
seedThe seed
Returns
random states for dropout

◆ dropout_release()

void etl::impl::egblas::dropout_release ( [[maybe_unused] ] void *  state)
inline

Prepare random states for dropout with the given seed.

Parameters
seedThe seed
Returns
random states for dropout

◆ dropout_seed() [1/2]

void etl::impl::egblas::dropout_seed ( [[maybe_unused] ] size_t  n,
[[maybe_unused] ] float  p,
[[maybe_unused] ] float  alpha,
[[maybe_unused] ] float *  A,
[[maybe_unused] ] size_t  lda,
[[maybe_unused] ] size_t  seed 
)
inline

Wrappers for single-precision egblas dropout.

Parameters
nThe size of the vector
pThe dropout probability
alphaThe scaling factor alpha
AThe memory of the vector a
ldaThe leading dimension of a

◆ dropout_seed() [2/2]

void etl::impl::egblas::dropout_seed ( [[maybe_unused] ] size_t  n,
[[maybe_unused] ] double  p,
[[maybe_unused] ] double  alpha,
[[maybe_unused] ] double *  A,
[[maybe_unused] ] size_t  lda,
[[maybe_unused] ] size_t  seed 
)
inline

Wrappers for double-precision egblas dropout.

Parameters
nThe size of the vector
pThe dropout probability
alphaThe scaling factor alpha
AThe memory of the vector a
ldaThe leading dimension of a

◆ dropout_states() [1/2]

void etl::impl::egblas::dropout_states ( [[maybe_unused] ] size_t  n,
[[maybe_unused] ] float  p,
[[maybe_unused] ] float  alpha,
[[maybe_unused] ] float *  A,
[[maybe_unused] ] size_t  lda,
[[maybe_unused] ] void *  states 
)
inline

Wrappers for single-precision egblas dropout.

Parameters
nThe size of the vector
pThe dropout probability
alphaThe scaling factor alpha
AThe memory of the vector a
ldaThe leading dimension of a

◆ dropout_states() [2/2]

void etl::impl::egblas::dropout_states ( [[maybe_unused] ] size_t  n,
[[maybe_unused] ] double  p,
[[maybe_unused] ] double  alpha,
[[maybe_unused] ] double *  A,
[[maybe_unused] ] size_t  lda,
[[maybe_unused] ] void *  states 
)
inline

Wrappers for double-precision egblas dropout.

Parameters
nThe size of the vector
pThe dropout probability
alphaThe scaling factor alpha
AThe memory of the vector a
ldaThe leading dimension of a

◆ inv_dropout() [1/2]

void etl::impl::egblas::inv_dropout ( [[maybe_unused] ] size_t  n,
[[maybe_unused] ] float  p,
[[maybe_unused] ] float  alpha,
[[maybe_unused] ] float *  A,
[[maybe_unused] ] size_t  lda 
)
inline

Wrappers for single-precision egblas dropout.

Parameters
nThe size of the vector
pThe dropout probability
alphaThe scaling factor alpha
AThe memory of the vector a
ldaThe leading dimension of a

◆ inv_dropout() [2/2]

void etl::impl::egblas::inv_dropout ( [[maybe_unused] ] size_t  n,
[[maybe_unused] ] double  p,
[[maybe_unused] ] double  alpha,
[[maybe_unused] ] double *  A,
[[maybe_unused] ] size_t  lda 
)
inline

Wrappers for double-precision egblas dropout.

Parameters
nThe size of the vector
pThe dropout probability
alphaThe scaling factor alpha
AThe memory of the vector a
ldaThe leading dimension of a

◆ inv_dropout_seed() [1/2]

void etl::impl::egblas::inv_dropout_seed ( [[maybe_unused] ] size_t  n,
[[maybe_unused] ] float  p,
[[maybe_unused] ] float  alpha,
[[maybe_unused] ] float *  A,
[[maybe_unused] ] size_t  lda,
[[maybe_unused] ] size_t  seed 
)
inline

Wrappers for single-precision egblas dropout.

Parameters
nThe size of the vector
pThe dropout probability
alphaThe scaling factor alpha
AThe memory of the vector a
ldaThe leading dimension of a

◆ inv_dropout_seed() [2/2]

void etl::impl::egblas::inv_dropout_seed ( [[maybe_unused] ] size_t  n,
[[maybe_unused] ] double  p,
[[maybe_unused] ] double  alpha,
[[maybe_unused] ] double *  A,
[[maybe_unused] ] size_t  lda,
[[maybe_unused] ] size_t  seed 
)
inline

Wrappers for double-precision egblas dropout.

Parameters
nThe size of the vector
pThe dropout probability
alphaThe scaling factor alpha
AThe memory of the vector a
ldaThe leading dimension of a

◆ inv_dropout_states() [1/2]

void etl::impl::egblas::inv_dropout_states ( [[maybe_unused] ] size_t  n,
[[maybe_unused] ] float  p,
[[maybe_unused] ] float  alpha,
[[maybe_unused] ] float *  A,
[[maybe_unused] ] size_t  lda,
[[maybe_unused] ] void *  states 
)
inline

Wrappers for single-precision egblas dropout.

Parameters
nThe size of the vector
pThe dropout probability
alphaThe scaling factor alpha
AThe memory of the vector a
ldaThe leading dimension of a

◆ inv_dropout_states() [2/2]

void etl::impl::egblas::inv_dropout_states ( [[maybe_unused] ] size_t  n,
[[maybe_unused] ] double  p,
[[maybe_unused] ] double  alpha,
[[maybe_unused] ] double *  A,
[[maybe_unused] ] size_t  lda,
[[maybe_unused] ] void *  states 
)
inline

Wrappers for double-precision egblas dropout.

Parameters
nThe size of the vector
pThe dropout probability
alphaThe scaling factor alpha
AThe memory of the vector a
ldaThe leading dimension of a