Browse Source

更新 'gpu_mnist_example/train_gpu.py'

liuzx-patch-1
liuzxtest02 2 years ago
parent
commit
ed3b89bfb3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      gpu_mnist_example/train_gpu.py

+ 1
- 1
gpu_mnist_example/train_gpu.py View File

@@ -13,6 +13,7 @@ If there are Chinese comments in the code,please add at the beginning:
''' '''


import os import os
os.system("pip install -U openi_test")
from model import Model from model import Model
import numpy as np import numpy as np
import torch import torch
@@ -25,7 +26,6 @@ import argparse
#导入openi包 #导入openi包
from openi.context import prepare, upload_openi from openi.context import prepare, upload_openi


os.system("pip install -U openi_test")
# Training settings # Training settings
parser = argparse.ArgumentParser(description='PyTorch MNIST Example') parser = argparse.ArgumentParser(description='PyTorch MNIST Example')
parser.add_argument('--epoch_size', type=int, default=10, help='how much epoch to train') parser.add_argument('--epoch_size', type=int, default=10, help='how much epoch to train')


Loading…
Cancel
Save