/usr/local/lib64/python3.6/site-packages/torch/distributed/rpc/__pycache__
Edit: /usr/local/lib64/python3.6/site-packages/torch/distributed/rpc/__pycache__/internal.cpython-36.pyc (7948B)
3
Eg4) @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dl Z d dl
jZd dl
mZ ej aejZejZG dd deZG dd dZe Zdd Zd
d Zdd
Zdd Zdd Zdd Ze jddddgZe jdddgZ dS ) N)Enum)_get_current_rpc_agentc @ s e Zd ZdZdZdZdZdS )RPCExecModesyncasyncZ async_jitremoteN)__name__
__module____qualname__ZSYNCASYNCZ ASYNC_JITZREMOTE r r J/usr/local/lib64/python3.6/site-packages/torch/distributed/rpc/internal.pyr s r c @ st e Zd ZdZdd Zdd Zedd Zdd Zed
d Z dd
Z
dd Zedd Zdd Z
dd Zdd ZdS )_InternalRPCPicklera
This class provides serialize() and deserialize() interfaces to serialize
data to be "binary string + tensor table" format
So for RPC python UDF function and args, non tensor data will be serialized
into regular binary string, tensor data will be put into thread local tensor
tables, this serialization format is consistent with builtin operator and args
using JIT pickler. This format will make tensor handling in C++ much easier,
e.g. attach tensor to distributed autograd graph in C++
c C s$ t jj | _| j| jtj<