-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Individual task: generalization of aliases testing #5892
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one question, why do we need to test the function again? when assigning an alias basically both names will bind to the same memory location, so for example mean_absolute_error
and mae
will bind to function 0x01
in memory, it doesn't do any copying or anything. I'd suggest just testing if alias is correctly binding to the original function and it's not misspelled or assigned to another function by mistake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well from what I see we want to make sure that the aliases from ivy frontends are providing the same results as the corresponding one from the target framework, and you're right the memory binding for both mean_absolute_error
and mae
will be the same as they're one function technically. The reason, why I think we can do the testing again, is for example in the TensorFlow frontend we can have tf.eig
and tf.linalg.eig
which I think when we implement one as alias of the other we will need to test our function against both tf.eig
and tf.linalg.eig
Thanks:)
@hirwa-nshuti I get your point on making sure the alias actually |
Anyways, I think the optimization can be done later as only few functions are affected by that double-run instances, should keep in a TODO list though, once @sherry30 gives the greenlight feel free to merge 👍🏻 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
Just a small change requested, the rest looks good to me.
Feel free to merge after this change.
Thanks
add dct frontend api Update Tensor.py Update test_tensor.py Update test_tensor.py Update Tensor.py Update test_tensor.py Update test_tensor.py numpy frontend instance max (ivy-llc#6005) Multiple additions to execute_with_gradients (ivy-llc#6006) database for cron jobs numpy frontend instance cumprod cumsum (ivy-llc#6010) * numpy frontend instance max * numpy frontend instance cumprod, cumsum numpy frontend instance sort, copy (ivy-llc#6024) numpy frontend instance nonzero, ravel (ivy-llc#6027) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel numpy instance repeat and frontend test fix (ivy-llc#6030) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix fogot to remove test_extensions.py (ivy-llc#6031) numpy instance method searchsorted (ivy-llc#6035) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix * numpy instance method searchsorted Fixed failing meta tests after update to container and gradient functions (ivy-llc#6037) norm jax jax jax JAX j jax jax mod Update test_extensions.py Added stop_gradient to detach all arrays before calculating gradients (ivy-llc#6039) numpy instance method squeeze (ivy-llc#6040) Fixed failing test for value_and_grad (ivy-llc#6041) Removed is_variable attribute from ivy arrays (ivy-llc#6043) Fixed failing test for device print_all_ivy_arrays_on_dev (ivy-llc#6044) jax_flipud (ivy-llc#5908) Co-authored-by: nassimberrada <Nassim> ivy pad backend consistency (ivy-llc#5710) add torch cosine similarity (ivy-llc#6045) add dct frontend api add dct frontend api add dct frontend api reformat reformat reformat reformat added acos torch frontend instance method Revert "added acos torch frontend instance method" This reverts commit 1006206. added arctan torch frontend instance method fixed typo Minor update to stop_gradient usage (ivy-llc#6058) random module seed argument and deterministic behaviour (ivy-llc#6059) * random module seed argument and deterministic behavior * changes * changes * changes * changes * changes vstack extension implementation (ivy-llc#6064) * vstack extension implementation * lint * lints updating vstack for container docstring examples for vstack docstring style fixes flake git linter error hstack extension (ivy-llc#6069) * hstack initial setup * examples for all docstrings * lint fixes Added Bitwise_or to the jax numpy frontends (ivy-llc#5926) Co-authored-by: Mohamad H. Danesh <mohamad4danesh@gmail.com> Update open_tasks.rst fixed step list numbering update to docs for unsupported dtypes and devices torch flipud (ivy-llc#5995) Co-authored-by: nassimberrada <Nassim> removed roadmap page from the docs, which is unused. removed roadmap section from the README. Fixed failing test for statistical einsum (ivy-llc#6073) torch_moveaxis (ivy-llc#5990) Co-authored-by: nassimberrada <Nassim> Added abs_ instance methods and absolute and absolute_ method aliases and tested (ivy-llc#5963) Co-authored-by: Intenzo21 <“casp3rmail@gmail.com”> Fix `supported_devices_and_dtypes` (ivy-llc#6081) remove hardcoded values with proper backend values. power function for jax numpy frontend Removed __len__ from container as it fails device (ivy-llc#6083) typo fix import fix for array API in extension backend (ivy-llc#6078) remove unnecessary exception from the torch decorator Redis Publically Read-Only (ivy-llc#6018) * multiplexed database * ReadOnly Mode enabled * adding in the requested changes Fixed failing test for test_function_dtype_versioning (ivy-llc#6092) Fixed failing test for stable_pow (ivy-llc#6093) fixed empty values returned in `test_frontend_method` numpy instance method add, sub, mul, matmul (ivy-llc#6099) * numpy instance method squeeze * numpy instance method add, sub, mul, matmul Raised AttributeError instead of IvyException in __getattr__ container (ivy-llc#6101) adding AttributeError to IvyError class numpy instance method and, or, xor, copy (ivy-llc#6109) * numpy instance method and, or, xor, copy * lint formatting generalization of aliases testing in frontends(ivy-llc#5892) added trunc maths function to numpy frontend (ivy-llc#6004) KBDW extension (ivy-llc#6102) Co-authored-by: nassimberrada <Nassim> Fixed dtype and device tests in general by adding gpu and tpu to invalid devices for now (ivy-llc#6116) trapezoid extension (ivy-llc#6100) * trapezoid extension * docstrings fixes Co-authored-by: nassimberrada <Nassim> small fix scatter_nd tensorflow (ivy-llc#6115) amin for torch frontend (ivy-llc#5898) Co-authored-by: @simonetgordon <simonegordon12@icloud.com> fixed scalar issue in `test_frontend_method` filter out empty elements from container __repr__ (ivy-llc#5997) * filter out empty elements from container __repr__ * resolve flake error * flake fix update to the docs for extension open task added case for scalars (ivy-llc#6126) added .idea folder to .gitignore added .idea folder to .gitignore added first draft of Related Work section to the docs. modified gitignore added simple GCC sub-section to Multi-Vendor Compiler Frameworks section of the Related Work. Update test_extensions.py Added stop_gradient to detach all arrays before calculating gradients (ivy-llc#6039) revert small fix to README.rst. revert and fixed conflict fix: import Graph Compiler different framework example (ivy-llc#6075) add additional information to data promotion chapter (ivy-llc#5960) * add additional infomration to data promotion chapter * add clarifications * fix grammar * add article conv2d test fix, conv3dtranspose create_variables frontend tensorflow Tensor.__getitem__ Update Reverted if check for container base to where it was before the container PR (ivy-llc#6131) lint Fixed failing test for general default (ivy-llc#6133) Minor fix to related work referencing (ivy-llc#6134) Fixed numpy-style-docstring failures (ivy-llc#6135) Minor changes to the helpers to enable gradient testing (ivy-llc#6137) fix TypeError: argument of type 'LazyStrategy' is not iterable (ivy-llc#6129) small fixes to docs fix out argument issue in test_frontend_function revert unnecessary change Revert "add dct frontend api" This reverts commit 2d249d0. Revert "add dct frontend api" This reverts commit 2d249d0. commit Revert "add dct frontend api" This reverts commit 2d249d0.
# This is the 1st commit message: add dct frontend api add dct frontend api Update Tensor.py Update test_tensor.py Update test_tensor.py Update Tensor.py Update test_tensor.py Update test_tensor.py numpy frontend instance max (ivy-llc#6005) Multiple additions to execute_with_gradients (ivy-llc#6006) database for cron jobs numpy frontend instance cumprod cumsum (ivy-llc#6010) * numpy frontend instance max * numpy frontend instance cumprod, cumsum numpy frontend instance sort, copy (ivy-llc#6024) numpy frontend instance nonzero, ravel (ivy-llc#6027) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel numpy instance repeat and frontend test fix (ivy-llc#6030) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix fogot to remove test_extensions.py (ivy-llc#6031) numpy instance method searchsorted (ivy-llc#6035) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix * numpy instance method searchsorted Fixed failing meta tests after update to container and gradient functions (ivy-llc#6037) norm jax jax jax JAX j jax jax mod Update test_extensions.py Added stop_gradient to detach all arrays before calculating gradients (ivy-llc#6039) numpy instance method squeeze (ivy-llc#6040) Fixed failing test for value_and_grad (ivy-llc#6041) Removed is_variable attribute from ivy arrays (ivy-llc#6043) Fixed failing test for device print_all_ivy_arrays_on_dev (ivy-llc#6044) jax_flipud (ivy-llc#5908) Co-authored-by: nassimberrada <Nassim> ivy pad backend consistency (ivy-llc#5710) add torch cosine similarity (ivy-llc#6045) add dct frontend api add dct frontend api add dct frontend api reformat reformat reformat reformat added acos torch frontend instance method Revert "added acos torch frontend instance method" This reverts commit 1006206. added arctan torch frontend instance method fixed typo Minor update to stop_gradient usage (ivy-llc#6058) random module seed argument and deterministic behaviour (ivy-llc#6059) * random module seed argument and deterministic behavior * changes * changes * changes * changes * changes vstack extension implementation (ivy-llc#6064) * vstack extension implementation * lint * lints updating vstack for container docstring examples for vstack docstring style fixes flake git linter error hstack extension (ivy-llc#6069) * hstack initial setup * examples for all docstrings * lint fixes Added Bitwise_or to the jax numpy frontends (ivy-llc#5926) Co-authored-by: Mohamad H. Danesh <mohamad4danesh@gmail.com> Update open_tasks.rst fixed step list numbering update to docs for unsupported dtypes and devices torch flipud (ivy-llc#5995) Co-authored-by: nassimberrada <Nassim> removed roadmap page from the docs, which is unused. removed roadmap section from the README. Fixed failing test for statistical einsum (ivy-llc#6073) torch_moveaxis (ivy-llc#5990) Co-authored-by: nassimberrada <Nassim> Added abs_ instance methods and absolute and absolute_ method aliases and tested (ivy-llc#5963) Co-authored-by: Intenzo21 <“casp3rmail@gmail.com”> Fix `supported_devices_and_dtypes` (ivy-llc#6081) remove hardcoded values with proper backend values. power function for jax numpy frontend Removed __len__ from container as it fails device (ivy-llc#6083) typo fix import fix for array API in extension backend (ivy-llc#6078) remove unnecessary exception from the torch decorator Redis Publically Read-Only (ivy-llc#6018) * multiplexed database * ReadOnly Mode enabled * adding in the requested changes Fixed failing test for test_function_dtype_versioning (ivy-llc#6092) Fixed failing test for stable_pow (ivy-llc#6093) fixed empty values returned in `test_frontend_method` numpy instance method add, sub, mul, matmul (ivy-llc#6099) * numpy instance method squeeze * numpy instance method add, sub, mul, matmul Raised AttributeError instead of IvyException in __getattr__ container (ivy-llc#6101) adding AttributeError to IvyError class numpy instance method and, or, xor, copy (ivy-llc#6109) * numpy instance method and, or, xor, copy * lint formatting generalization of aliases testing in frontends(ivy-llc#5892) added trunc maths function to numpy frontend (ivy-llc#6004) KBDW extension (ivy-llc#6102) Co-authored-by: nassimberrada <Nassim> Fixed dtype and device tests in general by adding gpu and tpu to invalid devices for now (ivy-llc#6116) trapezoid extension (ivy-llc#6100) * trapezoid extension * docstrings fixes Co-authored-by: nassimberrada <Nassim> small fix scatter_nd tensorflow (ivy-llc#6115) amin for torch frontend (ivy-llc#5898) Co-authored-by: @simonetgordon <simonegordon12@icloud.com> fixed scalar issue in `test_frontend_method` filter out empty elements from container __repr__ (ivy-llc#5997) * filter out empty elements from container __repr__ * resolve flake error * flake fix update to the docs for extension open task added case for scalars (ivy-llc#6126) added .idea folder to .gitignore added .idea folder to .gitignore added first draft of Related Work section to the docs. modified gitignore added simple GCC sub-section to Multi-Vendor Compiler Frameworks section of the Related Work. Update test_extensions.py Added stop_gradient to detach all arrays before calculating gradients (ivy-llc#6039) revert small fix to README.rst. revert and fixed conflict fix: import Graph Compiler different framework example (ivy-llc#6075) add additional information to data promotion chapter (ivy-llc#5960) * add additional infomration to data promotion chapter * add clarifications * fix grammar * add article conv2d test fix, conv3dtranspose create_variables frontend tensorflow Tensor.__getitem__ Update Reverted if check for container base to where it was before the container PR (ivy-llc#6131) lint Fixed failing test for general default (ivy-llc#6133) Minor fix to related work referencing (ivy-llc#6134) Fixed numpy-style-docstring failures (ivy-llc#6135) Minor changes to the helpers to enable gradient testing (ivy-llc#6137) fix TypeError: argument of type 'LazyStrategy' is not iterable (ivy-llc#6129) small fixes to docs fix out argument issue in test_frontend_function revert unnecessary change Revert "add dct frontend api" This reverts commit 2d249d0. Revert "add dct frontend api" This reverts commit 2d249d0. commit Revert "add dct frontend api" This reverts commit 2d249d0. # This is the commit message #2: Update test_tensor.py # This is the commit message ivy-llc#3: Update test_tensor.py # This is the commit message ivy-llc#4: Update Tensor.py # This is the commit message ivy-llc#5: Update test_tensor.py # This is the commit message ivy-llc#6: Update test_tensor.py
author MuokaPWambua <muokapwambua@gmail.com> 1666703252 +0300 committer MuokaPWambua <muokapwambua@gmail.com> 1666703898 +0300 parent a6def1e author MuokaPWambua <muokapwambua@gmail.com> 1666703252 +0300 committer MuokaPWambua <muokapwambua@gmail.com> 1666703730 +0300 add dct frontend api add dct frontend api Update Tensor.py Update test_tensor.py Update test_tensor.py Update Tensor.py Update test_tensor.py Update test_tensor.py numpy frontend instance max (ivy-llc#6005) Multiple additions to execute_with_gradients (ivy-llc#6006) database for cron jobs numpy frontend instance cumprod cumsum (ivy-llc#6010) * numpy frontend instance max * numpy frontend instance cumprod, cumsum numpy frontend instance sort, copy (ivy-llc#6024) numpy frontend instance nonzero, ravel (ivy-llc#6027) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel numpy instance repeat and frontend test fix (ivy-llc#6030) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix fogot to remove test_extensions.py (ivy-llc#6031) numpy instance method searchsorted (ivy-llc#6035) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix * numpy instance method searchsorted Fixed failing meta tests after update to container and gradient functions (ivy-llc#6037) norm jax jax jax JAX j jax jax mod Update test_extensions.py Added stop_gradient to detach all arrays before calculating gradients (ivy-llc#6039) numpy instance method squeeze (ivy-llc#6040) Fixed failing test for value_and_grad (ivy-llc#6041) Removed is_variable attribute from ivy arrays (ivy-llc#6043) Fixed failing test for device print_all_ivy_arrays_on_dev (ivy-llc#6044) jax_flipud (ivy-llc#5908) Co-authored-by: nassimberrada <Nassim> ivy pad backend consistency (ivy-llc#5710) add torch cosine similarity (ivy-llc#6045) add dct frontend api add dct frontend api add dct frontend api reformat reformat reformat reformat added acos torch frontend instance method Revert "added acos torch frontend instance method" This reverts commit 1006206. added arctan torch frontend instance method fixed typo Minor update to stop_gradient usage (ivy-llc#6058) random module seed argument and deterministic behaviour (ivy-llc#6059) * random module seed argument and deterministic behavior * changes * changes * changes * changes * changes vstack extension implementation (ivy-llc#6064) * vstack extension implementation * lint * lints updating vstack for container docstring examples for vstack docstring style fixes flake git linter error hstack extension (ivy-llc#6069) * hstack initial setup * examples for all docstrings * lint fixes Added Bitwise_or to the jax numpy frontends (ivy-llc#5926) Co-authored-by: Mohamad H. Danesh <mohamad4danesh@gmail.com> Update open_tasks.rst fixed step list numbering update to docs for unsupported dtypes and devices torch flipud (ivy-llc#5995) Co-authored-by: nassimberrada <Nassim> removed roadmap page from the docs, which is unused. removed roadmap section from the README. Fixed failing test for statistical einsum (ivy-llc#6073) torch_moveaxis (ivy-llc#5990) Co-authored-by: nassimberrada <Nassim> Added abs_ instance methods and absolute and absolute_ method aliases and tested (ivy-llc#5963) Co-authored-by: Intenzo21 <“casp3rmail@gmail.com”> Fix `supported_devices_and_dtypes` (ivy-llc#6081) remove hardcoded values with proper backend values. power function for jax numpy frontend Removed __len__ from container as it fails device (ivy-llc#6083) typo fix import fix for array API in extension backend (ivy-llc#6078) remove unnecessary exception from the torch decorator Redis Publically Read-Only (ivy-llc#6018) * multiplexed database * ReadOnly Mode enabled * adding in the requested changes Fixed failing test for test_function_dtype_versioning (ivy-llc#6092) Fixed failing test for stable_pow (ivy-llc#6093) fixed empty values returned in `test_frontend_method` numpy instance method add, sub, mul, matmul (ivy-llc#6099) * numpy instance method squeeze * numpy instance method add, sub, mul, matmul Raised AttributeError instead of IvyException in __getattr__ container (ivy-llc#6101) adding AttributeError to IvyError class numpy instance method and, or, xor, copy (ivy-llc#6109) * numpy instance method and, or, xor, copy * lint formatting generalization of aliases testing in frontends(ivy-llc#5892) added trunc maths function to numpy frontend (ivy-llc#6004) KBDW extension (ivy-llc#6102) Co-authored-by: nassimberrada <Nassim> Fixed dtype and device tests in general by adding gpu and tpu to invalid devices for now (ivy-llc#6116) trapezoid extension (ivy-llc#6100) * trapezoid extension * docstrings fixes Co-authored-by: nassimberrada <Nassim> small fix scatter_nd tensorflow (ivy-llc#6115) amin for torch frontend (ivy-llc#5898) Co-authored-by: @simonetgordon <simonegordon12@icloud.com> fixed scalar issue in `test_frontend_method` filter out empty elements from container __repr__ (ivy-llc#5997) * filter out empty elements from container __repr__ * resolve flake error * flake fix update to the docs for extension open task added case for scalars (ivy-llc#6126) added .idea folder to .gitignore added .idea folder to .gitignore added first draft of Related Work section to the docs. modified gitignore added simple GCC sub-section to Multi-Vendor Compiler Frameworks section of the Related Work. Update test_extensions.py Added stop_gradient to detach all arrays before calculating gradients (ivy-llc#6039) revert small fix to README.rst. revert and fixed conflict fix: import Graph Compiler different framework example (ivy-llc#6075) add additional information to data promotion chapter (ivy-llc#5960) * add additional infomration to data promotion chapter * add clarifications * fix grammar * add article conv2d test fix, conv3dtranspose create_variables frontend tensorflow Tensor.__getitem__ Update Reverted if check for container base to where it was before the container PR (ivy-llc#6131) lint Fixed failing test for general default (ivy-llc#6133) Minor fix to related work referencing (ivy-llc#6134) Fixed numpy-style-docstring failures (ivy-llc#6135) Minor changes to the helpers to enable gradient testing (ivy-llc#6137) fix TypeError: argument of type 'LazyStrategy' is not iterable (ivy-llc#6129) small fixes to docs fix out argument issue in test_frontend_function revert unnecessary change Revert "add dct frontend api" This reverts commit 2d249d0. Revert "add dct frontend api" This reverts commit 2d249d0. commit Revert "add dct frontend api" This reverts commit 2d249d0. Update test_tensor.py Update test_tensor.py Update Tensor.py Update test_tensor.py Update test_tensor.py numpy frontend instance max (ivy-llc#6005) Multiple additions to execute_with_gradients (ivy-llc#6006) database for cron jobs numpy frontend instance cumprod cumsum (ivy-llc#6010) * numpy frontend instance max * numpy frontend instance cumprod, cumsum numpy frontend instance sort, copy (ivy-llc#6024) numpy frontend instance nonzero, ravel (ivy-llc#6027) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel numpy instance repeat and frontend test fix (ivy-llc#6030) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix fogot to remove test_extensions.py (ivy-llc#6031) numpy instance method searchsorted (ivy-llc#6035) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix * numpy instance method searchsorted Fixed failing meta tests after update to container and gradient functions (ivy-llc#6037) norm jax jax jax j jax mod Update test_extensions.py Added stop_gradient to detach all arrays before calculating gradients (ivy-llc#6039) numpy instance method squeeze (ivy-llc#6040) Fixed failing test for value_and_grad (ivy-llc#6041) Removed is_variable attribute from ivy arrays (ivy-llc#6043) Fixed failing test for device print_all_ivy_arrays_on_dev (ivy-llc#6044) jax_flipud (ivy-llc#5908) Co-authored-by: nassimberrada <Nassim> ivy pad backend consistency (ivy-llc#5710) add torch cosine similarity (ivy-llc#6045) added acos torch frontend instance method Revert "added acos torch frontend instance method" This reverts commit 1006206. added arctan torch frontend instance method fixed typo Minor update to stop_gradient usage (ivy-llc#6058) random module seed argument and deterministic behaviour (ivy-llc#6059) * random module seed argument and deterministic behavior * changes * changes * changes * changes * changes vstack extension implementation (ivy-llc#6064) * vstack extension implementation * lint * lints updating vstack for container docstring examples for vstack docstring style fixes hstack extension (ivy-llc#6069) * hstack initial setup * examples for all docstrings * lint fixes Added Bitwise_or to the jax numpy frontends (ivy-llc#5926) Co-authored-by: Mohamad H. Danesh <mohamad4danesh@gmail.com> Update open_tasks.rst fixed step list numbering update to docs for unsupported dtypes and devices torch flipud (ivy-llc#5995) Co-authored-by: nassimberrada <Nassim> removed roadmap page from the docs, which is unused. removed roadmap section from the README. Fixed failing test for statistical einsum (ivy-llc#6073) torch_moveaxis (ivy-llc#5990) Co-authored-by: nassimberrada <Nassim> Added abs_ instance methods and absolute and absolute_ method aliases and tested (ivy-llc#5963) Co-authored-by: Intenzo21 <“casp3rmail@gmail.com”> Fix `supported_devices_and_dtypes` (ivy-llc#6081) remove hardcoded values with proper backend values. power function for jax numpy frontend Removed __len__ from container as it fails device (ivy-llc#6083) typo fix import fix for array API in extension backend (ivy-llc#6078) remove unnecessary exception from the torch decorator Redis Publically Read-Only (ivy-llc#6018) * multiplexed database * ReadOnly Mode enabled * adding in the requested changes Fixed failing test for test_function_dtype_versioning (ivy-llc#6092) Fixed failing test for stable_pow (ivy-llc#6093) fixed empty values returned in `test_frontend_method` numpy instance method add, sub, mul, matmul (ivy-llc#6099) * numpy instance method squeeze * numpy instance method add, sub, mul, matmul Raised AttributeError instead of IvyException in __getattr__ container (ivy-llc#6101) adding AttributeError to IvyError class numpy instance method and, or, xor, copy (ivy-llc#6109) * numpy instance method and, or, xor, copy * lint formatting generalization of aliases testing in frontends(ivy-llc#5892) added trunc maths function to numpy frontend (ivy-llc#6004) KBDW extension (ivy-llc#6102) Co-authored-by: nassimberrada <Nassim> Fixed dtype and device tests in general by adding gpu and tpu to invalid devices for now (ivy-llc#6116) trapezoid extension (ivy-llc#6100) * trapezoid extension * docstrings fixes Co-authored-by: nassimberrada <Nassim> small fix scatter_nd tensorflow (ivy-llc#6115) amin for torch frontend (ivy-llc#5898) Co-authored-by: @simonetgordon <simonegordon12@icloud.com> fixed scalar issue in `test_frontend_method` filter out empty elements from container __repr__ (ivy-llc#5997) * filter out empty elements from container __repr__ * resolve flake error * flake fix update to the docs for extension open task added case for scalars (ivy-llc#6126) added first draft of Related Work section to the docs. added simple GCC sub-section to Multi-Vendor Compiler Frameworks section of the Related Work. small fix to README.rst. Graph Compiler different framework example (ivy-llc#6075) add additional information to data promotion chapter (ivy-llc#5960) * add additional infomration to data promotion chapter * add clarifications * fix grammar * add article conv2d test fix, conv3dtranspose create_variables frontend tensorflow Tensor.__getitem__ Update Reverted if check for container base to where it was before the container PR (ivy-llc#6131) lint Fixed failing test for general default (ivy-llc#6133) Minor fix to related work referencing (ivy-llc#6134) Fixed numpy-style-docstring failures (ivy-llc#6135) Minor changes to the helpers to enable gradient testing (ivy-llc#6137) fix TypeError: argument of type 'LazyStrategy' is not iterable (ivy-llc#6129) small fixes to docs fix out argument issue in test_frontend_function revert unnecessary change small fixes to Graph Tracers section of Related Work in the docs. rebase
author MuokaPWambua <muokapwambua@gmail.com> 1666703252 +0300 committer MuokaPWambua <muokapwambua@gmail.com> 1666703898 +0300 parent a6def1e author MuokaPWambua <muokapwambua@gmail.com> 1666703252 +0300 committer MuokaPWambua <muokapwambua@gmail.com> 1666703730 +0300 add dct frontend api add dct frontend api Update Tensor.py Update test_tensor.py Update test_tensor.py Update Tensor.py Update test_tensor.py Update test_tensor.py numpy frontend instance max (ivy-llc#6005) Multiple additions to execute_with_gradients (ivy-llc#6006) database for cron jobs numpy frontend instance cumprod cumsum (ivy-llc#6010) * numpy frontend instance max * numpy frontend instance cumprod, cumsum numpy frontend instance sort, copy (ivy-llc#6024) numpy frontend instance nonzero, ravel (ivy-llc#6027) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel numpy instance repeat and frontend test fix (ivy-llc#6030) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix fogot to remove test_extensions.py (ivy-llc#6031) numpy instance method searchsorted (ivy-llc#6035) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix * numpy instance method searchsorted Fixed failing meta tests after update to container and gradient functions (ivy-llc#6037) norm jax jax jax JAX j jax jax mod Update test_extensions.py Added stop_gradient to detach all arrays before calculating gradients (ivy-llc#6039) numpy instance method squeeze (ivy-llc#6040) Fixed failing test for value_and_grad (ivy-llc#6041) Removed is_variable attribute from ivy arrays (ivy-llc#6043) Fixed failing test for device print_all_ivy_arrays_on_dev (ivy-llc#6044) jax_flipud (ivy-llc#5908) Co-authored-by: nassimberrada <Nassim> ivy pad backend consistency (ivy-llc#5710) add torch cosine similarity (ivy-llc#6045) add dct frontend api add dct frontend api add dct frontend api reformat reformat reformat reformat added acos torch frontend instance method Revert "added acos torch frontend instance method" This reverts commit 1006206. added arctan torch frontend instance method fixed typo Minor update to stop_gradient usage (ivy-llc#6058) random module seed argument and deterministic behaviour (ivy-llc#6059) * random module seed argument and deterministic behavior * changes * changes * changes * changes * changes vstack extension implementation (ivy-llc#6064) * vstack extension implementation * lint * lints updating vstack for container docstring examples for vstack docstring style fixes flake git linter error hstack extension (ivy-llc#6069) * hstack initial setup * examples for all docstrings * lint fixes Added Bitwise_or to the jax numpy frontends (ivy-llc#5926) Co-authored-by: Mohamad H. Danesh <mohamad4danesh@gmail.com> Update open_tasks.rst fixed step list numbering update to docs for unsupported dtypes and devices torch flipud (ivy-llc#5995) Co-authored-by: nassimberrada <Nassim> removed roadmap page from the docs, which is unused. removed roadmap section from the README. Fixed failing test for statistical einsum (ivy-llc#6073) torch_moveaxis (ivy-llc#5990) Co-authored-by: nassimberrada <Nassim> Added abs_ instance methods and absolute and absolute_ method aliases and tested (ivy-llc#5963) Co-authored-by: Intenzo21 <“casp3rmail@gmail.com”> Fix `supported_devices_and_dtypes` (ivy-llc#6081) remove hardcoded values with proper backend values. power function for jax numpy frontend Removed __len__ from container as it fails device (ivy-llc#6083) typo fix import fix for array API in extension backend (ivy-llc#6078) remove unnecessary exception from the torch decorator Redis Publically Read-Only (ivy-llc#6018) * multiplexed database * ReadOnly Mode enabled * adding in the requested changes Fixed failing test for test_function_dtype_versioning (ivy-llc#6092) Fixed failing test for stable_pow (ivy-llc#6093) fixed empty values returned in `test_frontend_method` numpy instance method add, sub, mul, matmul (ivy-llc#6099) * numpy instance method squeeze * numpy instance method add, sub, mul, matmul Raised AttributeError instead of IvyException in __getattr__ container (ivy-llc#6101) adding AttributeError to IvyError class numpy instance method and, or, xor, copy (ivy-llc#6109) * numpy instance method and, or, xor, copy * lint formatting generalization of aliases testing in frontends(ivy-llc#5892) added trunc maths function to numpy frontend (ivy-llc#6004) KBDW extension (ivy-llc#6102) Co-authored-by: nassimberrada <Nassim> Fixed dtype and device tests in general by adding gpu and tpu to invalid devices for now (ivy-llc#6116) trapezoid extension (ivy-llc#6100) * trapezoid extension * docstrings fixes Co-authored-by: nassimberrada <Nassim> small fix scatter_nd tensorflow (ivy-llc#6115) amin for torch frontend (ivy-llc#5898) Co-authored-by: @simonetgordon <simonegordon12@icloud.com> fixed scalar issue in `test_frontend_method` filter out empty elements from container __repr__ (ivy-llc#5997) * filter out empty elements from container __repr__ * resolve flake error * flake fix update to the docs for extension open task added case for scalars (ivy-llc#6126) added .idea folder to .gitignore added .idea folder to .gitignore added first draft of Related Work section to the docs. modified gitignore added simple GCC sub-section to Multi-Vendor Compiler Frameworks section of the Related Work. Update test_extensions.py Added stop_gradient to detach all arrays before calculating gradients (ivy-llc#6039) revert small fix to README.rst. revert and fixed conflict fix: import Graph Compiler different framework example (ivy-llc#6075) add additional information to data promotion chapter (ivy-llc#5960) * add additional infomration to data promotion chapter * add clarifications * fix grammar * add article conv2d test fix, conv3dtranspose create_variables frontend tensorflow Tensor.__getitem__ Update Reverted if check for container base to where it was before the container PR (ivy-llc#6131) lint Fixed failing test for general default (ivy-llc#6133) Minor fix to related work referencing (ivy-llc#6134) Fixed numpy-style-docstring failures (ivy-llc#6135) Minor changes to the helpers to enable gradient testing (ivy-llc#6137) fix TypeError: argument of type 'LazyStrategy' is not iterable (ivy-llc#6129) small fixes to docs fix out argument issue in test_frontend_function revert unnecessary change Revert "add dct frontend api" This reverts commit 2d249d0. Revert "add dct frontend api" This reverts commit 2d249d0. commit Revert "add dct frontend api" This reverts commit 2d249d0. Update test_tensor.py Update test_tensor.py Update Tensor.py Update test_tensor.py Update test_tensor.py numpy frontend instance max (ivy-llc#6005) Multiple additions to execute_with_gradients (ivy-llc#6006) database for cron jobs numpy frontend instance cumprod cumsum (ivy-llc#6010) * numpy frontend instance max * numpy frontend instance cumprod, cumsum numpy frontend instance sort, copy (ivy-llc#6024) numpy frontend instance nonzero, ravel (ivy-llc#6027) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel numpy instance repeat and frontend test fix (ivy-llc#6030) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix fogot to remove test_extensions.py (ivy-llc#6031) numpy instance method searchsorted (ivy-llc#6035) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix * numpy instance method searchsorted Fixed failing meta tests after update to container and gradient functions (ivy-llc#6037) norm jax jax jax j jax mod Update test_extensions.py Added stop_gradient to detach all arrays before calculating gradients (ivy-llc#6039) numpy instance method squeeze (ivy-llc#6040) Fixed failing test for value_and_grad (ivy-llc#6041) Removed is_variable attribute from ivy arrays (ivy-llc#6043) Fixed failing test for device print_all_ivy_arrays_on_dev (ivy-llc#6044) jax_flipud (ivy-llc#5908) Co-authored-by: nassimberrada <Nassim> ivy pad backend consistency (ivy-llc#5710) add torch cosine similarity (ivy-llc#6045) added acos torch frontend instance method Revert "added acos torch frontend instance method" This reverts commit 1006206. added arctan torch frontend instance method fixed typo Minor update to stop_gradient usage (ivy-llc#6058) random module seed argument and deterministic behaviour (ivy-llc#6059) * random module seed argument and deterministic behavior * changes * changes * changes * changes * changes vstack extension implementation (ivy-llc#6064) * vstack extension implementation * lint * lints updating vstack for container docstring examples for vstack docstring style fixes hstack extension (ivy-llc#6069) * hstack initial setup * examples for all docstrings * lint fixes Added Bitwise_or to the jax numpy frontends (ivy-llc#5926) Co-authored-by: Mohamad H. Danesh <mohamad4danesh@gmail.com> Update open_tasks.rst fixed step list numbering update to docs for unsupported dtypes and devices torch flipud (ivy-llc#5995) Co-authored-by: nassimberrada <Nassim> removed roadmap page from the docs, which is unused. removed roadmap section from the README. Fixed failing test for statistical einsum (ivy-llc#6073) torch_moveaxis (ivy-llc#5990) Co-authored-by: nassimberrada <Nassim> Added abs_ instance methods and absolute and absolute_ method aliases and tested (ivy-llc#5963) Co-authored-by: Intenzo21 <“casp3rmail@gmail.com”> Fix `supported_devices_and_dtypes` (ivy-llc#6081) remove hardcoded values with proper backend values. power function for jax numpy frontend Removed __len__ from container as it fails device (ivy-llc#6083) typo fix import fix for array API in extension backend (ivy-llc#6078) remove unnecessary exception from the torch decorator Redis Publically Read-Only (ivy-llc#6018) * multiplexed database * ReadOnly Mode enabled * adding in the requested changes Fixed failing test for test_function_dtype_versioning (ivy-llc#6092) Fixed failing test for stable_pow (ivy-llc#6093) fixed empty values returned in `test_frontend_method` numpy instance method add, sub, mul, matmul (ivy-llc#6099) * numpy instance method squeeze * numpy instance method add, sub, mul, matmul Raised AttributeError instead of IvyException in __getattr__ container (ivy-llc#6101) adding AttributeError to IvyError class numpy instance method and, or, xor, copy (ivy-llc#6109) * numpy instance method and, or, xor, copy * lint formatting generalization of aliases testing in frontends(ivy-llc#5892) added trunc maths function to numpy frontend (ivy-llc#6004) KBDW extension (ivy-llc#6102) Co-authored-by: nassimberrada <Nassim> Fixed dtype and device tests in general by adding gpu and tpu to invalid devices for now (ivy-llc#6116) trapezoid extension (ivy-llc#6100) * trapezoid extension * docstrings fixes Co-authored-by: nassimberrada <Nassim> small fix scatter_nd tensorflow (ivy-llc#6115) amin for torch frontend (ivy-llc#5898) Co-authored-by: @simonetgordon <simonegordon12@icloud.com> fixed scalar issue in `test_frontend_method` filter out empty elements from container __repr__ (ivy-llc#5997) * filter out empty elements from container __repr__ * resolve flake error * flake fix update to the docs for extension open task added case for scalars (ivy-llc#6126) added first draft of Related Work section to the docs. added simple GCC sub-section to Multi-Vendor Compiler Frameworks section of the Related Work. small fix to README.rst. Graph Compiler different framework example (ivy-llc#6075) add additional information to data promotion chapter (ivy-llc#5960) * add additional infomration to data promotion chapter * add clarifications * fix grammar * add article conv2d test fix, conv3dtranspose create_variables frontend tensorflow Tensor.__getitem__ Update Reverted if check for container base to where it was before the container PR (ivy-llc#6131) lint Fixed failing test for general default (ivy-llc#6133) Minor fix to related work referencing (ivy-llc#6134) Fixed numpy-style-docstring failures (ivy-llc#6135) Minor changes to the helpers to enable gradient testing (ivy-llc#6137) fix TypeError: argument of type 'LazyStrategy' is not iterable (ivy-llc#6129) small fixes to docs fix out argument issue in test_frontend_function revert unnecessary change small fixes to Graph Tracers section of Related Work in the docs. rebase
add dct frontend api Update Tensor.py Update test_tensor.py Update test_tensor.py Update Tensor.py Update test_tensor.py Update test_tensor.py numpy frontend instance max (ivy-llc#6005) Multiple additions to execute_with_gradients (ivy-llc#6006) database for cron jobs numpy frontend instance cumprod cumsum (ivy-llc#6010) * numpy frontend instance max * numpy frontend instance cumprod, cumsum numpy frontend instance sort, copy (ivy-llc#6024) numpy frontend instance nonzero, ravel (ivy-llc#6027) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel numpy instance repeat and frontend test fix (ivy-llc#6030) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix fogot to remove test_extensions.py (ivy-llc#6031) numpy instance method searchsorted (ivy-llc#6035) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix * numpy instance method searchsorted Fixed failing meta tests after update to container and gradient functions (ivy-llc#6037) norm jax jax jax JAX j jax jax mod Update test_extensions.py Added stop_gradient to detach all arrays before calculating gradients (ivy-llc#6039) numpy instance method squeeze (ivy-llc#6040) Fixed failing test for value_and_grad (ivy-llc#6041) Removed is_variable attribute from ivy arrays (ivy-llc#6043) Fixed failing test for device print_all_ivy_arrays_on_dev (ivy-llc#6044) jax_flipud (ivy-llc#5908) Co-authored-by: nassimberrada <Nassim> ivy pad backend consistency (ivy-llc#5710) add torch cosine similarity (ivy-llc#6045) add dct frontend api add dct frontend api add dct frontend api reformat reformat reformat reformat added acos torch frontend instance method Revert "added acos torch frontend instance method" This reverts commit 1006206. added arctan torch frontend instance method fixed typo Minor update to stop_gradient usage (ivy-llc#6058) random module seed argument and deterministic behaviour (ivy-llc#6059) * random module seed argument and deterministic behavior * changes * changes * changes * changes * changes vstack extension implementation (ivy-llc#6064) * vstack extension implementation * lint * lints updating vstack for container docstring examples for vstack docstring style fixes flake git linter error hstack extension (ivy-llc#6069) * hstack initial setup * examples for all docstrings * lint fixes Added Bitwise_or to the jax numpy frontends (ivy-llc#5926) Co-authored-by: Mohamad H. Danesh <mohamad4danesh@gmail.com> Update open_tasks.rst fixed step list numbering update to docs for unsupported dtypes and devices torch flipud (ivy-llc#5995) Co-authored-by: nassimberrada <Nassim> removed roadmap page from the docs, which is unused. removed roadmap section from the README. Fixed failing test for statistical einsum (ivy-llc#6073) torch_moveaxis (ivy-llc#5990) Co-authored-by: nassimberrada <Nassim> Added abs_ instance methods and absolute and absolute_ method aliases and tested (ivy-llc#5963) Co-authored-by: Intenzo21 <“casp3rmail@gmail.com”> Fix `supported_devices_and_dtypes` (ivy-llc#6081) remove hardcoded values with proper backend values. power function for jax numpy frontend Removed __len__ from container as it fails device (ivy-llc#6083) typo fix import fix for array API in extension backend (ivy-llc#6078) remove unnecessary exception from the torch decorator Redis Publically Read-Only (ivy-llc#6018) * multiplexed database * ReadOnly Mode enabled * adding in the requested changes Fixed failing test for test_function_dtype_versioning (ivy-llc#6092) Fixed failing test for stable_pow (ivy-llc#6093) fixed empty values returned in `test_frontend_method` numpy instance method add, sub, mul, matmul (ivy-llc#6099) * numpy instance method squeeze * numpy instance method add, sub, mul, matmul Raised AttributeError instead of IvyException in __getattr__ container (ivy-llc#6101) adding AttributeError to IvyError class numpy instance method and, or, xor, copy (ivy-llc#6109) * numpy instance method and, or, xor, copy * lint formatting generalization of aliases testing in frontends(ivy-llc#5892) added trunc maths function to numpy frontend (ivy-llc#6004) KBDW extension (ivy-llc#6102) Co-authored-by: nassimberrada <Nassim> Fixed dtype and device tests in general by adding gpu and tpu to invalid devices for now (ivy-llc#6116) trapezoid extension (ivy-llc#6100) * trapezoid extension * docstrings fixes Co-authored-by: nassimberrada <Nassim> small fix scatter_nd tensorflow (ivy-llc#6115) amin for torch frontend (ivy-llc#5898) Co-authored-by: @simonetgordon <simonegordon12@icloud.com> fixed scalar issue in `test_frontend_method` filter out empty elements from container __repr__ (ivy-llc#5997) * filter out empty elements from container __repr__ * resolve flake error * flake fix update to the docs for extension open task added case for scalars (ivy-llc#6126) added .idea folder to .gitignore added .idea folder to .gitignore added first draft of Related Work section to the docs. modified gitignore added simple GCC sub-section to Multi-Vendor Compiler Frameworks section of the Related Work. Update test_extensions.py Added stop_gradient to detach all arrays before calculating gradients (ivy-llc#6039) revert small fix to README.rst. revert and fixed conflict fix: import Graph Compiler different framework example (ivy-llc#6075) add additional information to data promotion chapter (ivy-llc#5960) * add additional infomration to data promotion chapter * add clarifications * fix grammar * add article conv2d test fix, conv3dtranspose create_variables frontend tensorflow Tensor.__getitem__ Update Reverted if check for container base to where it was before the container PR (ivy-llc#6131) lint Fixed failing test for general default (ivy-llc#6133) Minor fix to related work referencing (ivy-llc#6134) Fixed numpy-style-docstring failures (ivy-llc#6135) Minor changes to the helpers to enable gradient testing (ivy-llc#6137) fix TypeError: argument of type 'LazyStrategy' is not iterable (ivy-llc#6129) small fixes to docs fix out argument issue in test_frontend_function revert unnecessary change Revert "add dct frontend api" This reverts commit 2d249d0. Revert "add dct frontend api" This reverts commit 2d249d0. commit Revert "add dct frontend api" This reverts commit 2d249d0. Update test_tensor.py Update test_tensor.py Update Tensor.py Update test_tensor.py Update test_tensor.py parent a6def1e author MuokaPWambua <muokapwambua@gmail.com> 1666703252 +0300 committer MuokaPWambua <muokapwambua@gmail.com> 1666703898 +0300 parent a6def1e author MuokaPWambua <muokapwambua@gmail.com> 1666703252 +0300 committer MuokaPWambua <muokapwambua@gmail.com> 1666703730 +0300 add dct frontend api add dct frontend api Update Tensor.py Update test_tensor.py Update test_tensor.py Update Tensor.py Update test_tensor.py Update test_tensor.py numpy frontend instance max (ivy-llc#6005) Multiple additions to execute_with_gradients (ivy-llc#6006) database for cron jobs numpy frontend instance cumprod cumsum (ivy-llc#6010) * numpy frontend instance max * numpy frontend instance cumprod, cumsum numpy frontend instance sort, copy (ivy-llc#6024) numpy frontend instance nonzero, ravel (ivy-llc#6027) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel numpy instance repeat and frontend test fix (ivy-llc#6030) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix fogot to remove test_extensions.py (ivy-llc#6031) numpy instance method searchsorted (ivy-llc#6035) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix * numpy instance method searchsorted Fixed failing meta tests after update to container and gradient functions (ivy-llc#6037) norm jax jax jax JAX j jax jax mod Update test_extensions.py Added stop_gradient to detach all arrays before calculating gradients (ivy-llc#6039) numpy instance method squeeze (ivy-llc#6040) Fixed failing test for value_and_grad (ivy-llc#6041) Removed is_variable attribute from ivy arrays (ivy-llc#6043) Fixed failing test for device print_all_ivy_arrays_on_dev (ivy-llc#6044) jax_flipud (ivy-llc#5908) Co-authored-by: nassimberrada <Nassim> ivy pad backend consistency (ivy-llc#5710) add torch cosine similarity (ivy-llc#6045) add dct frontend api add dct frontend api add dct frontend api reformat reformat reformat reformat added acos torch frontend instance method Revert "added acos torch frontend instance method" This reverts commit 1006206. added arctan torch frontend instance method fixed typo Minor update to stop_gradient usage (ivy-llc#6058) random module seed argument and deterministic behaviour (ivy-llc#6059) * random module seed argument and deterministic behavior * changes * changes * changes * changes * changes vstack extension implementation (ivy-llc#6064) * vstack extension implementation * lint * lints updating vstack for container docstring examples for vstack docstring style fixes flake git linter error hstack extension (ivy-llc#6069) * hstack initial setup * examples for all docstrings * lint fixes Added Bitwise_or to the jax numpy frontends (ivy-llc#5926) Co-authored-by: Mohamad H. Danesh <mohamad4danesh@gmail.com> Update open_tasks.rst fixed step list numbering update to docs for unsupported dtypes and devices torch flipud (ivy-llc#5995) Co-authored-by: nassimberrada <Nassim> removed roadmap page from the docs, which is unused. removed roadmap section from the README. Fixed failing test for statistical einsum (ivy-llc#6073) torch_moveaxis (ivy-llc#5990) Co-authored-by: nassimberrada <Nassim> Added abs_ instance methods and absolute and absolute_ method aliases and tested (ivy-llc#5963) Co-authored-by: Intenzo21 <“casp3rmail@gmail.com”> Fix `supported_devices_and_dtypes` (ivy-llc#6081) remove hardcoded values with proper backend values. power function for jax numpy frontend Removed __len__ from container as it fails device (ivy-llc#6083) typo fix import fix for array API in extension backend (ivy-llc#6078) remove unnecessary exception from the torch decorator Redis Publically Read-Only (ivy-llc#6018) * multiplexed database * ReadOnly Mode enabled * adding in the requested changes Fixed failing test for test_function_dtype_versioning (ivy-llc#6092) Fixed failing test for stable_pow (ivy-llc#6093) fixed empty values returned in `test_frontend_method` numpy instance method add, sub, mul, matmul (ivy-llc#6099) * numpy instance method squeeze * numpy instance method add, sub, mul, matmul Raised AttributeError instead of IvyException in __getattr__ container (ivy-llc#6101) adding AttributeError to IvyError class numpy instance method and, or, xor, copy (ivy-llc#6109) * numpy instance method and, or, xor, copy * lint formatting generalization of aliases testing in frontends(ivy-llc#5892) added trunc maths function to numpy frontend (ivy-llc#6004) KBDW extension (ivy-llc#6102) Co-authored-by: nassimberrada <Nassim> Fixed dtype and device tests in general by adding gpu and tpu to invalid devices for now (ivy-llc#6116) trapezoid extension (ivy-llc#6100) * trapezoid extension * docstrings fixes Co-authored-by: nassimberrada <Nassim> small fix scatter_nd tensorflow (ivy-llc#6115) amin for torch frontend (ivy-llc#5898) Co-authored-by: @simonetgordon <simonegordon12@icloud.com> fixed scalar issue in `test_frontend_method` filter out empty elements from container __repr__ (ivy-llc#5997) * filter out empty elements from container __repr__ * resolve flake error * flake fix update to the docs for extension open task added case for scalars (ivy-llc#6126) added .idea folder to .gitignore added .idea folder to .gitignore added first draft of Related Work section to the docs. modified gitignore added simple GCC sub-section to Multi-Vendor Compiler Frameworks section of the Related Work. Update test_extensions.py Added stop_gradient to detach all arrays before calculating gradients (ivy-llc#6039) revert small fix to README.rst. revert and fixed conflict fix: import Graph Compiler different framework example (ivy-llc#6075) add additional information to data promotion chapter (ivy-llc#5960) * add additional infomration to data promotion chapter * add clarifications * fix grammar * add article conv2d test fix, conv3dtranspose create_variables frontend tensorflow Tensor.__getitem__ Update Reverted if check for container base to where it was before the container PR (ivy-llc#6131) lint Fixed failing test for general default (ivy-llc#6133) Minor fix to related work referencing (ivy-llc#6134) Fixed numpy-style-docstring failures (ivy-llc#6135) Minor changes to the helpers to enable gradient testing (ivy-llc#6137) fix TypeError: argument of type 'LazyStrategy' is not iterable (ivy-llc#6129) small fixes to docs fix out argument issue in test_frontend_function revert unnecessary change Revert "add dct frontend api" This reverts commit 2d249d0. Revert "add dct frontend api" This reverts commit 2d249d0. commit Revert "add dct frontend api" This reverts commit 2d249d0. Update test_tensor.py Update test_tensor.py Update Tensor.py Update test_tensor.py Update test_tensor.py numpy frontend instance max (ivy-llc#6005) Multiple additions to execute_with_gradients (ivy-llc#6006) database for cron jobs numpy frontend instance cumprod cumsum (ivy-llc#6010) * numpy frontend instance max * numpy frontend instance cumprod, cumsum numpy frontend instance sort, copy (ivy-llc#6024) numpy frontend instance nonzero, ravel (ivy-llc#6027) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel numpy instance repeat and frontend test fix (ivy-llc#6030) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix fogot to remove test_extensions.py (ivy-llc#6031) numpy instance method searchsorted (ivy-llc#6035) * numpy frontend instance sort, copy * numpy frontend instance nonzero, ravel * numpy instance repeat and frontend test fix * numpy instance method searchsorted Fixed failing meta tests after update to container and gradient functions (ivy-llc#6037) norm jax jax jax j jax mod Update test_extensions.py Added stop_gradient to detach all arrays before calculating gradients (ivy-llc#6039) numpy instance method squeeze (ivy-llc#6040) Fixed failing test for value_and_grad (ivy-llc#6041) Removed is_variable attribute from ivy arrays (ivy-llc#6043) Fixed failing test for device print_all_ivy_arrays_on_dev (ivy-llc#6044) jax_flipud (ivy-llc#5908) Co-authored-by: nassimberrada <Nassim> ivy pad backend consistency (ivy-llc#5710) add torch cosine similarity (ivy-llc#6045) added acos torch frontend instance method Revert "added acos torch frontend instance method" This reverts commit 1006206. added arctan torch frontend instance method fixed typo Minor update to stop_gradient usage (ivy-llc#6058) random module seed argument and deterministic behaviour (ivy-llc#6059) * random module seed argument and deterministic behavior * changes * changes * changes * changes * changes vstack extension implementation (ivy-llc#6064) * vstack extension implementation * lint * lints updating vstack for container docstring examples for vstack docstring style fixes hstack extension (ivy-llc#6069) * hstack initial setup * examples for all docstrings * lint fixes Added Bitwise_or to the jax numpy frontends (ivy-llc#5926) Co-authored-by: Mohamad H. Danesh <mohamad4danesh@gmail.com> Update open_tasks.rst fixed step list numbering update to docs for unsupported dtypes and devices torch flipud (ivy-llc#5995) Co-authored-by: nassimberrada <Nassim> removed roadmap page from the docs, which is unused. removed roadmap section from the README. Fixed failing test for statistical einsum (ivy-llc#6073) torch_moveaxis (ivy-llc#5990) Co-authored-by: nassimberrada <Nassim> Added abs_ instance methods and absolute and absolute_ method aliases and tested (ivy-llc#5963) Co-authored-by: Intenzo21 <“casp3rmail@gmail.com”> Fix `supported_devices_and_dtypes` (ivy-llc#6081) remove hardcoded values with proper backend values. power function for jax numpy frontend Removed __len__ from container as it fails device (ivy-llc#6083) typo fix import fix for array API in extension backend (ivy-llc#6078) remove unnecessary exception from the torch decorator Redis Publically Read-Only (ivy-llc#6018) * multiplexed database * ReadOnly Mode enabled * adding in the requested changes Fixed failing test for test_function_dtype_versioning (ivy-llc#6092) Fixed failing test for stable_pow (ivy-llc#6093) fixed empty values returned in `test_frontend_method` numpy instance method add, sub, mul, matmul (ivy-llc#6099) * numpy instance method squeeze * numpy instance method add, sub, mul, matmul Raised AttributeError instead of IvyException in __getattr__ container (ivy-llc#6101) adding AttributeError to IvyError class numpy instance method and, or, xor, copy (ivy-llc#6109) * numpy instance method and, or, xor, copy * lint formatting generalization of aliases testing in frontends(ivy-llc#5892) added trunc maths function to numpy frontend (ivy-llc#6004) KBDW extension (ivy-llc#6102) Co-authored-by: nassimberrada <Nassim> Fixed dtype and device tests in general by adding gpu and tpu to invalid devices for now (ivy-llc#6116) trapezoid extension (ivy-llc#6100) * trapezoid extension * docstrings fixes Co-authored-by: nassimberrada <Nassim> small fix scatter_nd tensorflow (ivy-llc#6115) amin for torch frontend (ivy-llc#5898) Co-authored-by: @simonetgordon <simonegordon12@icloud.com> fixed scalar issue in `test_frontend_method` filter out empty elements from container __repr__ (ivy-llc#5997) * filter out empty elements from container __repr__ * resolve flake error * flake fix update to the docs for extension open task added case for scalars (ivy-llc#6126) added first draft of Related Work section to the docs. added simple GCC sub-section to Multi-Vendor Compiler Frameworks section of the Related Work. small fix to README.rst. Graph Compiler different framework example (ivy-llc#6075) add additional information to data promotion chapter (ivy-llc#5960) * add additional infomration to data promotion chapter * add clarifications * fix grammar * add article conv2d test fix, conv3dtranspose create_variables frontend tensorflow Tensor.__getitem__ Update Reverted if check for container base to where it was before the container PR (ivy-llc#6131) lint Fixed failing test for general default (ivy-llc#6133) Minor fix to related work referencing (ivy-llc#6134) Fixed numpy-style-docstring failures (ivy-llc#6135) Minor changes to the helpers to enable gradient testing (ivy-llc#6137) fix TypeError: argument of type 'LazyStrategy' is not iterable (ivy-llc#6129) small fixes to docs fix out argument issue in test_frontend_function revert unnecessary change small fixes to Graph Tracers section of Related Work in the docs. rebase commit
Hello,
Generally, alias functions have the same behavior as the original functions.
To generalize their tests and to make sure that we are testing them also. I modified the
test_frontend_function
and when we are testing the original function we will test all its aliases in that frontend by providing the namespace to that alias.The tests are done the same way we test for frontend functions. I included some code lines to inner functions to avoid repetition of statements and added two main parameters to the helper function.
has_aliases
: When the function has aliases we will set it toTrue
all_aliases
: a list that holds the namespaces of all aliases to that function.Whenever we make an alias we will go and update the unit test of that original function to include the namespace of the newly introduce alias.
Thanks🙂