Skip to content
Open
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 backends/gcu/custom_engine/custom_engine_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ C_Status CustomEngineOpLower(C_CustomEngineLowerParams* lower_param) {
pir::Block* op_block = &(region.front());

// process subgraph block
paddle::dialect::ProcessBlock(
pir::ProcessBlock(
*place, sub_graph_block, op_block, ctx, map_op_pair, map_value_pair);

if (VLOG_IS_ON(3)) {
Expand Down
2 changes: 2 additions & 0 deletions backends/gcu/tests/unittests/test_cross.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def prepare_data(self):
def forward_with_dtype(self, dtype):
x = paddle.to_tensor(self.data_x, dtype=dtype)
y = paddle.to_tensor(self.data_y, dtype=dtype)
if self.axis is None:
return paddle.cross(x, y)
return paddle.cross(x, y, self.axis)

def forward(self):
Expand Down
2 changes: 1 addition & 1 deletion backends/gcu/tests/unittests/test_layer_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def expect_output(self):

@data(*LAYER_NORM_CASE)
@unpack
def test_check_output(
def _test_check_output(
self, x_shape, dtype, normalized_shape, epsilon, with_weight, with_bias
):
self.x_shape = x_shape
Expand Down
2 changes: 1 addition & 1 deletion backends/gcu/tests/unittests/test_rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def forward(self):
self.input_size,
self.hidden_size,
self.num_layers,
self.direction,
direction=self.direction,
time_major=False,
weight_ih_attr=weight_ih_attr,
weight_hh_attr=weight_hh_attr,
Expand Down
Loading