class_docstr: Redistributes pooled embedding tensor in RW fashion with an AlltoOne operation.
  
  Args:
      device (torch.device): device on which the tensors will be communicated to.
      world_size (int): number of devices in the topology.
docstr: Performs AlltoOne operation on sequence embeddings tensor.
  
  Args:
      local_embs (torch.Tensor): tensor of values to distribute.
  
  Returns:
      Awaitable[torch.Tensor]: awaitable of sequence embeddings.
docstr_tok: ["Performs","AlltoOne","operation","on","sequence","embeddings","tensor",".","Args",":","local_embs","(","torch.Tensor",")",":","tensor","of","values","to","distribute",".","Returns",":","Awaitable","[","torch.Tensor","]",":","awaitable","of","sequence","embeddings","."]
code: def forward(
      self,
      local_embs: List[torch.Tensor],
      sharding_ctx: Optional[NullShardingContext] = None,
  ) -> torch.Tensor:
      """
      Performs AlltoOne operation on sequence embeddings tensor.
  
      Args:
          local_embs (torch.Tensor): tensor of values to distribute.
  
      Returns:
          Awaitable[torch.Tensor]: awaitable of sequence embeddings.
      """
  
      return self._dist(local_embs)
  
imports: import math
  from typing import Any, cast, Dict, List, Optional, Tuple, TypeVar, Union
  import torch
  import torch.distributed
  from torchrec.distributed.dist_data import EmbeddingsAllToOneReduce, KJTAllToAll, KJTOneToAll, PooledEmbeddingsReduceScatter, VariableBatchPooledEmbeddingsReduceScatter
  from torchrec.distributed.embedding_lookup import GroupedPooledEmbeddingsLookup, InferGroupedPooledEmbeddingsLookup
  from torchrec.distributed.embedding_sharding import BaseEmbeddingDist, BaseEmbeddingLookup, BaseSparseFeaturesDist, bucketize_kjt_before_all2all, EmbeddingSharding, EmbeddingShardingContext, EmbeddingShardingInfo, group_tables
  from torchrec.distributed.embedding_types import BaseGroupedFeatureProcessor, EmbeddingComputeKernel, GroupedEmbeddingConfig, KJTList, ShardedEmbeddingTable
  from torchrec.distributed.types import Awaitable, CommOp, NullShardingContext, QuantizedCommCodecs, ShardedTensorMetadata, ShardingEnv, ShardMetadata
  from torchrec.sparse.jagged_tensor import KeyedJaggedTensor
  from torchrec.streamable import Multistreamable
label_desc: Use image node_id 2 for calling the InferRwPooledEmbeddingDist obj's underlying member method code with example usage: obj.forward(local_embs, sharding_ctx) and returns: self