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

gcnetwork.py #18

Open
HaihuaLu opened this issue Dec 6, 2017 · 1 comment
Open

gcnetwork.py #18

HaihuaLu opened this issue Dec 6, 2017 · 1 comment

Comments

@HaihuaLu
Copy link

HaihuaLu commented Dec 6, 2017

def createFeature(input, layers):
res = layers0
tensor = res
for layer in layers[1:]:
if isinstance(layer, Add):
tensor = layer([tensor, res])
res = tensor
else:
tensor = layer(tensor)
return tensor

Why doesn't this need to be modified like this? Sorry, I am a new novice and I hope to get your reply.

def createFeature(input, layers):
res = layers0
tensor = res
for layer in layers[1:]:
for lay in layer:
if isinstance(lay, Add):
tensor = lay([tensor, res])
res = tensor
else:
tensor = lay(tensor)
return tensor

@xinge456
Copy link

layer is a tensor,so what is lay?

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