ivy icon indicating copy to clipboard operation
ivy copied to clipboard

Implemented Shuffle and Uniform for Tensorflow Frontend (Random)

Open Auxia opened this issue 2 years ago • 4 comments

Auxia avatar Aug 19 '22 17:08 Auxia

Hi @saeedashrraf. Can you please review this PR? The tensorflow frontend test throws an error for test_tensorflow_uniform that I am not able to produce locally. Any advice for that?

Auxia avatar Aug 22 '22 14:08 Auxia

Hey @Auxia , the error is being thrown because some of the tests generate the value None for the argument shape and tensorflow's implementation of the function does not support that. In addition to that, the argument dtype for tensorflow's implementation of the function is required to have the same dtype of minval and maxval. Keep in mind that dtype defaults to float32 and that might cause issues as well.

saeedashrraf avatar Aug 23 '22 22:08 saeedashrraf

This PR is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Aug 31 '22 02:08 github-actions[bot]

Hi @saeedashrraf, the tests are passing now for both shuffle and uniform. Can you please do a review and see if there is something I might have missed.

Auxia avatar Sep 08 '22 14:09 Auxia

Hi @saeedashrraf, I am having an issue with test_uniform where it passes bfloat16 dtype to the function (which is not supported by the numpy backend). I tried to add this to the unsupported_dtypes dict, yet it still passes bfloat16. Is there a way I can either remove it from passing the said dtype entirely or atleast make it skip it for the numpy backend specifically.

Auxia avatar Sep 14 '22 15:09 Auxia

I have been unable to fix the issues with uniform function but I want to get remove this branch from the main ivy repo. So I ahve removed uniform for now so that we can get this merged instead and delete this branch ASAP.

Auxia avatar Sep 22 '22 01:09 Auxia

This PR has been labelled as stale because it has been inactive for more than 7 days. If you would like to continue working on this PR, then please add another comment or this PR will be closed in 7 days.

ivy-seed avatar Oct 13 '22 16:10 ivy-seed

This PR has been closed because it has been marked as stale for more than 7 days with no activity.

ivy-seed avatar Oct 20 '22 06:10 ivy-seed