diff --git a/gpu_mnist_example/train_gpu.py b/gpu_mnist_example/train_gpu.py index f83a473..2fd6118 100644 --- a/gpu_mnist_example/train_gpu.py +++ b/gpu_mnist_example/train_gpu.py @@ -13,6 +13,7 @@ If there are Chinese comments in the code,please add at the beginning: ''' import os +os.system("pip install -U openi_test") from model import Model import numpy as np import torch @@ -25,7 +26,6 @@ import argparse #导入openi包 from openi.context import prepare, upload_openi -os.system("pip install -U openi_test") # Training settings parser = argparse.ArgumentParser(description='PyTorch MNIST Example') parser.add_argument('--epoch_size', type=int, default=10, help='how much epoch to train')