/external/tensorflow/tensorflow/compiler/tf2xla/ |
D | resource_util_test.cc | 50 const GraphDef& graphdef, FunctionLibraryDefinition* flib_def, in AnalyzeAndVerify() argument 55 ConvertGraphDefToGraph(GraphConstructorOptions(), graphdef, graph.get())); in AnalyzeAndVerify() 110 GraphDef graphdef; in TEST() local 111 TF_EXPECT_OK(builder.ToGraphDef(&graphdef)); in TEST() 116 AnalyzeAndVerify(graphdef, &flib_def, expected); in TEST() 150 GraphDef graphdef; in TEST() local 151 TF_EXPECT_OK(builder.ToGraphDef(&graphdef)); in TEST() 156 AnalyzeAndVerify(graphdef, &flib_def, expected); in TEST() 193 GraphDef graphdef; in TEST() local 194 TF_EXPECT_OK(builder.ToGraphDef(&graphdef)); in TEST() [all …]
|
/external/tensorflow/tensorflow/compiler/jit/tests/ |
D | auto_clustering_test_helper.cc | 85 Status AssertGraphDefIsUnclustered(const GraphDef& graphdef) { in AssertGraphDefIsUnclustered() argument 89 for (const NodeDef& node : graphdef.node()) { in AssertGraphDefIsUnclustered() 112 GraphDef graphdef, absl::string_view golden_summary_file_path) { in RunAutoClusteringTestImpl() argument 128 TF_RETURN_IF_ERROR(AssertGraphDefIsUnclustered(graphdef)); in RunAutoClusteringTestImpl() 140 runner.Run(auto_clustering_pass, std::move(graphdef), &next)); in RunAutoClusteringTestImpl() 141 graphdef = std::move(next); in RunAutoClusteringTestImpl() 144 TF_ASSIGN_OR_RETURN(string clustering_summary, SummarizeClustering(graphdef)); in RunAutoClusteringTestImpl() 168 GraphDef graphdef; in RunAutoClusteringTestWithPbtxt() local 170 ReadTextProto(Env::Default(), string(pbtxt_file_path), &graphdef)); in RunAutoClusteringTestWithPbtxt() 171 return RunAutoClusteringTestImpl(std::move(graphdef), in RunAutoClusteringTestWithPbtxt() [all …]
|
D | auto_clustering_test_helper.h | 58 Status RunAutoClusteringTestImpl(GraphDef graphdef,
|
/external/tensorflow/tensorflow/compiler/mlir/tfjs/translate/ |
D | json_translate.cc | 71 auto graphdef = absl::make_unique<tensorflow::GraphDef>(); in MlirToJSONTranslateFunction() local 72 graph->ToGraphDef(graphdef.get()); in MlirToJSONTranslateFunction() 75 auto nodes = graphdef->mutable_node(); in MlirToJSONTranslateFunction() 85 *graphdef, &json_output, json_options); in MlirToJSONTranslateFunction()
|
/external/tensorflow/tensorflow/compiler/jit/ |
D | encapsulate_subgraphs_pass_test.cc | 51 GraphDef graphdef; in AddGraphDefToFunctionLibrary() local 52 TF_RETURN_IF_ERROR(graphdef_builder.ToGraphDef(&graphdef)); in AddGraphDefToFunctionLibrary() 57 TF_RETURN_IF_ERROR(ConvertGraphDefToGraph(opts, graphdef, graph.get())); in AddGraphDefToFunctionLibrary() 480 Status Encapsulate(GraphDef* graphdef, FunctionDefLibrary* library, in Encapsulate() argument 489 s = ConvertGraphDefToGraph(options, *graphdef, graph.get()); in Encapsulate() 539 graphdef->Swap(&graphdef_out); in Encapsulate() 553 Status Encapsulate(GraphDef* graphdef, FunctionDefLibrary* library) { in Encapsulate() argument 555 return Encapsulate(graphdef, library, encapsulated_functions); in Encapsulate() 584 GraphDef graphdef; in TEST() local 598 TF_EXPECT_OK(b1.ToGraphDef(&graphdef)); in TEST() [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/ |
D | func_attr.mlir | 1 … RUN: tf-mlir-translate -mlir-to-graphdef %s | tf-mlir-translate -graphdef-to-mlir | tf-mlir-trans…
|
D | preserve-entry-func-names.mlir | 1 // RUN: tf-mlir-translate -mlir-to-graphdef %s -o - | FileCheck %s 6 …// This node would be renamed to bar1 [note: if imported from TF graphdef this would not be possib…
|
D | noop.mlir | 1 // RUN: tf-mlir-translate -mlir-to-graphdef %s -o - | FileCheck %s
|
D | missing-main.mlir | 1 // RUN: not tf-mlir-translate -mlir-to-graphdef %s -o - 2>&1 | FileCheck %s
|
D | stringescape.mlir | 1 // RUN: tf-mlir-translate -mlir-to-graphdef %s -o - | FileCheck %s
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/ |
D | add.pbtxt | 1 # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-… 2 # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-… 3 # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-… 4 # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-… 5 # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-…
|
D | legacy-fed-input-without-inputs.pbtxt | 1 # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-… 2 # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-…
|
D | graph-as-function-control-ret.pbtxt | 1 # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-graph-… 2 # RUN: not tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-gr… 3 # RUN: not tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-gr…
|
D | arg-data-type.pbtxt | 1 # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-… 2 # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-…
|
D | target.pbtxt | 1 # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-contro… 2 # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-prune-… 3 # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-prune-…
|
D | graph-malformed.pbtxt | 1 # RUN: not tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -o - 2…
|
D | output-shapes-attr.pbtxt | 1 # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -o - | Fil…
|
D | string-attr.pbtxt | 1 # RUN: tf-mlir-translate -graphdef-to-splatted-mlir %s -o - | FileCheck %s
|
D | invalid-output-index.pbtxt | 1 # RUN: not tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-in…
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/ |
D | tf_mlir_translate.cc | 54 GraphDef graphdef; in GraphdefToMlirImport() local 56 tensorflow::LoadProtoFromBuffer({input.data(), input.size()}, &graphdef)); in GraphdefToMlirImport() 90 graphdef, &pruned_graph_def, terminal_nodes)); in GraphdefToMlirImport() 94 pruned_graph_def.mutable_library()->Swap(graphdef.mutable_library()); in GraphdefToMlirImport() 95 pruned_graph_def.mutable_versions()->Swap(graphdef.mutable_versions()); in GraphdefToMlirImport() 98 specs.prune_unused_nodes ? pruned_graph_def : graphdef, debug_info, specs, in GraphdefToMlirImport()
|
/external/tensorflow/tensorflow/python/ |
D | pywrap_mlir.py | 27 def import_graphdef(graphdef, pass_pipeline, show_debug_info): argument 29 str(graphdef).encode('utf-8'), pass_pipeline.encode('utf-8'),
|
D | mlir_wrapper.cc | 26 [](const std::string &graphdef, const std::string &pass_pipeline, in PYBIND11_MODULE() 31 graphdef, pass_pipeline, show_debug_info, status.get()); in PYBIND11_MODULE()
|
/external/tensorflow/tensorflow/compiler/mlir/python/ |
D | mlir.cc | 77 GraphDef graphdef; in ImportGraphDef() local 78 auto s = tensorflow::LoadProtoFromBuffer(proto, &graphdef); in ImportGraphDef() 86 auto module = ConvertGraphdefToMlir(graphdef, debug_info, specs, &context); in ImportGraphDef()
|
/external/tensorflow/tensorflow/lite/testing/ |
D | tf_driver.cc | 139 tensorflow::GraphDef graphdef; in LoadModel() local 140 if (!graphdef.ParseFromIstream(&model)) { in LoadModel() 147 auto status = session_->Create(graphdef); in LoadModel()
|
/external/tensorflow/tensorflow/python/tpu/ |
D | tensor_tracer.proto | 19 tensorflow.GraphDef graphdef = 2; field 25 // this field and graphdef).
|