Skip to content

Commit

Permalink
pytorch-quantization: fix undefined 'model_name'
Browse files Browse the repository at this point in the history
Signed-off-by: Rajeev Rao <[email protected]>
  • Loading branch information
ttyio authored and rajeevsrao committed Sep 22, 2021
1 parent 5325570 commit f5ea4e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@
"traindir = os.path.join(data_path, 'train')\n",
"valdir = os.path.join(data_path, 'val')\n",
"_args = collections.namedtuple('mock_args', ['model', 'distributed', 'cache_dataset'])\n",
"dataset, dataset_test, train_sampler, test_sampler = load_data(traindir, valdir, _args(model=model_name, distributed=False, cache_dataset=False))\n",
"dataset, dataset_test, train_sampler, test_sampler = load_data(traindir, valdir, _args(model='resnet50', distributed=False, cache_dataset=False))\n",
"\n",
"data_loader = torch.utils.data.DataLoader(\n",
" dataset, batch_size=batch_size,\n",
Expand Down

0 comments on commit f5ea4e1

Please sign in to comment.