Does the flops change if I export the pytorch file to onnx?

Does the flops change if I export the pytorch file to onnx?
I’m testing with yolov8 and resnet18, mobilenetv2, and I’m looking for a code to calculate gflops on onnx.