RuntimeError: strides() called on undefined Tensor

Hello everyone! I have met a problem when I’m using to save torchscript model as the title. Anyone has some suggestions for me?

Hello zhazl, did you find the solution? I am getting the similar error while implementing model with ArcFace.

yes, you can add the input data(default equal to None) with a type Optional