Don't use float32 here, but use node.inputs[i].dtype.