6892bb0f84aa70e52b1f98fcf5f9af120bfb4a0a,classifier.py,,,#,18

Before Change



train_data, val_data, test_data = data_config.apply(args)
ntokens = args.data_size
model = SentimentClassifier(args.model, ntokens, args.emsize, args.nhid, args.nlayers, 0.0, args.all_layers).cuda()

if args.fp16:
    model.half()

After Change



args = parser.parse_args()

args.cuda = torch.cuda.is_available()

train_data, val_data, test_data = data_config.apply(args)
ntokens = args.data_size
model = SentimentClassifier(args.model, ntokens, args.emsize, args.nhid, args.nlayers, 0.0, args.all_layers)
if args.cuda:
    model.cuda()

if args.fp16:
    model.half()

with open(args.load_model, "rb") as f:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: NVIDIA/sentiment-discovery
Commit Name: 6892bb0f84aa70e52b1f98fcf5f9af120bfb4a0a
Time: 2018-04-07
Author: raulp@dbcluster.nvidia.com
File Name: classifier.py
Class Name:
Method Name:


Project Name: NVIDIA/sentiment-discovery
Commit Name: 6892bb0f84aa70e52b1f98fcf5f9af120bfb4a0a
Time: 2018-04-07
Author: raulp@dbcluster.nvidia.com
File Name: generate.py
Class Name:
Method Name:


Project Name: NVIDIA/sentiment-discovery
Commit Name: 6892bb0f84aa70e52b1f98fcf5f9af120bfb4a0a
Time: 2018-04-07
Author: raulp@dbcluster.nvidia.com
File Name: main.py
Class Name:
Method Name: