Skip to content

RDMA transport should support variable sized tensor #10699

Closed

Activity

  1. added
    stat:community support
    on Jun 14, 2017
  2. llhe commented on Jun 15, 2017

    @llhe
    ContributorAuthor

    @junshi15 @anfeng Any comments?

  3. junshi15 commented on Jun 15, 2017

    @junshi15
    Contributor

    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.

  4. llhe commented on Jun 16, 2017

    @llhe
    ContributorAuthor

    @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?

  5. junshi15 commented on Jun 18, 2017

    @junshi15
    Contributor

    yes, both changes are needed. I am fine with changing "assert" to "LOG(WARNING)".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stat:community support

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions