Skip to content

Commit

Permalink
fix code format
Browse files Browse the repository at this point in the history
  • Loading branch information
thunder95 committed May 14, 2022
1 parent 1e6f3e0 commit 61e514e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions python/paddle/tensor/manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4338,7 +4338,8 @@ def index_fill(x, index, axis, fill_value):

if isinstance(fill_value, Variable):
check_variable_and_dtype(
fill_value, 'fill_value', ['bool', 'float16', 'float32', 'float64', 'int32', 'int64'],
fill_value, 'fill_value',
['bool', 'float16', 'float32', 'float64', 'int32', 'int64'],
'paddle.tensor.manipulation.index_fill')

inputs["FillValue"] = fill_value
Expand All @@ -4356,10 +4357,7 @@ def index_fill(x, index, axis, fill_value):
helper = LayerHelper("index_fill", **locals())
out = helper.create_variable_for_type_inference(x.dtype)
helper.append_op(
type='index_fill',
inputs=inputs,
outputs={'Out': out},
attrs=attrs)
type='index_fill', inputs=inputs, outputs={'Out': out}, attrs=attrs)
return out


Expand Down

0 comments on commit 61e514e

Please sign in to comment.