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

Function TEST_F

tensorflow/c/c_api_function_test.cc:399–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397};
398
399TEST_F(CApiFunctionTest, OneOp_ZeroInputs_OneOutput) {
400 /*
401 * constant
402 * |
403 * v
404 */
405 // Define
406 TF_Operation* c = ScalarConst(10, func_graph_, s_, "scalar10");
407 Define(-1, {}, {}, {c}, {});
408
409 // Use, run, and verify
410 TF_Operation* func_op = Use({});
411 Run({}, func_op, 10);
412 VerifyFDef({"scalar10_0"}, {}, {{"scalar10", DT_INT32}},
413 {{"scalar10_0:output:0", "scalar10"}}, {});
414}
415
416TEST_F(CApiFunctionTest, OneOp_OneInput_OneOutput) {
417 /*

Callers

nothing calls this directly

Calls 15

ScalarConstFunction · 0.85
Int32TensorFunction · 0.85
Split3Function · 0.85
TF_GetCodeFunction · 0.85
TF_MessageFunction · 0.85
TF_DeleteTensorFunction · 0.85
TF_NewWhileFunction · 0.85
LessThanFunction · 0.85
TF_FinishWhileFunction · 0.85
GetFunctionDefFunction · 0.85
AddWithCtrlDependencyFunction · 0.85
TF_NewGraphFunction · 0.85

Tested by

no test coverage detected