Commit 14144cb
Ensure keras.ops.eye behavior is consistent across backends. (#21738)
* ensure eye behavior is consistent across backends
* Update keras/src/ops/numpy_test.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* simplify per pr review
* pre-commit
* fix test for torch backend + add comments
* update implementation to raise TypeError for consistency
* add case for M being the onl float
* improve naming of inner function for type check
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>1 parent c3f2e93 commit 14144cb
2 files changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7228 | 7228 | | |
7229 | 7229 | | |
7230 | 7230 | | |
| 7231 | + | |
| 7232 | + | |
| 7233 | + | |
| 7234 | + | |
| 7235 | + | |
| 7236 | + | |
| 7237 | + | |
| 7238 | + | |
| 7239 | + | |
| 7240 | + | |
| 7241 | + | |
| 7242 | + | |
| 7243 | + | |
7231 | 7244 | | |
7232 | 7245 | | |
7233 | 7246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5230 | 5230 | | |
5231 | 5231 | | |
5232 | 5232 | | |
| 5233 | + | |
| 5234 | + | |
| 5235 | + | |
| 5236 | + | |
| 5237 | + | |
| 5238 | + | |
| 5239 | + | |
| 5240 | + | |
| 5241 | + | |
| 5242 | + | |
| 5243 | + | |
| 5244 | + | |
| 5245 | + | |
5233 | 5246 | | |
5234 | 5247 | | |
5235 | 5248 | | |
| |||
0 commit comments