Skip to content

Commit

Permalink
Add annotations to functions in stl/lightning/utilities/ema_state.py
Browse files Browse the repository at this point in the history
Summary:
Add annotations to the following functions:
- def __init__(...)
- def _get_model_state_iterator(...)

Reviewed By: kandluis

Differential Revision: D27745227

fbshipit-source-id: 60b15ce87bf7e61ed17979f34c26986491bfdb4e
  • Loading branch information
Thomas Chen authored and facebook-github-bot committed Apr 14, 2021
1 parent 0b3f25e commit 625201f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fbgemm_gpu/fbgemm_gpu/split_table_batched_embeddings_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,8 +709,6 @@ def split_embedding_weights(self) -> List[Tensor]:

@torch.jit.ignore
def get_optimizer_buffer(self, state: str) -> torch.Tensor:
# pyre-fixme[16]: `SplitTableBatchedEmbeddingBagsCodegen` has no
# attribute `named_buffers`.
for name, buffer in self.named_buffers():
if name == state:
return buffer
Expand Down

0 comments on commit 625201f

Please sign in to comment.