-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestions for more examples #266
Comments
an example for loading and running torchscript models for mobile android/ios inference would be great |
@imjwang, do you mean a model that has been built using Pytorch and TorchScript, loaded with .NET, or do you mean training and producing the model using .NET, then exporting to native code via TorchScript? |
the former, a pretrained model that has already been exported to .ts or .pt |
PyTorch for Deep Learning: Creating and Deploying Deep Learning Applicationsimport spacy
import torchtext
import pandas as pd
import torch.nn as nn
import torch.optim as optim
from torchtext.legacy import data import IPython.display as display
import librosa
import librosa.display
import matplotlib.pyplot as plt
import numpy as np
import random
import torch
import torchaudio
import torch.optim as optim
import torch.nn as nn
import torch.nn.functional as F
import torchvision
from pathlib import Path
from PIL import Image
from torch.utils.data import Dataset
from torchvision import models, transforms import torch
import torch.nn as nn
import torch.utils.data
import torchvision
from functools import partial
from torch import optim
from torch.utils.tensorboard import SummaryWriter
from torchvision import datasets, transforms |
I have Pytorch experience, but am completely new to Xamarin, C#, and .NET Thank you in advance. |
I received these suggestions from @GeorgeS2019 via email:
https://github.com/Apress/pytorch-recipes
https://github.com/Apress/pytorch-recipes/blob/master/Torch_AI_7.ipynb
Has a few NLP examples to “complete” your torchsharp examples
• 7.1 Word Embedding
• 7.2 Continuous bag of words (CBOW)
• 7.3 LSTM Model
The text was updated successfully, but these errors were encountered: