Skip to content
Snippets Groups Projects
Commit 3f16a3f7 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Fixed misplaced resize

parent ed4cef38
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,8 @@ void Aidge::Tensor::copyCastFrom(const Tensor& src, std::shared_ptr<Tensor>& mov
// If no backend was set for the current tensor, use the same as src
const auto deviceSrc = src.getImpl()->device();
setBackend(deviceSrc.first, deviceSrc.second);
resize(src.dims());
}
resize(src.dims());
if (dataType() != src.dataType()) {
// First move data to the target device (only if needed)
......
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