forked from mindspore-Ecosystem/mindspore
fix relative import path for RDR st
This commit is contained in:
parent
32a38810ed
commit
94298e9b90
|
@ -21,9 +21,6 @@ Usage:
|
|||
import argparse
|
||||
|
||||
import numpy as np
|
||||
from models.alexnet import AlexNet
|
||||
from models.lenet import LeNet
|
||||
from models.resnetv1_5 import resnet50
|
||||
|
||||
import mindspore.context as context
|
||||
import mindspore.nn as nn
|
||||
|
@ -31,7 +28,9 @@ from mindspore import Tensor
|
|||
from mindspore.nn import TrainOneStepCell, WithLossCell
|
||||
from mindspore.nn.optim import Momentum
|
||||
|
||||
context.set_context(mode=context.GRAPH_MODE, device_target="Ascend")
|
||||
from .models.alexnet import AlexNet
|
||||
from .models.lenet import LeNet
|
||||
from .models.resnetv1_5 import resnet50
|
||||
|
||||
|
||||
def train(net, data, label):
|
||||
|
|
Loading…
Reference in New Issue