qiqicliff
qiqicliff
### Describe the issue: The unary ufunc np.positive and the unary + operator raise a UFuncNoLoopError when applied to a boolean NumPy array. This is inconsistent with: Python's built‑in semantics,...
## The following script lead to a segmentation fault. ``` import paddle input_data = paddle.to_tensor([36028797018963968, 36028797018963968], dtype ='complex64') result = paddle._pir_ops.fft_c2c(input_data, n=None, axis=-1, norm= 'backward', name=None) ``` ## After running:...
### bug描述 Describe the Bug 测试api paddle.tensor.renorm_时,遇到的边界值bug: ### 代码 ```python import paddle x = paddle.rand([0, 0, 0]) paddle.tensor.renorm_(x, p=2.0, axis=1, max_norm=5.0) ``` ### 运行结果 ``` -------------------------------------- C++ Traceback (most recent...
### bug描述 Describe the Bug 在调用 paddle._C_ops.accuracy操作时发生了段错误(Segmentation Fault),导致程序崩溃。这个错误发生在创建输入张量后直接调用accuracy操作,但没有正确传入必要的参数 ``` import paddle input = paddle.rand((100, 10), dtype='float32') label = paddle.randint(0, 10, (100,), dtype='int32') accuracy = paddle._C_ops.accuracy(k=1) # 这里缺少必要的输入参数 ``` 错误类型 Segmentation...
### bug描述 Describe the Bug 在调用 paddle._C_ops.adadelta_操作时发生了段错误(Segmentation Fault),导致程序崩溃。这个错误发生在提供了必要的张量后调用adadelta_操作,但调用方式不正确。 ``` import paddle param = paddle.to_tensor([0.1, 0.2, 0.3], dtype='float32') grad = paddle.to_tensor([0.01, 0.02, 0.03], dtype='float32') avg_squared_grad = paddle.to_tensor([0.001, 0.002, 0.003], dtype='float32') avg_squared_update...
### bug描述 Describe the Bug 在调用 paddle._C_ops.adagrad_操作时发生了段错误(Segmentation Fault),导致程序崩溃。这个错误发生在提供了必要的张量后调用adagrad_操作,但调用方式不正确。 ``` import paddle param = paddle.to_tensor([1.0, 2.0, 3.0], dtype='float32') grad = paddle.to_tensor([0.1, 0.2, 0.3], dtype='float32') moment = paddle.to_tensor([0.0, 0.0, 0.0], dtype='float32') learning_rate...
### bug描述 Describe the Bug 在调用 paddle.base.libpaddle.create_empty_tensors_with_op_results()函数时发生了段错误(Segmentation Fault),导致程序崩溃。这个错误发生在尝试使用op_results列表创建空张量时。 ``` import paddle op_results = [0, 0] tensors = paddle.base.libpaddle.create_empty_tensors_with_op_results() ``` 报错: -------------------------------------- C++ Traceback (most recent call last): -------------------------------------- 0 paddle::pybind::GetEmpytyTensorsWithOpResult(_object*,...
### bug描述 Describe the Bug 在调用 paddle.optimizer.optimizer.parameter()方法时发生了段错误(Segmentation Fault),导致程序崩溃。这个错误发生在尝试创建一个优化器参数时,但参数传递方式不正确。 ``` import paddle input_data = paddle.randn([32, 64]) parameter = paddle.optimizer.optimizer.parameter( name='weight', learning_rate=0.0, regularizer=None, trainable=True, do_model_average=False ) ``` -------------------------------------- C++ Traceback (most recent...
### bug描述 Describe the Bug 调用孵化接口 correlation 时把 stride2 设为 0,C++ 实现里用该值做除法或求模,导致 FPE(浮点异常)或非法指令,进程直接崩溃。Python 层未对超参做合法性校验。 import paddle x = paddle.randn((2, 3, 10, 10)) y = paddle.randn((2, 3, 10, 10)) result =...
## Summary Creating a nn.Linear layer with in_features=0 raises a ZeroDivisionError during initialization. PyTorch allows constructing such a (degenerate) layer without crashing, so this is a behavior/compatibility discrepancy between OneFlow...