ROOT
master
Reference Guide
Loading...
Searching...
No Matches
OutputFunctions.cu
Go to the documentation of this file.
1
// @(#)root/tmva/tmva/dnn:$Id$
2
// Author: Simon Pfreundschuh 11/07/16
3
4
/*************************************************************************
5
* Copyright (C) 2016, Simon Pfreundschuh *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
////////////////////////////////////////////////////////////////
13
// Explicit instantiation of the Reference architecture class //
14
// template for Double_t scalar types. //
15
////////////////////////////////////////////////////////////////
16
17
#include "
TMVA/DNN/Architectures/TCudnn.h
"
18
#include "
TMVA/DNN/Architectures/Cuda.h
"
19
20
21
namespace
TMVA
22
{
23
namespace
DNN
24
{
25
26
template
<
typename
AFloat>
27
void
TCudnn<AFloat>::Sigmoid
(
TCudaTensor<AFloat>
& B,
28
const
TCudaTensor<AFloat>
& A)
29
{
30
TCudaMatrix<AFloat>
mB
= B.GetMatrix();
31
TCuda<AFloat>::Sigmoid
(
mB
,A.GetMatrix());
32
}
33
34
//______________________________________________________________________________
35
template
<
typename
AFloat>
36
void
TCudnn<AFloat>::Softmax
(
TCudaTensor<AFloat>
& B,
37
const
TCudaTensor<AFloat>
& A)
38
{
39
TCudaMatrix<AFloat>
mB
= B.GetMatrix();
40
TCuda<AFloat>::Softmax
(
mB
,A.GetMatrix());
41
}
42
43
}
// namespace DNN
44
}
// namespace TMVA
Cuda.h
TCudnn.h
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TMVA::DNN::TCuda::Sigmoid
static void Sigmoid(Tensor_t &B)
TMVA::DNN::TCuda::Softmax
static void Softmax(Matrix_t &YHat, const Matrix_t &)
Definition
OutputFunctions.cu:42
TMVA
create variable transformations
Definition
GeneticMinimizer.h:22
tmva
tmva
src
DNN
Architectures
Cudnn
OutputFunctions.cu
ROOT master - Reference Guide Generated on Fri Mar 21 2025 16:59:24 (GVA Time) using Doxygen 1.10.0