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

no select in keras.ops #19548

Closed
jonbarron opened this issue Apr 18, 2024 · 2 comments
Closed

no select in keras.ops #19548

jonbarron opened this issue Apr 18, 2024 · 2 comments
Assignees
Labels
stat:awaiting keras-eng Awaiting response from Keras engineer type:feature The user is asking for a new feature.

Comments

@jonbarron
Copy link

Hi all, keras.ops is missing the select() function in numpy, can you please add it? You can express it as a series of nested np.where() calls, if this is helpful:

def select(condlist, choicelist, default=0):
  result = default
  for cond, choice in zip(condlist[::-1], choicelist[::-1]):
    result = jnp.where(cond, choice, result)
  return result

though I expect this is not particularly efficient.

@fchollet
Copy link
Member

Yes, that's in scope for Keras, we can add it.

@SuryanarayanaY SuryanarayanaY added type:feature The user is asking for a new feature. stat:awaiting keras-eng Awaiting response from Keras engineer labels Apr 19, 2024
@fchollet
Copy link
Member

This is completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting keras-eng Awaiting response from Keras engineer type:feature The user is asking for a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants