Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/paddle/base/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -3645,7 +3645,7 @@ def _to_readable_code(self, skip_op_callstack=True):
and name == "compilation_key"
):
key = self.desc.attr(name)
v = core.get_serialize_comile_key(key)
v = core.get_serialize_compile_key(key)
prog = Program()
prog = prog.parse_from_string(v)
s = prog._to_readable_code()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,7 @@ def __clone_lr_op_sub_block__(op, program, lr_block):
}

if self.has_distributed_lookup_table:
attrs['checkpint_block_id'] = checkpoint_block_id
attrs['checkpoint_block_id'] = checkpoint_block_id
if self.config.enable_dc_asgd:
attrs['dc_asgd'] = True

Expand Down
2 changes: 1 addition & 1 deletion python/paddle/static/nn/static_pylayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def static_pylayer(forward_fn, inputs, backward_fn=None, name=None):
pylayer_op.update_output()
if backward_fn is not None:
if not callable(backward_fn):
raise ValueError("`bakcward_fn` should be callable")
raise ValueError("`backward_fn` should be callable")

def hook_inputs_outputs_check_function(output_grads, input_grads):
# 1. Verify the number of `Value` inputs to ``forward_fn`` the same as the
Expand Down
4 changes: 2 additions & 2 deletions python/paddle/utils/cpp_extension/cpp_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -1167,8 +1167,8 @@ def _get_cuda_arch_flags(cflags: list[str] | None = None) -> list[str]:
)
else:
_arch_list = _arch_list.replace(' ', ';')
for named_arch, archval in named_arches.items():
_arch_list = _arch_list.replace(named_arch, archval)
for named_arch, archival in named_arches.items():
_arch_list = _arch_list.replace(named_arch, archival)
arch_list = _arch_list.split(';')

flags = []
Expand Down
2 changes: 1 addition & 1 deletion test/dygraph_to_static/test_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def _init_dyfunc(self):
self.dyfunc = while_loop_dyfunc_without_tensor


class TestTransformWhileLoopWithConflicVar(TestTransformWhileLoop):
class TestTransformWhileLoopWithConflictVar(TestTransformWhileLoop):
def _init_dyfunc(self):
self.dyfunc = while_loop_dyfun_with_conflict_var

Expand Down
2 changes: 1 addition & 1 deletion test/legacy_test/test_math_op_patch_var_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def test_astype(self):
np.testing.assert_array_equal(res1.numpy(), res2.numpy())
np.testing.assert_array_equal(res1.numpy(), res3.numpy())

def test_conpare_op_broadcast(self):
def test_compare_op_broadcast(self):
a_np = np.random.uniform(-1, 1, [10, 1, 10]).astype(self.dtype)
b_np = np.random.uniform(-1, 1, [1, 1, 10]).astype(self.dtype)
with base.dygraph.guard():
Expand Down
Loading