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

Function TEST

tensorflow/core/ops/data_flow_ops_test.cc:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace tensorflow {
25
26TEST(DataFlowOpsTest, LookupTableFind) {
27 ShapeInferenceTestOp op("LookupTableFind");
28 INFER_OK(op, "?;?;?", "?");
29 INFER_OK(op, "[2];[];[]", "?");
30 INFER_OK(op, "[?];[1,2,3];[]", "?");
31
32 // Last input must be a scalar or vector
33 INFER_ERROR("Shape must be at most rank 1 but is rank 2", op,
34 "[?];[1,2,3];[1,2]");
35}
36
37TEST(DataFlowOpsTest, LookupTableInsert) {
38 ShapeInferenceTestOp op("LookupTableInsert");

Callers

nothing calls this directly

Calls 9

NodeDefBuilderClass · 0.85
TensorShapeClass · 0.50
AsScalarFunction · 0.50
FinalizeMethod · 0.45
AttrMethod · 0.45
InputMethod · 0.45
push_backMethod · 0.45
emplace_backMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected