Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add test to assign chunked array to chunked array#130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
davidbrochart wants to merge1 commit intoxtensor-stack:master
base:master
Choose a base branch
Loading
fromdavidbrochart:test_chunked_assign

Conversation

@davidbrochart
Copy link
Member

No description provided.

@davidbrochart
Copy link
MemberAuthor

Looks like we can't assign anxarray to a chunked file array.

@davidbrochart
Copy link
MemberAuthor

OK so this is because:

// not correct:auto a = xt::arange(4 *4).reshape({4,4});// correct:auto a = xt::arange(4 *4);a.reshape({4,4});

This is a different behavior than NumPy, where you do:

a=np.arange(4*4).reshape(4,4)

@davidbrochart
Copy link
MemberAuthor

/usr/share/miniconda/envs/xtensor-io/include/xtensor/xnoalias.hpp:165:32: error: invalid initialization of non-const reference of type 'xt::xchunked_array<xt::xchunk_store_manager<xt::xfile_array_container<xt::xarray_container<xt::uvector<double, std::allocator<double> >, xt::layout_type::row_major, xt::svector<long unsigned int, 4, std::allocator<long unsigned int>, true>, xt::xtensor_expression_tag>, xt::xio_disk_handler<xt::xio_binary_config> >, xt::xindex_path>, xt::empty_extension>&' from an rvalue of type 'void'  165 |         return m_array.assign(e);      |

@JohanMabille
Copy link
Member

The root cause is thatnoalias does not work withchunked_array. This has to be fixed inxtensor.

davidbrochart reacted with thumbs up emoji

@JohanMabille
Copy link
Member

xtensor-stack/xtensor#2256 should fix it.

davidbrochart reacted with thumbs up emoji

@davidbrochart
Copy link
MemberAuthor

xtensor-stack/xtensor#2256 should fix it.

It fixes it. I'll remove the dependency on master in this PR when we get an xtensor release.

@JohanMabille
Copy link
Member

Let's fix it after the release.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@davidbrochart@JohanMabille

[8]ページ先頭

©2009-2025 Movatter.jp