Skip to content

dlpack causes sigsev #24095

Closed
Closed
@justinchuby

Description

@justinchuby

This causes sigsev.

import onnxruntime as ort
from onnxruntime.capi import _pybind_state as _ort_c
import torch

value = torch.tensor([1.0, 2.0])
ort_value = ort.OrtValue(_ort_c.OrtValue.from_dlpack(value, False), value)

Our dlpack version in onnxruntime is very old and needs to be updated to support all types. We should remove the "is_bool_tensor" argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiissues related to all other APIs: C, C++, Python, etc.pythonPull requests that update Python code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions