3
$\begingroup$

I'm trying to replace all activation layers of a certain type, there must be a simpler way to do this?

iv3 = NetModel["Inception V3 Trained on ImageNet Competition Data"];
NetReplace[iv3, Ramp -> ElementwiseLayer["ELU"]]

enter image description here

$\endgroup$
4
$\begingroup$

At first glance

NetReplace[iv3, ElementwiseLayer[Ramp] -> ElementwiseLayer["ELU"]]

seems to do what you want

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.