GCNetwork icon indicating copy to clipboard operation
GCNetwork copied to clipboard

gcnetwork.py

Open HaihuaLu opened this issue 7 years ago • 1 comments

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

HaihuaLu avatar Dec 06 '17 06:12 HaihuaLu

layer is a tensor,so what is lay?

xinge456 avatar Jul 16 '19 03:07 xinge456