You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RDMA transport should support variable sized tensor #10699
Note there is no mechanism to shrink the buffer size, so in the end, the buffer is as large as the largest tensor seen so far. If the large tensor tensor is rare, we probably should shrink the buffer to save the memory usage. But maybe this is not an issue in most cases.
@junshi15 Both L738 and L759 should be removed. The common usage pattern is still unknown, so don't know what is the best policy. Maybe we can remove the checks and first document this potential memory wastage as a warning?
Activity
llhe commentedon Jun 15, 2017
@junshi15 @anfeng Any comments?
junshi15 commentedon Jun 15, 2017
Current design only allows string tensors to change size, when a larger string tensor is requested, the buffer size increases. To allow other tensor to increase size (smaller tensors are fine), we need to remove this check https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/verbs/rdma.cc#L738.
Note there is no mechanism to shrink the buffer size, so in the end, the buffer is as large as the largest tensor seen so far. If the large tensor tensor is rare, we probably should shrink the buffer to save the memory usage. But maybe this is not an issue in most cases.
llhe commentedon Jun 16, 2017
@junshi15 Both L738 and L759 should be removed. The common usage pattern is still unknown, so don't know what is the best policy. Maybe we can remove the checks and first document this potential memory wastage as a warning?
junshi15 commentedon Jun 18, 2017
yes, both changes are needed. I am fine with changing "assert" to "LOG(WARNING)".