FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Adjust import statements · PPPLDeepLearning/plasma-python@9be415c · GitHub

Commit 9be415c

Browse files
committed
Adjust import statements
1 parent 5d08bb4 commit 9be415c

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎examples/mpi_learn.py‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@
3232

3333
from plasma.conf import conf
3434
from plasma.models.loader import Loader
35-
from plasma.preprocessor.normalize import Normalizer, Augmentator
35+
from plasma.preprocessor.normalize import Normalizer
36+
from plasma.preprocessor.augment import Augmentator
3637
from plasma.preprocessor.preprocess import guarantee_preprocessed
3738

38-
import pdb
39-
4039
if conf['model']['shallow']:
4140
print("Shallow learning using MPI is not supported yet. set conf['model']['shallow'] to false.")
4241
exit(1)
@@ -83,12 +82,11 @@
8382

8483

8584
print("normalization",end='')
86-
pdb.set_trace()
8785
raw_normalizer = Normalizer(conf)
8886
raw_normalizer.train()
8987
is_inference= False
90-
normalizer = Augmentator(Normalizer,is_inference,conf)
91-
loader = Loader(conf,nn)
88+
normalizer = Augmentator(raw_normalizer,is_inference,conf)
89+
loader = Loader(conf,normalizer)
9290
print("...done")
9391

9492
if not only_predict:

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL