{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":274256555,"defaultBranch":"master","name":"pytorch","ownerLogin":"brad-mengchi","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2020-06-22T22:38:07.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/17218312?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1682095671.0","currentOid":""},"activityList":{"items":[{"before":"0d2cb8de81d915dc0c716e9cb530aead279a466c","after":"2b502c3e243c628dcfdf873f388a3c1d5c7025a9","ref":"refs/heads/export-D45133827","pushedAt":"2023-04-22T17:15:29.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"brad-mengchi","name":"Mengchi Zhang","path":"/brad-mengchi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17218312?s=80&v=4"},"commit":{"message":"Allow data size equal to 0 for SegmentReduce (#99733)\n\nSummary:\nPull Request resolved: https://github.com/pytorch/pytorch/pull/99733\n\nSupport special case that data size can be 0 for SegmentReduce.\n\nExample code below:\n```\nx = torch.ones((0, 6)).cuda()\nlengths = torch.tensor([0, 0]).cuda()\ntorch.segment_reduce(x, \"sum\", lengths=lengths, unsafe=False, initial=0)\n```\nPreviously, error message: Expected data.numel() > 0 to be true, but got false.\nNow expect to return 0.\n\nTest Plan: contbuild & OSS CI\n\nReviewed By: stevenlysc\n\nDifferential Revision: D45133827\n\nfbshipit-source-id: 1537fa91b54723fb8bc9539d775be31367551f28","shortMessageHtmlLink":"Allow data size equal to 0 for SegmentReduce (pytorch#99733)"}},{"before":"30f4c1b2c9501b4d88a51a16c0b0ae19370f3c8d","after":"0d2cb8de81d915dc0c716e9cb530aead279a466c","ref":"refs/heads/export-D45133827","pushedAt":"2023-04-22T00:06:24.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"brad-mengchi","name":"Mengchi Zhang","path":"/brad-mengchi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17218312?s=80&v=4"},"commit":{"message":"Allow data size equal to 0 for SegmentReduce (#99733)\n\nSummary:\nPull Request resolved: https://github.com/pytorch/pytorch/pull/99733\n\nSupport special case that data size can be 0 for SegmentReduce.\n\nExample code below:\n```\nx = torch.ones((0, 6)).cuda()\nlengths = torch.tensor([0, 0]).cuda()\ntorch.segment_reduce(x, \"sum\", lengths=lengths, unsafe=False, initial=0)\n```\nPreviously, error message: Expected data.numel() > 0 to be true, but got false.\nNow expect to return 0.\n\nTest Plan: contbuild & OSS CI\n\nReviewed By: stevenlysc\n\nDifferential Revision: D45133827\n\nfbshipit-source-id: d3a151a6ce084a44a7e5056a936c5fac17502f28","shortMessageHtmlLink":"Allow data size equal to 0 for SegmentReduce (pytorch#99733)"}},{"before":"730cf6f7b28a89192ec556f2640a88db72841709","after":"30f4c1b2c9501b4d88a51a16c0b0ae19370f3c8d","ref":"refs/heads/export-D45133827","pushedAt":"2023-04-21T22:43:17.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"brad-mengchi","name":"Mengchi Zhang","path":"/brad-mengchi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17218312?s=80&v=4"},"commit":{"message":"Allow data size equal to 0 for SegmentReduce (#99733)\n\nSummary:\nPull Request resolved: https://github.com/pytorch/pytorch/pull/99733\n\nSupport special case that data size can be 0 for SegmentReduce.\n\nExample code below:\n```\nx = torch.ones((0, 6)).cuda()\nlengths = torch.tensor([0, 0]).cuda()\ntorch.segment_reduce(x, \"sum\", lengths=lengths, unsafe=False, initial=0)\n```\nPreviously, error message: Expected data.numel() > 0 to be true, but got false.\nNow expect to return 0.\n\nTest Plan: contbuild & OSS CI\n\nReviewed By: stevenlysc\n\nDifferential Revision: D45133827\n\nfbshipit-source-id: ab0f97ed45a4539fadfb1d4f3898e19bee558e28","shortMessageHtmlLink":"Allow data size equal to 0 for SegmentReduce (pytorch#99733)"}},{"before":null,"after":"730cf6f7b28a89192ec556f2640a88db72841709","ref":"refs/heads/export-D45133827","pushedAt":"2023-04-21T16:47:51.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"brad-mengchi","name":"Mengchi Zhang","path":"/brad-mengchi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17218312?s=80&v=4"},"commit":{"message":"Allow data size equal to 0 for SegmentReduce\n\nSummary:\nSupport special case that data size can be 0 for SegmentReduce.\n\nExample code below:\n```\nx = torch.ones((0, 6)).cuda()\nlengths = torch.tensor([0, 0]).cuda()\ntorch.segment_reduce(x, \"sum\", lengths=lengths, unsafe=False, initial=0)\n```\nPreviously, error message: Expected data.numel() > 0 to be true, but got false.\nNow expect to return 0.\n\nTest Plan: contbuild & OSS CI\n\nDifferential Revision: D45133827\n\nfbshipit-source-id: 81ceee4113b937241cea76fcef556728002bf5dc","shortMessageHtmlLink":"Allow data size equal to 0 for SegmentReduce"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAADHjA2_wA","startCursor":null,"endCursor":null}},"title":"Activity ยท brad-mengchi/pytorch"}