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

Method has_host_tensor

tensorflow/compiler/jit/xla_tensor.h:82–82  ·  view source on GitHub ↗

Return true if this XlaTensor contains a host tensor.

Source from the content-addressed store, hash-verified

80
81 // Return true if this XlaTensor contains a host tensor.
82 bool has_host_tensor() const { return host_tensor_ != nullptr; }
83 // Return the contained host tensor.
84 // REQUIRES: has_host_tensor()
85 const Tensor& host_tensor() const { return *host_tensor_; }

Callers 1

CompileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected