Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions SimpleMLBenchmark/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import torch
import torch_directml # directml support!
import random
from tqdm import tqdm
import numpy as np
Expand All @@ -25,7 +26,7 @@

total_epochs = 128
batch_size = 64
device = grab_torch_device(args)
device = torch_directml.device() # this is a variable now, not a string
track = Tracker(device)

print("Batch size :", batch_size)
Expand Down Expand Up @@ -96,4 +97,4 @@

print("Logging Complete!, Compiling Results...")
print()
track.simple_print()
track.simple_print()