Merge pull request #7160 from reyoung/feature/expose_activations
Expose some activationscross_channel_norm
commit
cd5fad13ce
@ -1,9 +1,24 @@
|
|||||||
from ..registry import register_layer
|
from ..registry import register_layer
|
||||||
__all__ = [
|
|
||||||
'mean', 'mul', 'dropout', 'reshape', 'sigmoid', 'scale', 'transpose',
|
__activations__ = [
|
||||||
'sigmoid_cross_entropy_with_logits', 'elementwise_add', 'elementwise_div',
|
'abs', 'tanh', 'sigmoid', 'relu', 'sqrt', 'ceil', 'floor', 'log', 'round'
|
||||||
'elementwise_sub', 'elementwise_mul', 'clip', 'abs', 'sequence_softmax'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
'mean',
|
||||||
|
'mul',
|
||||||
|
'dropout',
|
||||||
|
'reshape',
|
||||||
|
'scale',
|
||||||
|
'transpose',
|
||||||
|
'sigmoid_cross_entropy_with_logits',
|
||||||
|
'elementwise_add',
|
||||||
|
'elementwise_div',
|
||||||
|
'elementwise_sub',
|
||||||
|
'elementwise_mul',
|
||||||
|
'clip',
|
||||||
|
'sequence_softmax',
|
||||||
|
] + __activations__
|
||||||
|
|
||||||
for _OP in set(__all__):
|
for _OP in set(__all__):
|
||||||
globals()[_OP] = register_layer(_OP)
|
globals()[_OP] = register_layer(_OP)
|
||||||
|
Loading…
Reference in new issue