I downloaded the model from: https://s3.amazonaws.com/onnx-model-zoo/arcface/resnet100/resnet100.onnx If you open the model, take a look at the second OP: Sub. Its first input, A, is a float tensor, but its second input, B, is a double tensor.