pytorch/ios
Chen Lai b5a834a739 [Pytorch] Build lite interpreter as default for iOS
Summary:
Two changes:
1. Build lite interpreter as default for iOS
2. Switch the previous lite interpreter test to full jit build test

Test Plan: Imported from OSS

Differential Revision: D27698039

Reviewed By: xta0

Pulled By: cccclai

fbshipit-source-id: 022b554f4997ae577681f2b79a9ebe9236ca4f7d
2021-05-17 22:36:05 -07:00
..
TestApp [Pytorch] Build lite interpreter as default for iOS 2021-05-17 22:36:05 -07:00
.gitignore Add iOS test app skeleton (#26261) 2019-09-17 11:06:57 -07:00
LibTorch.h
LibTorch.podspec [iOS] Bump up the Cocoapods version (#53335) 2021-03-04 20:29:23 -08:00
README.md Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00

PyTorch for iOS

Cocoapods Developers

PyTorch is now available via Cocoapods, to integrate it to your project, simply add the following line to your Podfile and run pod install

pod 'LibTorch'

Import the library

For Objective-C developers, simply import the umbrella header

#import <LibTorch/LibTorch.h>

For Swift developers, you need to create an Objective-C class as a bridge to call the C++ APIs. We highly recommend you to follow the Image Classification demo where you can find out how C++, Objective-C and Swift work together.

Disable Bitcode

Since PyTorch is not yet built with bitcode support, you need to disable bitcode for your target by selecting the Build Settings, searching for Enable Bitcode and set the value to No.

LICENSE

PyTorch is BSD-style licensed, as found in the LICENSE file.