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

Method CreateCondGraph

tensorflow/c/while_loop_test.cc:107–113  ·  view source on GitHub ↗

Create a valid conditional graph. Useful for testing unrelated errors.

Source from the content-addressed store, hash-verified

105
106 // Create a valid conditional graph. Useful for testing unrelated errors.
107 void CreateCondGraph() {
108 TF_Operation* one = ScalarConst(1, params_->cond_graph, s_);
109 TF_Operation* less_than =
110 LessThan(params_->cond_inputs[0], {one, 0}, params_->cond_graph, s_);
111 DCHECK_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
112 params_->cond_output = {less_than, 0};
113 }
114
115 string GraphDebugString() const {
116 TF_Buffer* buf = TF_NewBuffer();

Callers

nothing calls this directly

Calls 4

ScalarConstFunction · 0.85
LessThanFunction · 0.85
TF_GetCodeFunction · 0.85
TF_MessageFunction · 0.85

Tested by

no test coverage detected