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

Method ClearVal

tensorflow/core/common_runtime/entry.h:106–111  ·  view source on GitHub ↗

Clears the field, and sets this entry to the `NO_VALUE` state.

Source from the content-addressed store, hash-verified

104
105 // Clears the <val> field, and sets this entry to the `NO_VALUE` state.
106 void ClearVal() {
107 if (state == State::HAS_VALUE) {
108 val.Destroy();
109 }
110 state = State::NO_VALUE;
111 }
112
113 union {
114 // A tensor value. Valid iff `state_ == HAS_VALUE`.

Callers 2

ProcessAsyncMethod · 0.80
BatchProcessMethod · 0.80

Calls 1

DestroyMethod · 0.45

Tested by

no test coverage detected