Repository navigation
Conversation
💊 CI failures summary and remediationsAs of commit 91d13eb (more details on the Dr. CI page): ✅ None of the CI failures appear to be your fault 💚
🚧 1 ongoing upstream failure:These were probably caused by upstream breakages that are not fixed yet.
This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. This comment has been revised 8 times. |
Codecov Report
@@ Coverage Diff @@
## master #48801 +/- ##
==========================================
+ Coverage 80.77% 80.79% +0.02%
==========================================
Files 1867 1865 -2
Lines 201583 201099 -484
==========================================
- Hits 162819 162470 -349
+ Misses 38764 38629 -135 |
|
Are there any index_put and index_select tests for bfloat16? Index_put is just advanced indexing I think. |
|
@ngimel @dtypes(torch.float, torch.bfloat16, torch.long, torch.bool)
@dtypesIfCPU(torch.float, torch.long, torch.bool, torch.bfloat16)
@dtypesIfCUDA(torch.half, torch.long, torch.bool)
def test_index_put_src_datatype(self, device, dtype):
src = torch.ones(3, 2, 4, device=device, dtype=dtype)
vals = torch.ones(3, 2, 4, device=device, dtype=dtype)
indices = (torch.tensor([0, 2, 1]),)
res = src.index_put_(indices, vals, accumulate=True)
self.assertEqual(res.shape, src.shape)
@dtypes(torch.float, torch.bfloat16, torch.long, torch.bool)
@dtypesIfCPU(torch.float, torch.long, torch.bfloat16, torch.bool)
@dtypesIfCUDA(torch.half, torch.long, torch.bfloat16, torch.bool)
def test_index_src_datatype(self, device, dtype):
src = torch.ones(3, 2, 4, device=device, dtype=dtype)
# test index
res = src[[0, 2, 1], :, :]
self.assertEqual(res.shape, src.shape)
# test index_put, no accum
src[[0, 2, 1], :, :] = res
self.assertEqual(res.shape, src.shape)I don't know why some dtypes are tested, some are not. But I have added it to the list in 0c723ad. |
facebook-github-bot
left a comment
There was a problem hiding this comment.
@ngimel has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: Dependency: pytorch#48809 pytorch#48807 pytorch#48806 pytorch#48805 pytorch#48801 pytorch#44994 pytorch#44848 Pull Request resolved: pytorch#48810 Reviewed By: mruberry Differential Revision: D25772955 Pulled By: ngimel fbshipit-source-id: 353f130eb701f8b338a826d2edaea69e6e644ee9
Fixes #{issue number}