Closed EnayatUllah closed 7 months ago
This pull request was exported from Phabricator. Differential Revision: D53733081
This pull request was exported from Phabricator. Differential Revision: D53733081
This pull request was exported from Phabricator. Differential Revision: D53733081
This pull request was exported from Phabricator. Differential Revision: D53733081
This pull request was exported from Phabricator. Differential Revision: D53733081
This pull request has been merged in pytorch/opacus@ac639af72dd374fc938b53ba4877204a38c13171.
Summary: In case of an empty batch, in the
clip_and_accumulate
function, theper_sample_clip_factor
variable is set to a tensor of size 0. However, the device was not specified, which throws a runtime error. Added it.Differential Revision: D53733081