keras icon indicating copy to clipboard operation
keras copied to clipboard

Would Keras support unique function?

Open cqwangding opened this issue 1 year ago • 2 comments

Jax unique: https://jax.readthedocs.io/en/latest/_autosummary/jax.numpy.unique.html TF unique: https://www.tensorflow.org/api_docs/python/tf/unique

cqwangding avatar Aug 20 '24 21:08 cqwangding

Hi @cqwangding -

Keras doesn't have unique function. As keras is high level API on the top of tensorflow,jax,numpy,torch. And this unique function is for data manipulation which can be done before keras models.

So all these keras backends(tensorflow,jax,numpy,torch) has seperate unique functions.

tensorflow: tf.unique jax: jax.numpy.unique torch: torch.unique numpy: numpy.unique

mehtamansi29 avatar Aug 21 '24 07:08 mehtamansi29

@mehtamansi29 This feature request is from AdBrain. They may use it in the model instead of the data pipeline. Not exactly sure about which model they are using though.

haifeng-jin avatar Aug 21 '24 22:08 haifeng-jin

I believe @hertschuh is working on a unique op. Though he is out for two weeks, so we can expect more action on this when he is back!

mattdangerw avatar Aug 29 '24 00:08 mattdangerw

Per offline discussion, this is no longer needed.

hertschuh avatar Sep 18 '24 00:09 hertschuh