Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PyTorch to CoreML: Writing custom layers with Metal shaders - torch.nn.functional.grid_sample operation

NotificationsYou must be signed in to change notification settings

dneprDroid/pytorch-coreml-custom-layer-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTorch to CoreML: Writing custom layers with Metal

pytorch-demo-image

Convert PyTorch model

cd Convertpython3 -m pip install -r requirements.txtpython3 convert.py -o /path/to/output/resulting/mlmodel/file

Run the demo app

OpenTorchCoreMLDemo.xcodeproj in Xcode, build and run the app.

Shader

The code of the grid sample Metal-shader ishere.

More information about grid sample (warper) algorithm you can findhere.

About

PyTorch to CoreML: Writing custom layers with Metal shaders - torch.nn.functional.grid_sample operation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp