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

Function ResourceOutput

tensorflow/core/framework/function_testlib.cc:385–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385FunctionDef ResourceOutput() {
386 const Tensor kTwo = test::AsScalar<float>(2);
387 return FDH::Create(
388 // Name
389 "ResourceOutput",
390 // Args
391 {"x: float", "y: resource"},
392 // Return values
393 {"y_out: resource", "two_x: float"},
394 // Attr def
395 {},
396 // Nodes
397 {
398 {{"two"}, "Const", {}, {{"value", kTwo}, {"dtype", DT_FLOAT}}},
399 {{"mul"}, "Mul", {"x", "two:output:0"}, {{"T", DT_FLOAT}}, {}},
400 },
401 {{"y_out", "y"}, {"two_x", "mul:z:0"}});
402}
403
404FunctionDef ResourceIdentity() {
405 return FDH::Create(

Callers 3

TEST_PFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 1

CreateFunction · 0.50

Tested by

no test coverage detected