// TODO: check that each node is an OperatorTensor
// TODO: check that each node is an OperatorTensor
AIDGE_ASSERT(node->getOperator()->operatorType()==OperatorType::Tensor,"Cannot instanciate gradient of an Operator that doesn't use Tensor.");
AIDGE_ASSERT(node->getOperator()->operatorType()==OperatorType::Tensor,"Cannot instanciate gradient of an Operator ({}) that doesn't use Tensor.",node->getOperator()->type());