Skip to content
Snippets Groups Projects
Commit 8a71ba23 authored by Houssem ROUIS's avatar Houssem ROUIS
Browse files

doc Abs operator

parent 171e7f9e
No related branches found
No related tags found
2 merge requests!318[Upd] release verision 0.5.0,!293Doc operators
......@@ -24,16 +24,32 @@
namespace Aidge {
/**
* @brief Description of an element-wise Absolute Value (Abs) operation
* on an input Tensor.
*
* For each element x in the input, the function is defined as:
* `f(x) = |x|`, where |x| denotes the absolute value of x.
*
* The input and output Tensors have the same dimensions.
*
* @see OperatorTensor
* @see Registrable
*/
class Abs_Op : public OperatorTensor,
public Registrable<Abs_Op, std::string, std::function<std::shared_ptr<OperatorImpl>(const Abs_Op&)>> {
public Registrable<Abs_Op, // <Op, backend, implementation creation function>
std::string,
std::function<std::shared_ptr<OperatorImpl>(const Abs_Op&)>> {
public:
static const std::string Type;
Abs_Op() : OperatorTensor(Type, {InputCategory::Data}, 1) {}
/**
* @brief Copy-constructor. Copy the operator attributes and its output tensor(s), but not its input tensors (the new operator has no input associated).
* @param op Operator to copy.
* @brief Copy-constructor.
* @param op Abs_Op to copy.
* @details Copies the operator attributes and its output tensor(s), but not
* its input tensors. The new operator has no associated input.
*/
Abs_Op(const Abs_Op& op)
: OperatorTensor(op)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment