File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
python/paddle/fluid/layers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4938,9 +4938,9 @@ def log(x):
4938
4938
output = fluid.layers.log(x)
4939
4939
"""
4940
4940
helper = LayerHelper ('log' , ** locals ())
4941
- dtype = helper .input_dtype ()
4941
+ dtype = helper .input_dtype (input_param_name = 'x' )
4942
4942
out = helper .create_tmp_variable (dtype )
4943
- helper .append_op (type = "log" , inputs = {"X" : input }, outputs = {"Out" : out })
4943
+ helper .append_op (type = "log" , inputs = {"X" : x }, outputs = {"Out" : out })
4944
4944
return out
4945
4945
4946
4946
@@ -4967,9 +4967,9 @@ def relu(x):
4967
4967
output = fluid.layers.relu(x)
4968
4968
"""
4969
4969
helper = LayerHelper ('relu' , ** locals ())
4970
- dtype = helper .input_dtype ()
4970
+ dtype = helper .input_dtype (input_param_name = 'x' )
4971
4971
out = helper .create_tmp_variable (dtype )
4972
- helper .append_op (type = "relu" , inputs = {"X" : input }, outputs = {"Out" : out })
4972
+ helper .append_op (type = "relu" , inputs = {"X" : x }, outputs = {"Out" : out })
4973
4973
return out
4974
4974
4975
4975
You can’t perform that action at this time.
0 commit comments