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
4 changes: 2 additions & 2 deletions paddle/fluid/pybind/manual_static_op_function.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ PyObject *static_api_full(PyObject *self, PyObject *args, PyObject *kwargs) {
!PyObject_CheckIRVectorOfValue(shape_obj) &&
!PyObject_CheckIRValue(value_obj)) {
std::vector<int64_t> shape = CastPyArg2Longs(shape_obj, "full", 0);
float value = CastPyArg2Float(value_obj, "full", 1);
double value = CastPyArg2Double(value_obj, "full", 1);
CallStackRecorder callstack_recoder("full");
callstack_recoder.Record();
auto static_api_out = paddle::dialect::full(shape, value, dtype, place);
Expand All @@ -176,7 +176,7 @@ PyObject *static_api_full(PyObject *self, PyObject *args, PyObject *kwargs) {
if (PyObject_CheckIRValue(value_obj)) {
value = CastPyArg2Value(value_obj, "full", 1, false);
} else {
float value_tmp = CastPyArg2Float(value_obj, "full", 1);
double value_tmp = CastPyArg2Double(value_obj, "full", 1);
value = paddle::dialect::full(std::vector<int64_t>{1},
value_tmp,
phi::DataType::FLOAT32,
Expand Down
1 change: 0 additions & 1 deletion test/deprecated/legacy_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,6 @@ set_tests_properties(test_layer_norm_op_deprecated_static_build
py_test_modules(test_stride MODULES test_stride ENVS
FLAGS_use_stride_kernel=true)

set_tests_properties(test_linalg_matrix_exp PROPERTIES TIMEOUT 120)
set_pir_tests_properties()

set_tests_properties(test_apply_pass_to_program_deprecated PROPERTIES TIMEOUT
Expand Down
1 change: 1 addition & 0 deletions test/legacy_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1225,3 +1225,4 @@ set_tests_properties(test_install_check PROPERTIES LABELS "RUN_TYPE=DIST")
py_test_modules(test_install_check_pir MODULES test_install_check ENVS
FLAGS_cudnn_deterministic=1 FLAGS_enable_pir_in_executor=1)
set_tests_properties(test_install_check_pir PROPERTIES LABELS "RUN_TYPE=DIST")
set_tests_properties(test_linalg_matrix_exp PROPERTIES TIMEOUT 120)