def remote_shards(self) -> Dict[(int, List[rpc.RRef[Shard]])]:
    '\n        Returns a Dict[int, RRef] with keys being the RPC rank and values\n        being RRefs to shards on that rank. Need to initialize the\n        RPC framework for this functionality.\n\n        Raises an exception if ShardedTensor was created with ``init_rrefs=False``\n        '
    if (not self._init_rrefs):
        raise RuntimeError('ShardedTensor created with init_rrefs=False, no RRefs to remote shards available')
    return self._remote_shards
Returns a Dict[int, RRef] with keys being the RPC rank and values
being RRefs to shards on that rank. Need to initialize the
RPC framework for this functionality.

Raises an exception if ShardedTensor was created with ``init_rrefs=False``
def remote_shards(self) -> Dict[(int, List[rpc.RRef[Shard]])]:
    '\n        Returns a Dict[int, RRef] with keys being the RPC rank and values\n        being RRefs to shards on that rank. Need to initialize the\n        RPC framework for this functionality.\n\n        Raises an exception if ShardedTensor was created with ``init_rrefs=False``\n        '
    if (not self._init_rrefs):
        raise RuntimeError('ShardedTensor created with init_rrefs=False, no RRefs to remote shards available')
    return self._remote_shards