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

Class OptionalTensor

tensorflow/compiler/jit/xla_launch_util.h:37–41  ·  view source on GitHub ↗

Struct that represents a possibly-absent Tensor.

Source from the content-addressed store, hash-verified

35
36// Struct that represents a possibly-absent Tensor.
37struct OptionalTensor {
38 string name; // A descriptive name
39 bool present = false; // Is the tensor present?
40 Tensor value; // If present, what is the Tensor's value?
41};
42
43// Takes a snapshot of the values of resource variable arguments, whose indices
44// are specified in `variable_indices` argument. We snapshot tensors that back

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected