All Projects → pytorch → Java Demo

pytorch / Java Demo

Licence: other

Projects that are alternatives of or similar to Java Demo

Rmsync
A script for synchronizing the reMarkable e-reader
Stars: ✭ 63 (-3.08%)
Mutual labels:  jupyter-notebook
Taxiprediction
Stars: ✭ 64 (-1.54%)
Mutual labels:  jupyter-notebook
Quac
QUAC ("quantitative analysis of chatter" or any related acronym you like) is a package for acquiring and analyzing social Internet content. Docs are online at http://reidpr.github.io/quac.
Stars: ✭ 64 (-1.54%)
Mutual labels:  jupyter-notebook
Machine Learning In Finance
Stars: ✭ 64 (-1.54%)
Mutual labels:  jupyter-notebook
Dqn Pytorch
Deep Q Learning via Pytorch
Stars: ✭ 64 (-1.54%)
Mutual labels:  jupyter-notebook
W2v
Word2Vec models with Twitter data using Spark. Blog:
Stars: ✭ 64 (-1.54%)
Mutual labels:  jupyter-notebook
Otml ds3 2018
Practical sessions for the Optimal Transport and Machine learning course at DS3 2018
Stars: ✭ 64 (-1.54%)
Mutual labels:  jupyter-notebook
Dda
Differentiable Data Augmentation Library
Stars: ✭ 65 (+0%)
Mutual labels:  jupyter-notebook
Apmae4990
Introduction to Data Science in Industry
Stars: ✭ 64 (-1.54%)
Mutual labels:  jupyter-notebook
Python Course
Stuff for python courses
Stars: ✭ 64 (-1.54%)
Mutual labels:  jupyter-notebook
Deepbayes2017
Stars: ✭ 64 (-1.54%)
Mutual labels:  jupyter-notebook
Text Top Model
Benchmarking text classification algorithms
Stars: ✭ 64 (-1.54%)
Mutual labels:  jupyter-notebook
Learningwithdata
Code for Learning with Data Blog
Stars: ✭ 64 (-1.54%)
Mutual labels:  jupyter-notebook
Matplotlib4papers
Matplotlib examples to present results.
Stars: ✭ 64 (-1.54%)
Mutual labels:  jupyter-notebook
Pycryptobot
Python Crypto Bot
Stars: ✭ 64 (-1.54%)
Mutual labels:  jupyter-notebook
Net Analysis
Tools, libraries and applications to analyze network measurements and detect interference.
Stars: ✭ 64 (-1.54%)
Mutual labels:  jupyter-notebook
Pydata Nyc 2015
📜 Understanding Probabilistic Topic Models with Simulation in Python
Stars: ✭ 64 (-1.54%)
Mutual labels:  jupyter-notebook
Fancy Python
Fancy things you can do in Python to make your life easier
Stars: ✭ 65 (+0%)
Mutual labels:  jupyter-notebook
Ai Recommendersystem
该仓库尝试整理推荐系统领域的一些经典算法模型
Stars: ✭ 65 (+0%)
Mutual labels:  jupyter-notebook
Datascience
Stars: ✭ 64 (-1.54%)
Mutual labels:  jupyter-notebook

PyTorch Java Demo

This repository is a demonstration of how to use PyTorch from Java.

Setup

Download and unpack libtorch nightly (or 1.4 or greater). From the pytorch.org homepage under "Quick Start Locally", make sure "LibTorch" is the selected package. Linux is supported as of version 1.4. Mac is supported as of version 1.5. Linux and Mac are both supported in nightly builds. Windows is not supported at this time.

Run export LIBTORCH_HOME=/path/to/libtorch. The build.gradle file will use this to set java.library.path when running the application. If you are using PyTorch in your own environment, LIBTORCH_HOME is not necessary. Instead, you will need to set java.library.path to /path/to/libtorch/lib.

If using a nightly build, run export USE_LIBTORCH_NIGHTLY=1.

Run ./gradlew run to build and run the demo application. It will load demo-model.pt and run it on some simple data. This notebook was used to generate the model.

More information about the Java API and TorchScript:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].