26template<
typename AFloat>
28 const TCudaMatrix<AFloat> & A)
32 cudaStream_t s = A.GetComputeStream();
33 ::TMVA::DNN::Cuda::Sigmoid<<<gridDims, blockDims, 0, s>>>(B.GetDataPointer(),
37 B.SetComputeStream(s);
41template<
typename AFloat>
48 ::TMVA::DNN::Cuda::Softmax<<<gridDims, blockDims, 0, s>>>(B.
GetDataPointer(),
void SetComputeStream(cudaStream_t stream)
cudaStream_t GetComputeStream() const
const AFloat * GetDataPointer() const
static void Sigmoid(Tensor_t &B)
static void Softmax(Matrix_t &YHat, const Matrix_t &)
static dim3 BlockDims2D()
static dim3 GridDims2D(int nrows, int ncols)
static dim3 BlockDims1D()
static dim3 GridDims1D(const AMatrix &A)
create variable transformations