Skip to content
Snippets Groups Projects
Commit dfc454cc authored by Michal Szczepanski's avatar Michal Szczepanski
Browse files

Remove warnings in Resize.cpp

parent 0f1fb3b0
No related branches found
No related tags found
2 merge requests!152Update Aidge export to take a graph view has an argument instead of a...,!125Operator resize
...@@ -62,7 +62,7 @@ bool Aidge::Resize_Op::forwardDims(bool /*allowDataDependency*/) { ...@@ -62,7 +62,7 @@ bool Aidge::Resize_Op::forwardDims(bool /*allowDataDependency*/) {
for (std::size_t dim=0; dim < getInput(1)->size(); ++dim) { for (std::size_t dim=0; dim < getInput(1)->size(); ++dim) {
// todo verify if batch and depth is not 1 ! // todo verify if batch and depth is not 1 !
printf("{} {} \n", dim, scales[dim] ); fmt::print("{} {} \n", dim, scales[dim] );
outDims[dim] *= scales[dim]; outDims[dim] *= scales[dim];
} }
...@@ -95,15 +95,15 @@ bool Aidge::Resize_Op::forwardDims(bool /*allowDataDependency*/) { ...@@ -95,15 +95,15 @@ bool Aidge::Resize_Op::forwardDims(bool /*allowDataDependency*/) {
/* /*
std::vector<DimSize_t> outDims[ width_out = sizes[0], \ std::vector<DimSize_t> outDims[ width_out = sizes[0], \
// height_out = sizes[1], \ height_out = sizes[1], \
// depth_input_tensor, \ depth_input_tensor, \
// batch_input_tensor]; batch_input_tensor];
*/ */
for (std::size_t dim=0; dim < getInput(1)->size(); ++dim) { for (std::size_t dim=0; dim < getInput(1)->size(); ++dim) {
// todo verify if batch and depth is not 1 ! // todo verify if batch and depth is not 1 !
outDims[dim] = sizes[dim]; outDims[dim] = sizes[dim];
printf("{} {} \n", dim, sizes[dim] ); fmt::print("{} {} \n", dim, sizes[dim] );
} }
mOutputs[0]->resize(outDims); mOutputs[0]->resize(outDims);
fmt::print("output dims 0 = {}\n", outDims); fmt::print("output dims 0 = {}\n", outDims);
......
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