def _get_activation(self, act):
if isinstance(act, str):<EOL><INDENT>if act.lower() == '<STR_LIT>':<EOL><INDENT>return GELU()<EOL><DEDENT>else:<EOL><INDENT>return gluon.nn.Activation(act)<EOL><DEDENT><DEDENT>assert isinstance(act, gluon.Block)<EOL>return act<EOL>
Get activation block based on the name.