Skip to content

Commit

Permalink
test pyre syntax
Browse files Browse the repository at this point in the history
Differential Revision: D56491510
  • Loading branch information
henrylhtsang authored and facebook-github-bot committed Apr 23, 2024
1 parent 0f3954f commit f77a151
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions torchrec/distributed/tests/test_embedding_sharding.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@

class TestGetWeightedAverageCacheLoadFactor(unittest.TestCase):
def test_get_avg_cache_load_factor_hbm(self) -> None:
from typing import *

x: Optional[int | str] = None


cache_load_factors = [random.random() for _ in range(5)]
embedding_tables: List[ShardedEmbeddingTable] = [
ShardedEmbeddingTable(
Expand Down

0 comments on commit f77a151

Please sign in to comment.