Home
last modified time | relevance | path

Searched refs:func_def (Results 1 – 15 of 15) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/data/
Dmap_dataset_op_test.cc172 FunctionDef func_def = test::function::XTimesTwo(); in TEST_F() local
175 TF_ASSERT_OK(InitFunctionLibraryRuntime({func_def}, cpu_num)); in TEST_F()
184 range_dataset->node_name(), func_def.signature().name(), &map_kernel)); in TEST_F()
199 FunctionDef func_def = test::function::XTimesTwo(); in TEST_F() local
202 TF_ASSERT_OK(InitFunctionLibraryRuntime({func_def}, cpu_num)); in TEST_F()
211 range_dataset->node_name(), func_def.signature().name(), &map_kernel)); in TEST_F()
227 FunctionDef func_def = test::function::XTimesTwo(); in TEST_F() local
230 TF_ASSERT_OK(InitFunctionLibraryRuntime({func_def}, cpu_num)); in TEST_F()
239 range_dataset->node_name(), func_def.signature().name(), &map_kernel)); in TEST_F()
278 FunctionDef func_def = test::function::XTimesTwo(); in TEST_P() local
[all …]
/external/tensorflow/tensorflow/core/framework/
Dgraph_def_util.cc130 for (const auto& func_def : graph_def.library().function()) { in IsFunction() local
131 if (op_name == func_def.signature().name()) return true; in IsFunction()
151 FunctionDef* func_def = graph_def->mutable_library()->mutable_function(f); in RemoveNewDefaultAttrsFromGraphDef() local
152 for (int n = 0; n < func_def->node_def_size(); ++n) { in RemoveNewDefaultAttrsFromGraphDef()
153 NodeDef* node_def = func_def->mutable_node_def(n); in RemoveNewDefaultAttrsFromGraphDef()
Dfunction.cc766 string DebugString(const FunctionDef& func_def) { return Print(func_def); } in DebugString() argument
1443 const auto& func_def = flib.Find(func_name); in ReachableFunctions() local
1444 const auto attr_it = func_def->attr().find(kApiImplements); in ReachableFunctions()
1445 if (attr_it != func_def->attr().end()) { in ReachableFunctions()
Dfunction_test.cc1357 auto func_def = FDH::Create( in TEST() local
1364 auto* attr = func_def.mutable_attr(); in TEST()
1367 return func_def; in TEST()
Dfunction.h241 string DebugString(const FunctionDef& func_def);
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dfunction_api_info_test.cc53 FunctionDef* func_def) { in PopulateFunction() argument
54 OpDef* sig = func_def->mutable_signature(); in PopulateFunction()
59 auto* func_attr = func_def->mutable_attr(); in PopulateFunction()
Dmeta_optimizer.cc630 for (const FunctionDef& func_def : in Optimize() local
632 if (flib.Find(func_def.signature().name()) == nullptr) { in Optimize()
633 TF_RETURN_IF_ERROR(flib.AddFunctionDef(func_def)); in Optimize()
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Drebatch.cc215 for (const FunctionDef& func_def : in RecursivelyHandleOp() local
217 if (flib->Find(func_def.signature().name()) == nullptr) { in RecursivelyHandleOp()
218 TF_RETURN_IF_ERROR(flib->AddFunctionDef(func_def)); in RecursivelyHandleOp()
/external/sl4a/Docs/
Dgenerate_api_reference_md.py49 def __init__(self, rpc_def, func_def): argument
57 self._ParseFunctionDefinition(func_def)
/external/tensorflow/tensorflow/compiler/jit/
Dbuild_xla_ops_pass.cc281 const FunctionDef* func_def = flib_def.Find(function_name); in InferDeviceForCluster() local
282 TF_RET_CHECK(func_def) << "Could not find " << function_name; in InferDeviceForCluster()
285 for (const NodeDef& ndef : func_def->node_def()) { in InferDeviceForCluster()
/external/tensorflow/tensorflow/core/common_runtime/
Dshape_refiner.cc642 auto* func_def = function_library_->Find(op_reg_data->op_def.name()); in RunShapeFn() local
643 if (func_def) { in RunShapeFn()
644 return InferShapesForFunction(func_def, keep_nested_shape_inferences_, in RunShapeFn()
/external/tensorflow/tensorflow/c/
Dc_test_util.h120 bool GetFunctionDef(TF_Function* func, tensorflow::FunctionDef* func_def);
Dc_test_util.cc412 bool GetFunctionDef(TF_Function* func, tensorflow::FunctionDef* func_def) { in GetFunctionDef() argument
418 if (ret) ret = func_def->ParseFromArray(buffer->data, buffer->length); in GetFunctionDef()
Dc_api_experimental.cc186 const char* func_def = R"PREFIX( in CreateFakeDatasetFunction() local
253 func_def, /*mutate_proto_func*/ nullptr, status); in CreateFakeDatasetFunction()
271 const char* func_def = R"PREFIX( in CreateImagenetDatasetFunctions()
7148 return CreateFunctionsFromTextProto(func_def, &mutate_proto_func, status); in CreateImagenetDatasetFunctions()
7167 const char* func_def = R"PREFIX( in CreateMNISTDatasetFunctions()
8295 return CreateFunctionsFromTextProto(func_def, &mutate_proto_func, status); in CreateMNISTDatasetFunctions()
/external/python/mock/mock/tests/
Dtesthelpers.py408 func_def = "def foo(a, *, b=None):\n pass\n"
410 exec (func_def, namespace)