Skip to content
Snippets Groups Projects
Commit fb02e3ec authored by Olivier Antoni's avatar Olivier Antoni Committed by Olivier BICHLER
Browse files

Add clip method for Tensor

parent c4ac1323
No related branches found
No related tags found
3 merge requests!414Update version 0.5.1 -> 0.6.0,!408[Add] Dropout Operator,!385Tensor clip
Pipeline #69676 passed
......@@ -351,7 +351,8 @@ class Tensor : public Data,
* @brief Element-wise clip operation for Tensor.
* @return Tensor
*/
Tensor clip(float min, float max) const;
Tensor clip(float min = std::numeric_limits<float>::lowest(),
float max = std::numeric_limits<float>::max()) const;
~Tensor() noexcept;
......
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