oneflow
oneflow copied to clipboard
Segmentation fault (core dumped) in `flow.eye+ diag`
Summary
When calling flow.eye(n) + diag, the dimension or shape of diag does not match the matrix returned by flow.eye(n), causing a shape inconsistency and resulting in a segmentation fault and a core dump.
Code to reproduce bug
import oneflow as flow
diag = [1.0, 2.0, 3.0]
tensor = flow.eye(3) + diag
output:
Segmentation fault (core dumped)
System Information
- What is your OneFlow installation (pip, source, dockerhub): pip
- OS: Ubuntu 22.04.5 LTS
- OneFlow version (run
python3 -m oneflow --doctor): path: ['/root/anaconda3/envs/oneflow1.0.0/lib/python3.10/site-packages/oneflow'] version: 0.9.0 git_commit: https://github.com/Oneflow-Inc/oneflow/commit/381b12cb083a1cf0ad2376dae047f058f26ad284 cmake_build_type: Release rdma: True mlir: True - Python version: 3.10.0
- CUDA driver version: 12.2
- GPU models: NVIDIA GeForce RTX 4090
- Other info: None
hi, any idea on how to get started on fixing these?
i'm new to open source, but enjoy C++ coding and found this repo quite interesting.
would a good start to be running some of these examples with memcheck and nsys and see if I can fix any of the issues?
thank you.