Skip to content
Snippets Groups Projects
Commit d4ca927d authored by Maxence Naud's avatar Maxence Naud
Browse files

Update Tensor.hpp and Tensor.cpp

- [#include] Remove duplicated includes, add includes
- [attributes] add default values for mDataType, mImpl and mGrad
- [constructors] Order constructors, change array copy assignment to remove code duplication
- calling grad() does not instanciate the gradient anymore, a dedicated function should do it
- move getAvailableBackends() and operator=(const Tensor&) to cpp file
- Tensor::resize() now handles scalar Tensors
parent 0167d1dc
No related branches found
No related tags found
2 merge requests!105version 0.2.0,!89Increase the number of unit-tests for Tensor
Pipeline #40282 failed
Loading
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