Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use from_blob based transfer to NEML2 #29071

Draft
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

dschwen
Copy link
Member

@dschwen dschwen commented Nov 13, 2024

Refs #27553

{
return NEML2Utils::toNEML2<T>(_mat_prop[_qp]);
input.base_index_put_(_neml2_variable, neml2::Tensor(torch::from_blob(const_cast<double *>(_buffer.data()), {_buffer.size() / _item_size,_item_size}), 1));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to permit an arbitrary number of tensor dimensions.

@dschwen dschwen force-pushed the batched_neml2 branch 2 times, most recently from 4512c95 to 939ddbe Compare November 14, 2024 00:30
@moosebuild
Copy link
Contributor

Job Precheck, step Clang format on 939ddbe wanted to post the following:

Your code requires style changes.

A patch was auto generated and copied here
You can directly apply the patch by running, in the top level of your repository:

curl -s https://mooseframework.inl.gov/docs/PRs/29071/clang_format/style.patch | git apply -v

Alternatively, with your repository up to date and in the top level of your repository:

git clang-format 7377410027ba9dbf48902235a0437fdf96485e29

@moosebuild
Copy link
Contributor

Job Documentation, step Docs: sync website on e10278f wanted to post the following:

View the site here

This comment will be updated on new commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants