Home
last modified time | relevance | path

Searched refs:IsFunctionStateful (Results 1 – 7 of 7) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dfunction_utils_test.cc796 TEST(FunctionUtilsTest, IsFunctionStateful) { in TEST() argument
807 EXPECT_FALSE(IsFunctionStateful(lib_def, *function)); in TEST()
822 EXPECT_FALSE(IsFunctionStateful(cond_lib, *no_op_fnc)); in TEST()
823 EXPECT_FALSE(IsFunctionStateful(cond_lib, *no_op_fnc, true)); in TEST()
827 EXPECT_TRUE(IsFunctionStateful(cond_lib, *assert_func)); in TEST()
828 EXPECT_FALSE(IsFunctionStateful(cond_lib, *assert_func, true)); in TEST()
845 EXPECT_TRUE(IsFunctionStateful(cond_lib, *cond_func)); in TEST()
846 EXPECT_FALSE(IsFunctionStateful(cond_lib, *cond_func, true)); in TEST()
858 EXPECT_FALSE(IsFunctionStateful(while_lib, *while_function)); in TEST()
859 EXPECT_FALSE(IsFunctionStateful(while_lib, *while_function, true)); in TEST()
Dfunction_utils.cc183 bool IsFunctionStateful(const FunctionLibraryDefinition& library, in IsFunctionStateful() function
212 !IsFunctionStateful(library, *then_func, skip_assert)) && in IsNodeStateful()
214 !IsFunctionStateful(library, *else_func, skip_assert))) { in IsNodeStateful()
225 !IsFunctionStateful(library, *cond_func, skip_assert)) && in IsNodeStateful()
227 !IsFunctionStateful(library, *body_func, skip_assert))) { in IsNodeStateful()
Dfunction_utils.h113 bool IsFunctionStateful(const FunctionLibraryDefinition& library,
Dmap_parallelization.cc89 if (function_utils::IsFunctionStateful(function_library, *function, true)) in OptimizeAndCollectStats()
Dnoop_elimination.cc116 if (function_utils::IsFunctionStateful(function_library, *fdef)) return false; in IsMapIdentity()
Dmap_vectorization.cc521 if (function_utils::IsFunctionStateful(function_library, *map_fn)) { in FindMapAndBatchPattern()
/external/tensorflow/tensorflow/core/kernels/data/
Dcaptured_function.cc241 Status IsFunctionStateful(const FunctionLibraryDefinition& library, in IsFunctionStateful() function
421 TF_RETURN_IF_ERROR(IsFunctionStateful(library, *then_func)); in IsNodeStateful()
424 TF_RETURN_IF_ERROR(IsFunctionStateful(library, *else_func)); in IsNodeStateful()
435 TF_RETURN_IF_ERROR(IsFunctionStateful(library, *cond_func)); in IsNodeStateful()
438 TF_RETURN_IF_ERROR(IsFunctionStateful(library, *body_func)); in IsNodeStateful()
722 IsFunctionStateful(*lib_def(), *(lib_def()->Find(name)))); in CheckExternalState()