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

Method SetHostToDeviceMetadata

tensorflow/compiler/tf2xla/xla_compiler.cc:1391–1401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1389}
1390
1391Status XlaCompiler::SetHostToDeviceMetadata(
1392 const string& key, absl::Span<const DataType> types,
1393 absl::Span<const TensorShape> shapes) {
1394 if (host_compute_recvs_.find(key) != host_compute_sends_.end()) {
1395 return errors::InvalidArgument(
1396 "Duplicate calls to SetHostToDeviceMetadata with key ", key);
1397 }
1398 tf2xla::HostTransferMetadata& transfer = host_compute_recvs_[key];
1399 SetTransfer(key, types, shapes, &transfer);
1400 return Status::OK();
1401}
1402
1403Status XlaCompiler::GetHostComputeControlDependency(
1404 const string& host_compute_name, xla::XlaOp* handle) {

Callers

nothing calls this directly

Calls 4

InvalidArgumentFunction · 0.85
SetTransferFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected