Skip to content

wsdqy1234/Mac-Torch-GPU-VAE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mac-Torch-GPU-VAE

Use GPU Acceleration for M1 Macbook.

Environment Requirement

PyTorch >= 1.12.0

ipykernel (Required)

Highlighted Calls

# Judge whether GPU is avaiable
if torch.backends.mps.is_available()
	device = torch.device("mps")
else
	device = torch.device("cpu")

# Push model into GPU
model.to(device)

About

Use GPU Acceleration for M1 Macbook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published