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

Function HostTensorToLiteral

tensorflow/compiler/tf2xla/literal_util.cc:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35xla::StatusOr<xla::Literal> HostTensorToLiteral(const Tensor& host_tensor) {
36 xla::BorrowingLiteral literal;
37 TF_RETURN_IF_ERROR(HostTensorToBorrowingLiteral(host_tensor, &literal));
38 return literal.Clone();
39}
40
41Status HostTensorToMutableBorrowingLiteral(
42 Tensor* host_tensor, xla::MutableBorrowingLiteral* literal) {

Callers 1

ConstantInputReshapedMethod · 0.85

Calls 2

CloneMethod · 0.45

Tested by

no test coverage detected