class_docstr: Redistributes sparse features to all devices for inference.
  
  Args:
      features_per_rank (List[int]): number of features to send to each rank.
      world_size (int): number of devices in the topology.
      fused_params (Dict[str, Any]): fused parameters of the model.
class_docstr_tok: ["Redistributes","sparse","features","to","all","devices","for","inference",".","Args",":","features_per_rank","(","List","[","int","]",")",":","number","of","features","to","send","to","each","rank",".","world_size","(","int",")",":","number","of","devices","in","the","topology",".","fused_params","(","Dict","[","str",",","Any","]",")",":","fused","parameters","of","the","model","."]
code: def __init__(
      self,
      features_per_rank: List[int],
      world_size: int,
      device: Optional[torch.device] = None,
  ) -> None:
      super().__init__()
      self._dist = KJTOneToAll(
          splits=features_per_rank,
          world_size=world_size,
          device=device,
      )
  
imports: from typing import Any, Callable, cast, Dict, List, Optional, TypeVar, Union
  import torch
  import torch.distributed
  from torchrec.distributed.dist_data import EmbeddingsAllToOne, KJTAllToAll, KJTOneToAll, PooledEmbeddingsAllToAll, VariableBatchPooledEmbeddingsAllToAll
  from torchrec.distributed.embedding_lookup import GroupedPooledEmbeddingsLookup, InferGroupedPooledEmbeddingsLookup
  from torchrec.distributed.embedding_sharding import BaseEmbeddingDist, BaseEmbeddingLookup, BaseSparseFeaturesDist, 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 1 to create a new InferTwSparseFeaturesDist object from inherited base classes: BaseSparseFeaturesDist with example: obj = InferTwSparseFeaturesDist(features_per_rank, world_size, device)