Apollo  6.0
Open source self driving car software
Namespaces | Functions
net_util.h File Reference
#include <string>
#include <vector>
#include "Eigen/Dense"
#include "modules/prediction/proto/network_layers.pb.h"
Include dependency graph for net_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 apollo::prediction::network
 apollo::prediction::network
 
 apollo
 PlanningContext is the runtime context in planning. It is persistent across multiple frames.
 
 apollo::prediction
 apollo::prediction
 

Functions

float apollo::prediction::network::sigmoid (const float x)
 sigmoid function: f(x) = 1 / (1 + exp(-x)) More...
 
float apollo::prediction::network::tanh (const float x)
 hyperbolic tangent function: f(x) = (1 + exp(-2x)) / (1 - exp(-2x)) More...
 
float apollo::prediction::network::linear (const float x)
 linear function: f(x) = x More...
 
float apollo::prediction::network::hard_sigmoid (const float x)
 "hard" sigmoid function: | 0.0 x in (-oo, 0) f(x) = | 0.2x + 0.5 x in [0, 2.5] | 1.0 x in (2.5, +oo) More...
 
float apollo::prediction::network::relu (const float x)
 relu function: | 0.0 x in (-oo, 0.0) f(x) = | | x x in [0.0, +oo) More...
 
Eigen::MatrixXf apollo::prediction::network::FlattenMatrix (const Eigen::MatrixXf &matrix)
 flatten a matrix to a row vector More...
 
std::function< float(float)> apollo::prediction::network::serialize_to_function (const std::string &str)
 translate a string into a network activation function More...
 
bool apollo::prediction::network::LoadTensor (const TensorParameter &tensor_pb, Eigen::MatrixXf *matrix)
 load matrix value from a protobuf message More...
 
bool apollo::prediction::network::LoadTensor (const TensorParameter &tensor_pb, Eigen::VectorXf *vector)
 load vector value from a protobuf message More...
 
bool apollo::prediction::network::LoadTensor (const TensorParameter &tensor_pb, std::vector< Eigen::MatrixXf > *const tensor3d)
 load matrix value from a protobuf message More...