MagmaDNN  1.0
c++NeuralNetworkFramework
sigmoidop.h File Reference
#include <string>
#include "compute/operation.h"
#include "compute/add/addop.h"
#include "compute/dot/dotop.h"
#include "compute/variable.h"
#include "compute/negative/negativeop.h"
#include "sigmoid_internal.h"
#include "utilities_internal.h"
Include dependency graph for sigmoidop.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  magmadnn::op::SigmoidOp< T >
 

Functions

template<typename T >
SigmoidOp< T > * magmadnn::op::sigmoid (Operation< T > *x, bool copy, bool fast)
 

Detailed Description

Author
Daniel Nichols
Version
1.0
Date
2019-02-23

Function Documentation

◆ sigmoid()

template<typename T >
SigmoidOp< T > * magmadnn::op::sigmoid ( Operation< T > *  x,
bool  copy = true,
bool  fast = false 
)

Compute element-wise sigmoid on tensor x.

Template Parameters
T
Parameters
xtensor to be computed with.
copyif true, a new tensor is allocated and returned. If false, x is overwritten.
fastif true, the x=1/(1+|x|) is computed instead of the normal sigmoid function.
Returns
SigmoidOp<T>*