def get(self,keys: Union[str, List[str]],tensors: Union[torch.Tensor, List[torch.Tensor], List[List[torch.Tensor]]],**kwargs) -> List[bool]
Function
Reads the tensor data of one key or a group of keys. Generally, the tensor data can be filled in the given tensors (as the output buffer) in place.
Prototype
def get(self,keys: Union[str, List[str]],tensors: Union[torch.Tensor, List[torch.Tensor], List[List[torch.Tensor]]],**kwargs ) -> List[bool]:
Parameters
Parameter |
Type |
Description |
|---|---|---|
keys |
Union[str, List[str]] |
|
tensors |
Union[Tensor, List[Tensor], List[List[Tensor]]] |
|
**kwargs |
- |
|
Return Value
List[bool]: indicates the current keys fetched from the pooling backend and the boolean values indicating success/failure for the corresponding tensors filled in place. Each boolean value corresponds to the result of each key. If keys is of the str type, the return value is still of List[bool] type and the length is 1.
Parent topic: class MemPool