Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import error network and basestring missing #6

Open
chrysmun opened this issue Jan 23, 2020 · 1 comment
Open

import error network and basestring missing #6

chrysmun opened this issue Jan 23, 2020 · 1 comment

Comments

@chrysmun
Copy link

the code would only run when in every file the import would be
from network.network import Network
(double network, once for the folder, once for the network.py)
so something with the packaging doesnt work?

network.py - the basestring is never defined and it crashes, yet the code also crashes if either of the decision paths are taken.
if isinstance(fed_layer, basestring):
try:
fed_layer = self.layers[fed_layer]
except KeyError:
raise KeyError('Unknown layer name fed: %s' % fed_layer)
self.terminals.append(fed_layer)

@Huang-yihao
Copy link

Maybe you can set basestring as str type. I have successfully run it by changing to str

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants