Skip to content
Snippets Groups Projects
Commit ed737f9b authored by Franck Galpin's avatar Franck Galpin
Browse files

Merge branch 'msvc_strict_build_correction' into 'master'

change code to pass more strict warnings in msvc

See merge request !78
parents 79edcf69 1d908ea9
No related branches found
No related tags found
1 merge request!78change code to pass more strict warnings in msvc
Pipeline #12592 passed
......@@ -113,7 +113,7 @@ template<typename T> bool Expand<T>::init(const std::vector<Tensor<T> *> &in)
std::cerr << "[ERROR] quantizer on reshape dimensions data layer" << std::endl;
return false;
}
copy(in[1]->begin(), in[1]->end(), dim.begin());
for(int64_t i=0;i<in[1]->size();i++) dim[i]=(int)((*in[1])[i]);
// current restriction: broadcast only scalar to shape or expand last channel =1 of a tensor of dim 4
bool ok = false;
if (in[0]->size() == 1)
......
......@@ -67,7 +67,7 @@ template<typename T> bool Shape<T>::init(const std::vector<Tensor<T> *> &in)
d.resize(1);
d[0] = in[0]->dims().size();
m_out.resize(d);
copy(in[0]->dims().begin(), in[0]->dims().end(), m_out.begin());
for(int i=0;i<in[0]->dims().size();i++) m_out[i]=(T)(in[0]->dims()[i]);
m_initDone = true;
return true;
}
......
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