Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

0.2.1

Compare
Choose a tag to compare
@chrisklaiber chrisklaiber released this 16 Aug 17:27
· 44 commits to 0.2-stable since this release

0.2.1 contains the following notable changes plus many smaller improvements and fixes.

This is the first release under the new name "PlayTorch" which replaces "PyTorch Live". The repository now lives at https://github.com/facebookresearch/playtorch

Learn more about the PlayTorch name and the PlayTorch app in our announcement blog post: https://pytorch.org/blog/introducing-the-playtorch-app/

💫 The 0.2.0 series introduced new JavaScript interfaces to PyTorch APIs for flexible data processing and inference that replace MobileModel.execute and Live Spec JSON. See the core package's README for example usage.

react-native-pytorch-core

  • Support passing general JavaScript types (e.g., Array, String, Object) to Module.forward, and automatically unpack result types (IValue in C++) to JavaScript types
  • Support for React Native 0.68, 0.69
  • Fix Expo Config Plugin: now the apps generated by expo prebuild are ready to compile
  • Fix iOS <Canvas> element to match the (correct) Android behavior when calling CanvasRenderingContext2D.invalidate() to repaint
  • Add new PyTorch JavaScript API wrappers: torch.cat, torch.full, torch.linspace, torch.logspace, torch.randperm, torch.randn, Tensor.argmin, Tensor.expand, and Tensor.flip
  • Add support for RGBA and grayscale to media.imageFromTensor
  • Deprecate media.imageFromBlob in favor of media.imageFromTensor
  • Deprecate MobileModel.execute, MobileModel.preload, MobileModel.unload, and Live Spec in general. Migrate away from Live Spec to use torch.jit._loadForMobile
  • Fix toDictStringKey (#99) in legacy Live Spec

react-native-template-pytorch-live

  • Update documentation references from PyTorch Live to PlayTorch

torchlive-cli

  • Note: torchlive-cli is deprecated. Instead, follow React Native’s Environment Setup guide. To use the default torchlive-cli template, pass the --template flag during setup: npx react-native init AwesomeProject --template react-native-template-pytorch-live

Thank you to our contributors @ansonsyfang, @bhadreshpsavani, @chrisklaiber, @cjfghk5697, @clarksandholtz, @justinhaaheim, @liuyinglao, @michaelkulinich, @raedle, @simpleton, @ta211, Kyle Into, Lucca Bertoncini, Prakhar Sahay, Shushanth Madhubalan, Vladimir Pinchuk, and Zonggen Yi.

Full Changelog: v0.2.0...v0.2.1