File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
python/paddle/trainer_config_helpers Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ hl_activation_mode_t hlActiveType(const std::string& type) {
378
378
return HL_ACTIVATION_RELU;
379
379
} else if (type == " tanh" ) {
380
380
return HL_ACTIVATION_TANH;
381
- } else if (type == " linear" ) {
381
+ } else if (type == " linear" || type == " " ) {
382
382
return HL_ACTIVATION_LINEAR;
383
383
} else {
384
384
LOG (FATAL) << " Do not support activation type " << type;
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ class IdentityActivation(BaseActivation):
104
104
Just do nothing for output both forward/backward.
105
105
"""
106
106
107
- def __init__ (self ): BaseActivation .__init__ (self , 'linear ' , False )
107
+ def __init__ (self ): BaseActivation .__init__ (self , '' , False )
108
108
109
109
110
110
LinearActivation = IdentityActivation
You can’t perform that action at this time.
0 commit comments