Skip to content
Snippets Groups Projects

Adding Scaling Nodes (Tagged Mul) below Producers / Removing Unitary MetaOp

Merged Noam Zerah requested to merge noamzerah/aidge_quantization:mul_sf_below_tensor into dev
Files
10
@@ -29,14 +29,6 @@ namespace Aidge {
/// @return A shared pointer to an instance of the meta-operator node.
std::shared_ptr<Aidge::Node> Quantizer(double scalingFactor, double clipMin, double clipMax, const std::string& name);
/// @brief The purpose of Scaling is to encapsulate the Mul operator and tag it as a PTQ node rather than a regular Mul operator.
/// Therefore, this meta-operator consists solely of a [Mul] operation.
///
/// @param scalingFactor The scaling factor to apply to the input (a scalar to multiply the input with).
/// @param name The name of the meta-operator node created.
/// @return A shared pointer to an instance of the scaling node.
std::shared_ptr<Aidge::Node> Scaling(double scalingFactor, const std::string& name = "");
/// @brief Updates the scaling factor of a PTQ meta-operator node, allowing for dynamic adjustment of the scaling parameter.
/// This function sets a new scaling factor for a specified meta-operator node, modifying the scalar applied in the [Mul] operation.
/// The meta-operator node must be a PTQ-specific operator, such as a Quantizer or Scaling node.
Loading