Deep Learning Step8 Make Package
Deep Learning Step8 Make Package We wrote so many codes in one file. For convinience of using computational nodes we made, we will make a package from the one file. Structure of the package dezero-- __init__.py | | -- core_simple.py sample--test.py __init__.py __init__.py is one of setting file in python. It is used when we make a package in python. We have to put it in a directory which includes python files like above. In this case, we make a package called dezero. So we have to put the file under dezero. __init__.py is called when we use python files under dezero directory. If we don't use __init__.py, you will write a code in test.py in sample directory. #add path .. for serching package directory if '__file__' in globals(): import os, sys sys.path.append(os.path.j...