Bug1: Encountered during libtorch C++ deployment, the compilation passed, and an error was reported when running
UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable.
Solution: This is a bug of pytorch1.9, downgrade pytorch to 1.8.0