Skip to content

wangbluo/Pytorch-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Pytorch-test

Tests for PyTorch api.

Before channel_last: img_v3_02h8_93ca069c-1bb0-4326-adbc-87486f71af5g

After channel_last: no pre-compile kernel, step time reduce 30%(compared to no-continus memory_format) Pytorch said they reduce 22% steptime compared to continus memory_format.

img_v3_02h8_7a01a9f1-40f1-4783-bbaf-497a2e2255ag

Usage: https://pytorch.org/docs/stable/tensor_attributes.html#torch.memory_format

Tutorial: https://pytorch.org/tutorials/intermediate/memory_format_tutorial.html

Pytorch benchmark: https://github.com/NVIDIA/apex/blob/ac8214ee6ba77c0037c693828e39d83654d25720/examples/imagenet/main_amp.py#L147C5-L147C57

About

Tests for PyTorch api.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages