#include <keras_model.h>
Definition at line 164 of file keras_model.h.
 
  
  
      
        
          | keras::LayerActivation::LayerActivation  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
Implements keras::Layer.
Definition at line 181 of file keras_model.cc.
  184     vector<vector<vector<float> > > 
y = dc->
get_3d();
   186       for(
unsigned int i = 0; i < y.size(); ++i) {
   187         for(
unsigned int j = 0; j < y[0].size(); ++j) {
   188           for(
unsigned int k = 0; 
k < y[0][0].size(); ++
k) {
   189             if(y[i][j][
k] < 0) y[i][j][
k] = 0;
   194       for(
unsigned int i = 0; i < y.size(); ++i) {
   195         for(
unsigned int j = 0; j < y[0].size(); ++j) {
   196           for(
unsigned int k = 0; 
k < y[0][0].size(); ++
k) {
   197             y[i][j][
k] = tanh(y[i][j][
k]);
   210     vector<float> y = dc->
get_1d();
   212       for(
unsigned int k = 0; 
k < y.size(); ++
k) {
   213         if(y[
k] < 0) y[
k] = 0;
   217       for(
unsigned int k = 0; 
k < y.size(); ++
k) {
   221       for(
unsigned int k = 0; 
k < y.size(); ++
k) {
   225       for(
unsigned int k = 0; 
k < y.size(); ++
k) {
   229       for(
unsigned int k = 0; 
k < y.size(); ++
k) {
   230         y[
k] = 1.0F / (1.0F + exp(-y[
k]));
   240   } 
else { 
throw "data dim not supported"; }
 virtual void set_data(std::vector< std::vector< std::vector< float > > > const &)
 
virtual std::vector< std::vector< std::vector< float > > > const & get_3d() const 
 
virtual size_t get_data_dim(void) const 
 
std::string m_activation_type
 
void missing_activation_impl(const std::string &act)
 
virtual std::vector< float > const & get_1d() const 
 
 
 
 
  
  
      
        
          | virtual unsigned int keras::LayerActivation::get_input_cols  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
  
  
      
        
          | virtual unsigned int keras::LayerActivation::get_input_rows  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
  
  
      
        
          | virtual unsigned int keras::LayerActivation::get_output_units  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
  
  
      
        
          | void keras::LayerActivation::load_weights  | 
          ( | 
          std::ifstream &  | 
          fin | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
Implements keras::Layer.
Definition at line 81 of file keras_model.cc.
   83   cout << 
"Activation type " << m_activation_type << 
endl;
 std::string m_activation_type
 
QTextStream & endl(QTextStream &s)
 
 
 
 
The documentation for this class was generated from the following files: