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

Fix update gradient tensor dimesions

parent 6ec46277
No related branches found
No related tags found
3 merge requests!414Update version 0.5.1 -> 0.6.0,!408[Add] Dropout Operator,!401Update the associated grad tensor when tensor is resized
Pipeline #70586 passed
......@@ -649,7 +649,7 @@ public:
}
void setGrad(std::shared_ptr<Tensor> newGrad) {
AIDGE_ASSERT(newGrad->dims() == mDims, "wrong dimensions");
AIDGE_ASSERT(!newGrad || newGrad->dims() == mDims, "wrong dimensions");
mGrad = newGrad;
}
......
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