Oneflow-Inc / oneflow

OneFlow is a deep learning framework designed to be user-friendly, scalable and efficient.
http://www.oneflow.org
Apache License 2.0
5.87k stars 667 forks source link

Aborted (core dumped) in oneflow.nn.functional.avg_pool1d #10506

Open x0w3n opened 5 months ago

x0w3n commented 5 months ago

Summary

flow.nn.avg_pool1d crashes when its input is an empty tensor.

Code to reproduce bug

import oneflow as flow
oneflow.nn.functional.avg_pool1d(input=oneflow.ones([]), kernel_size=1, stride=1)

image

System Information