Google Collab

Cloning a Repo

!git clone https://github.com/bCom5/trained-ternary-quantization.git
%cd trained-ternary-quantization
!pip install thop

Saving a model

# model.cpu();
torch.save(model.state_dict(), 'micro_large_conv_and_fc_ttq_x0_32.pytorch_state')

from google.colab import drive
drive.mount('/content/gdrive')

!ls /content/gdrive/My\ Drive/04-eecs-299-research/03-new-work/01-fundamental-work/trained-ternary-quantization/ttq_microbotnet/ttq_models

!mv micro_large_conv_and_fc_ttq_x0_32.pytorch_state /content/gdrive/My\ Drive/04-eecs-299-research/03-new-work/01-fundamental-work/trained-ternary-quantization/ttq_microbotnet/ttq_models/micro_large_conv_and_fc_ttq_x0_32.pytorch_state