Skip to content
Snippets Groups Projects

[fix] producers helper function always retrieved constant producer, by default...

Merged Cyril Moineau requested to merge ProducerGetConstant into dev
3 files
+ 10
6
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -22,11 +22,12 @@
@@ -22,11 +22,12 @@
namespace Aidge {
namespace Aidge {
/**
/**
* @brief Getter for every Producer operator in a GraphView.
* @brief Getter for every Tensor held by a Producer operator in a GraphView.
* @param graphview GraphView instance where Producers should be searched.
* @param graphview GraphView instance where Producers should be searched.
 
* @param constant If true, Producer with attribute ``constant=true`` are also included in the returned set, default=false
* @return std::set<std::shared_ptr<Node>>
* @return std::set<std::shared_ptr<Node>>
*/
*/
std::set<std::shared_ptr<Tensor>> producers(std::shared_ptr<GraphView> graphview);
std::set<std::shared_ptr<Tensor>> producers(std::shared_ptr<GraphView> graphview, bool constant=false);
// TODO: change for every Tensor of Operator Producer not constant
// TODO: change for every Tensor of Operator Producer not constant
Loading