You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A crash is triggered when the padding parameter is a specific negative number, where flow.nn.ConstantPad1d triggers a Aborted (core dumped), flow.nn.ConstantPad1d triggers Segmentation fault (core dumped).
Code to reproduce bug
Aborted (core dumped)
input_tensor = flow.tensor([[1, 2, 3, 4]], dtype=flow.float32)
padding = -100 # This is invalid padding size
m = flow.nn.ConstantPad1d(padding=padding)
output = m(input_tensor)
Segmentation fault (core dumped)
input_tensor = flow.tensor([[1, 2, 3, 4]], dtype=flow.float32)
padding = -100 # This is invalid padding size
m = flow.nn.ConstantPad2d(padding=padding)
output = m(input_tensor)
System Information
What is your OneFlow installation (pip, source, dockerhub): pip
OS: Ubuntu 22.04.3 LTS
OneFlow version (run python3 -m oneflow --doctor):
Summary
A crash is triggered when the padding parameter is a specific negative number, where flow.nn.ConstantPad1d triggers a Aborted (core dumped), flow.nn.ConstantPad1d triggers Segmentation fault (core dumped).
Code to reproduce bug
Aborted (core dumped)
Segmentation fault (core dumped)
System Information
python3 -m oneflow --doctor
):The text was updated successfully, but these errors were encountered: