With above execution, following error is appeared.
=> creating model 'googlenet'
Traceback (most recent call last):
  File "examples/imagenet/main.py", line 417, in <module>
    main()
  File "examples/imagenet/main.py", line 113, in main
    main_worker(args.gpu, ngpus_per_node, args)
  File "examples/imagenet/main.py", line 239, in main_worker
    train(train_loader, model, criterion, optimizer, epoch, args)
  File "examples/imagenet/main.py", line 285, in train
    acc1, acc5 = accuracy(output, target, topk=(1, 5))
  File "examples/imagenet/main.py", line 405, in accuracy
    _, pred = output.topk(maxk, 1, True, True)
AttributeError: 'GoogLeNetOuputs' object has no attribute 'topk'

P.S.  Workaround fix by your suggestion is in following URL

  
      
      GitHub
  
  
    

sakaia/examples 13

A set of examples around pytorch in Vision, Text, Reinforcement Learning, etc. - sakaia/examples