Files already downloaded and verified
Files already downloaded and verified
---------------------------------------------------------------------------AttributeErrorTraceback (most recent call last)
/media/pc/data/4tb/xinet/web/pytorch-book/docs/quantization/study/transfer-learning/custom.ipynb Cell 5' in <cell line: 3>()<ahref='vscode-notebook-cell://ssh-remote%2B10.16.11.3/media/pc/data/4tb/xinet/web/pytorch-book/docs/quantization/study/transfer-learning/custom.ipynb#ch0000011vscode-remote?line=0'>1</a>batch_size=128<ahref='vscode-notebook-cell://ssh-remote%2B10.16.11.3/media/pc/data/4tb/xinet/web/pytorch-book/docs/quantization/study/transfer-learning/custom.ipynb#ch0000011vscode-remote?line=1'>2</a>train_iter,test_iter=CV.load_data_cifar10(batch_size=batch_size)----><ahref='vscode-notebook-cell://ssh-remote%2B10.16.11.3/media/pc/data/4tb/xinet/web/pytorch-book/docs/quantization/study/transfer-learning/custom.ipynb#ch0000011vscode-remote?line=2'>3</a>quantized_model=model.quantize_qat(model,<ahref='vscode-notebook-cell://ssh-remote%2B10.16.11.3/media/pc/data/4tb/xinet/web/pytorch-book/docs/quantization/study/transfer-learning/custom.ipynb#ch0000011vscode-remote?line=3'>4</a>run_fn=CV.train_fine_tuning,<ahref='vscode-notebook-cell://ssh-remote%2B10.16.11.3/media/pc/data/4tb/xinet/web/pytorch-book/docs/quantization/study/transfer-learning/custom.ipynb#ch0000011vscode-remote?line=4'>5</a>run_args=[train_iter,test_iter],<ahref='vscode-notebook-cell://ssh-remote%2B10.16.11.3/media/pc/data/4tb/xinet/web/pytorch-book/docs/quantization/study/transfer-learning/custom.ipynb#ch0000011vscode-remote?line=5'>6</a>run_kwargs={<ahref='vscode-notebook-cell://ssh-remote%2B10.16.11.3/media/pc/data/4tb/xinet/web/pytorch-book/docs/quantization/study/transfer-learning/custom.ipynb#ch0000011vscode-remote?line=6'>7</a>'learning_rate':1e-3,<ahref='vscode-notebook-cell://ssh-remote%2B10.16.11.3/media/pc/data/4tb/xinet/web/pytorch-book/docs/quantization/study/transfer-learning/custom.ipynb#ch0000011vscode-remote?line=7'>8</a>'num_epochs':100,<ahref='vscode-notebook-cell://ssh-remote%2B10.16.11.3/media/pc/data/4tb/xinet/web/pytorch-book/docs/quantization/study/transfer-learning/custom.ipynb#ch0000011vscode-remote?line=8'>9</a>},<ahref='vscode-notebook-cell://ssh-remote%2B10.16.11.3/media/pc/data/4tb/xinet/web/pytorch-book/docs/quantization/study/transfer-learning/custom.ipynb#ch0000011vscode-remote?line=9'>10</a>inplace=False<ahref='vscode-notebook-cell://ssh-remote%2B10.16.11.3/media/pc/data/4tb/xinet/web/pytorch-book/docs/quantization/study/transfer-learning/custom.ipynb#ch0000011vscode-remote?line=10'>11</a>)File ~/xinet/anaconda3/envs/torchx/lib/python3.10/site-packages/torch/nn/modules/module.py:1185, in Module.__getattr__(self, name)<ahref='file:///home/pc/xinet/anaconda3/envs/torchx/lib/python3.10/site-packages/torch/nn/modules/module.py?line=1182'>1183</a>ifnameinmodules:<ahref='file:///home/pc/xinet/anaconda3/envs/torchx/lib/python3.10/site-packages/torch/nn/modules/module.py?line=1183'>1184</a>returnmodules[name]-><ahref='file:///home/pc/xinet/anaconda3/envs/torchx/lib/python3.10/site-packages/torch/nn/modules/module.py?line=1184'>1185</a>raiseAttributeError("'{}' object has no attribute '{}'".format(<ahref='file:///home/pc/xinet/anaconda3/envs/torchx/lib/python3.10/site-packages/torch/nn/modules/module.py?line=1185'>1186</a>type(self).__name__,name))AttributeError: 'QuantizableResNet' object has no attribute 'quantize_qat'