/usr/local/lib64/python3.6/site-packages/torch/distributed/rpc/__pycache__
Edit: /usr/local/lib64/python3.6/site-packages/torch/distributed/rpc/__pycache__/options.cpython-36.pyc (6943B)
3
EgD @ s d dl mZ ddlmZ d dlZd dlmZmZm Z m
Z
e
eeej
f Zeej
dddZeeef eej
ej
f d d
dZee eej
dd
dZG dd deZdS ) ) _TensorPipeRpcBackendOptionsBase ) constantsN)DictListOptionalUnion)devicereturnc C s* t j| } | jdkr&td| j d| S )NZcudazA`set_devices` expect a list of CUDA devices, but got device type .)torchr type
ValueError)r r I/usr/local/lib64/python3.6/site-packages/torch/distributed/rpc/options.py
_to_device s
r )
device_mapr
c C sn i }i }x`| D ]X}| | }t j|t j| }}||krVtd| d|| d| |||<