Logo ROOT  
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
19
20
21namespace TMVA
22{
23namespace DNN
24{
25
26template<typename AFloat>
27void 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//______________________________________________________________________________
35template<typename AFloat>
36void 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
static void Sigmoid(Tensor_t &B)
static void Softmax(Matrix_t &YHat, const Matrix_t &)
create variable transformations