我想在fastapi 后端托管一个pytorch 模型。当我用python 运行代码时,它工作正常。 depickled 模型可以使用定义的类。当同一个文件以uvicorn 启动时,它找不到类定义。
確定! 回上一頁