Skip to content
Snippets Groups Projects

Fix slice for out of bound start and end attributes

Merged Cyril Moineau requested to merge SliceFix into dev
1 unresolved thread
Files
5
@@ -43,7 +43,7 @@ public:
/**
* @brief Operator tensor constructor. This function is not meant to be called directly but by a derived class constructor
* every operator class derive from this class.
*
*
* @param[in] type : type of operator (i.e. "Add", "AveragePool",...)
* @param[in] inputsCategory : describes the type of each input.
* @param[in] nbOut : Number of tensors this operator will output
@@ -67,11 +67,14 @@ public:
// input management
void setInput(const IOIndex_t inputIdx, const std::shared_ptr<Data>& data) override;
const std::shared_ptr<Tensor>& getInput(const IOIndex_t inputIdx) const;
virtual const std::vector<std::shared_ptr<Tensor>>& getInputs() const;
std::shared_ptr<Data> getRawInput(const IOIndex_t inputIdx) const override final;
// output management
void setOutput(const IOIndex_t outputIdx, const std::shared_ptr<Data>& data) const override;
virtual const std::shared_ptr<Tensor>& getOutput(const IOIndex_t outputIdx) const;
virtual const std::vector<std::shared_ptr<Tensor>>& getOutputs() const;
std::shared_ptr<Aidge::Data> getRawOutput(const Aidge::IOIndex_t outputIdx) const override final;
///////////////////////////////////////////////////
@@ -94,7 +97,7 @@ public:
* - TOKEN mode means that forwarddims will only ensure that all inputs and outputs of the graph the node is within are connected.
* @param[in] allowDataDependency if set to true, this means that this operator output dimensions depends on the dimensions of optional parameter tensors.
* @return true if dims have been properly forwarded. false otherwise. If set to false, then forwardDims will enter in token mode.
*
*
*/
virtual bool forwardDims(bool allowDataDependency = false);
virtual bool dimsForwarded() const;
@@ -110,4 +113,4 @@ protected:
};
} // namespace Aidge
#endif // AIDGE_CORE_OPERATOR_OPERATORTENSOR_H_
\ No newline at end of file
#endif // AIDGE_CORE_OPERATOR_OPERATORTENSOR_H_
Loading