MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / RecvTensorMetaData

Method RecvTensorMetaData

tensorflow/contrib/verbs/rdma.cc:1608–1616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1606}
1607
1608void RdmaTensorRequest::RecvTensorMetaData(DataType dtype, TensorShape shape,
1609 bool is_dead, size_t proto_size) {
1610 meta_data_ = RdmaMemoryMgr::Singleton().SetTensorMetaData(
1611 key_, dtype, shape, is_dead, proto_size);
1612
1613 DeallocateTensors();
1614 AllocateTensorsAsync(
1615 [this](const Status& s) { Send(RDMA_MESSAGE_TENSOR_RE_REQUEST); });
1616}
1617
1618void RdmaTensorRequest::RecvTensorContent() {
1619 bool can_memcpy = DataTypeCanUseMemcpy(meta_data_->data_type_);

Callers 1

Process_CQMethod · 0.80

Calls 2

SetTensorMetaDataMethod · 0.80
SendFunction · 0.50

Tested by

no test coverage detected