提交 16544b37 编写于 作者: W wukesong

modify

上级 ab83bf18
......@@ -16,11 +16,11 @@
Produce the dataset
"""
from config import alexnet_cfg as cfg
import mindspore.dataset as ds
import mindspore.dataset.transforms.c_transforms as C
import mindspore.dataset.transforms.vision.c_transforms as CV
from mindspore.common import dtype as mstype
from .config import alexnet_cfg as cfg
def create_dataset_mnist(data_path, batch_size=32, repeat_size=1, status="train"):
......
......@@ -43,11 +43,12 @@ class LeNet5(nn.Cell):
Args:
num_class (int): Num classes. Default: 10.
channel (int): Num channels. Default: 1.
Returns:
Tensor, output tensor
Examples:
>>> LeNet(num_class=10)
>>> LeNet(num_class=10, channel=1)
"""
def __init__(self, num_class=10, channel=1):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册