8000 Add a xtensor-python macro that does xt::import_numpy · Issue #177 · xtensor-stack/xtensor-python · GitHub
[go: up one dir, main page]

Skip to content
Add a xtensor-python macro that does xt::import_numpy #177
Open
@wolfv

Description

@wolfv

We could add a macro that automatically does the following, so that users don't forget to do xt::import_numpy() which results in weird segfaults.

PYBIND11_MODULE(mymodule, m) {
    xt::import_numpy();
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0