# PytorchExpObjC **Repository Path**: weismarts/PytorchExpObjC ## Basic Information - **Project Name**: PytorchExpObjC - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-02-01 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PytorchExpObjC The Objective-C API wrapper of PytorchExp ## Quick start Add the PytorchExpObjC to your `podfile` - Objective-C ``` pod 'PytorchExpObjC', :git=>'https://gitee.com/weismarts/PytorchExpObjC.git' ,:branch => 'master' ``` - Swift ``` use_framework! pod 'PytorchExpObjC', :git=>'https://gitee.com/weismarts/PytorchExpObjC.git' ,:branch => 'master' ``` ## Note Since Pytorch is not in its final stage, the static libraries in this pod hasn't been fully optimized yet and thus can't be used in production. For the demo purpose, the `libtorch.a` only supports one architecture - `arm64`, meaning the code can be only run on an arm64 device. And because of the size issues, the bitcode in `libtorch.a` has been stripped out, so `enable bitcode` switch in XCode should be turned off as well. ## TestAPP The TestApp folder contains an Objective-C demo, it uses a traced torch script model which was exported from torchvision (ResNet18). To run the demo, just simply run `pod install`