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

Deprecate tensor! and ndtensor! macros in favor of {Tensor, NdTensor}::from #286

Merged
merged 5 commits into from
Jul 19, 2024

Conversation

robertknight
Copy link
Owner

Replace tensor!((shape); [elements]) with nested_array.into() (if type can be inferred) or Tensor::from(nested_array). This is an effort to make the codebase more consistent by having fewer ways to create tensors from literals.

@robertknight robertknight merged commit 7ad650c into main Jul 19, 2024
2 checks passed
@robertknight robertknight deleted the prefer-tensor-from branch July 19, 2024 07:23
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.

1 participant