Solved by jfix in post #3 
              
              
                Hi @iviarcio, the NodeValue::setType() call does not change the actual payload of a Constant node, assuming this is what you are expecting to happen. 
What you need to do is something like 
template <typename T> static void rescaleBias(T *node, Function *F) {
  auto *bias = dyn_cast<Constant>(node->g…