Skip to content
Snippets Groups Projects

Integration of the Sigmoid function to the PTQ pipeline

Merged Benjamin Halimi requested to merge sigmoid into dev
Files
3
@@ -41,6 +41,11 @@ namespace Aidge {
@@ -41,6 +41,11 @@ namespace Aidge {
*/
*/
static const std::set<std::string> mergingNodeTypes({"Add", "Concat", "Sub"});
static const std::set<std::string> mergingNodeTypes({"Add", "Concat", "Sub"});
 
/**
 
* @brief Set of the types of the nodes that won't be quanized
 
*/
 
static const std::set<std::string> notQuantizedNodeTypes({"Sigmoid", "Tanh"});
 
/**
/**
* @brief Determine if a node contains an affine transform (that is Y = A.X + B)
* @brief Determine if a node contains an affine transform (that is Y = A.X + B)
* @param node The node to be checked
* @param node The node to be checked
@@ -62,6 +67,13 @@ namespace Aidge {
@@ -62,6 +67,13 @@ namespace Aidge {
*/
*/
bool isMerging(std::shared_ptr<Node> node);
bool isMerging(std::shared_ptr<Node> node);
 
/**
 
* @brief Determine if a node contains an operator that won't be quantized
 
* @param node The node to be checked
 
* @return True if the node is not quantized, else false.
 
*/
 
bool isNotQuantized(std::shared_ptr<Node> node);
 
/**
/**
* @brief Retrieve the scheduled vector of node of a graphView, without the Producer nodes.
* @brief Retrieve the scheduled vector of node of a graphView, without the Producer nodes.
* @param graphView The graphView containing the nodes
* @param graphView The graphView containing the nodes
Loading