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 @@ -4941,9 +4941,9 @@ def log(x):
4941
4941
output = fluid.layers.log(x)
4942
4942
"""
4943
4943
helper = LayerHelper ('log' , ** locals ())
4944
- dtype = helper .input_dtype ()
4944
+ dtype = helper .input_dtype (input_param_name = 'x' )
4945
4945
out = helper .create_tmp_variable (dtype )
4946
- helper .append_op (type = "log" , inputs = {"X" : input }, outputs = {"Out" : out })
4946
+ helper .append_op (type = "log" , inputs = {"X" : x }, outputs = {"Out" : out })
4947
4947
return out
4948
4948
4949
4949
@@ -4970,9 +4970,9 @@ def relu(x):
4970
4970
output = fluid.layers.relu(x)
4971
4971
"""
4972
4972
helper = LayerHelper ('relu' , ** locals ())
4973
- dtype = helper .input_dtype ()
4973
+ dtype = helper .input_dtype (input_param_name = 'x' )
4974
4974
out = helper .create_tmp_variable (dtype )
4975
- helper .append_op (type = "relu" , inputs = {"X" : input }, outputs = {"Out" : out })
4975
+ helper .append_op (type = "relu" , inputs = {"X" : x }, outputs = {"Out" : out })
4976
4976
return out
4977
4977
4978
4978
You can’t perform that action at this time.
0 commit comments