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

Adding 2 new operators: #369

Merged
merged 1 commit into from
Feb 2, 2023
Merged

Adding 2 new operators: #369

merged 1 commit into from
Feb 2, 2023

Conversation

luitjens
Copy link
Collaborator

@luitjens luitjens commented Feb 2, 2023

  1. sign(x) this returns -1 if negative, 0 if 0, and 1 if positive. 2) index(dim) this returns the index of the tensor in the provided dim.

  2. required some infastructure changes to support a rankless and sizeless operator. I added a sentinal maxNoRank to signal this.

1)  sign(x)  this returns -1 if negative, 0 if 0, and 1 if positive.
2)  index(dim) this returns the index of the tensor in the provided dim.

2) required some infastructure changes to support a rankless and
sizeless operator.  I added a sentinal maxNoRank to signal this.
@luitjens luitjens merged commit e50650d into main Feb 2, 2023
@luitjens luitjens deleted the new-ops branch March 9, 2023 20:17
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