Browse Source

update config.py

pull/26/head
liuzx 2 years ago
parent
commit
5956c28134
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      npu_mnist_example/config.py

+ 3
- 0
npu_mnist_example/config.py View File

@@ -20,6 +20,9 @@ class Config:
def __init__(self, **entries):
self.__dict__.update(entries)

def __getitem__(self, item):
return self.__dict__[item]

# 定义配置信息
mnist_cfg = Config(
num_classes=10,


Loading…
Cancel
Save