Skip to content

ActivationLayer for tensorlayer #125

New issue

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

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

Already on GitHub? # to your account

Closed
boscotsang opened this issue Apr 16, 2017 · 2 comments
Closed

ActivationLayer for tensorlayer #125

boscotsang opened this issue Apr 16, 2017 · 2 comments

Comments

@boscotsang
Copy link
Contributor

Suppose in resnet, there is an activation function after add the shortcut. However, in tl, ElementwiseLayer doesn't have activation function. As I know, the way to add the activation function after ElementwiseLayer is to get the outputs and then use tf.add to add the two tensor. Finally use the InputLayer to convert the tf tensor to tl layer. Is there any elegant way to do that? I think activation layer which is implemented in keras, pytorch etc. is an optional choice.

@zsdonghao
Copy link
Member

hi @boscotsang ,
you can use LambdaLayer or simply apply activation function on net.outputs, see:
resnet

@boscotsang
Copy link
Contributor Author

Thanks for your help!

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

No branches or pull requests

2 participants