Home
last modified time | relevance | path

Searched refs:gdef (Results 1 – 25 of 72) sorted by relevance

123

/external/tensorflow/tensorflow/core/grappler/utils/
Dcolocation_test.cc49 GraphDef gdef = test::function::GDef({ndef}); in TEST() local
51 EXPECT_EQ(1, gdef.node_size()); in TEST()
52 EXPECT_EQ(1, gdef.node(0).attr_size()); in TEST()
54 ReassignColocation(&gdef); in TEST()
57 EXPECT_EQ(1, gdef.node_size()); in TEST()
58 EXPECT_EQ(0, gdef.node(0).attr_size()); in TEST()
90 GraphDef gdef = in TEST() local
93 EXPECT_EQ(5, gdef.node_size()); in TEST()
94 EXPECT_TRUE(VerifyNodeHasColocation(gdef.node(0), "loc:@X")); // A in TEST()
95 EXPECT_TRUE(VerifyNodeHasColocation(gdef.node(1), "loc:@X")); // B in TEST()
[all …]
/external/tensorflow/tensorflow/core/ops/
Darray_grad_test.cc39 auto gdef = test::function::GDef( in PackGrad() local
49 VLOG(1) << DebugStringWhole(gdef); in PackGrad()
51 TF_CHECK_OK(sess->Create(gdef)); in PackGrad()
80 auto gdef = test::function::GDef( in UnpackGrad() local
90 VLOG(1) << DebugStringWhole(gdef); in UnpackGrad()
92 TF_CHECK_OK(sess->Create(gdef)); in UnpackGrad()
120 auto gdef = test::function::GDef( in ConcatGrad() local
129 VLOG(1) << DebugStringWhole(gdef); in ConcatGrad()
131 TF_CHECK_OK(sess->Create(gdef)); in ConcatGrad()
144 auto gdef = test::function::GDef( in ConcatGradV2() local
[all …]
/external/freetype/src/otvalid/
Dotvmod.c78 FT_Byte* volatile gdef; in otv_validate() local
89 base = gdef = gpos = gsub = jstf = math = NULL; in otv_validate()
115 error = otv_load_table( face, TTAG_GDEF, &gdef, &len_gdef ); in otv_validate()
180 if ( gdef ) in otv_validate()
182 ft_validator_init( &valid, gdef, gdef + len_gdef, FT_VALIDATE_DEFAULT ); in otv_validate()
184 otv_GDEF_validate( gdef, gsub, gpos, num_glyphs, &valid ); in otv_validate()
211 *ot_gdef = (FT_Bytes)gdef; in otv_validate()
223 FT_FREE( gdef ); in otv_validate()
/external/tensorflow/tensorflow/core/graph/
Dgraph_partition.cc195 GraphDef* gdef, const Edge* edge, in AddSend() argument
230 NodeDef* cast = gdef->add_node(); in AddSend()
247 NodeDef* send = gdef->add_node(); in AddSend()
253 GraphDef* gdef, const Edge* edge, NodeDef** real_recv, in AddRecv() argument
304 NodeDef* recv = gdef->add_node(); in AddRecv()
317 NodeDef* cast = gdef->add_node(); in AddRecv()
327 NodeDef* id = gdef->add_node(); in AddRecv()
336 NodeDef* AddDummyConst(const PartitionOptions& opts, GraphDef* gdef, in AddDummyConst() argument
340 NodeDef* result = gdef->add_node(); in AddDummyConst()
350 NodeDef* AddControlTrigger(const PartitionOptions& opts, GraphDef* gdef, in AddControlTrigger() argument
[all …]
Dgraph_partition_test.cc49 const GraphDef* gdef, std::vector<std::pair<const NodeDef*, int64>>* nodes,
114 const GraphDef& gdef = kv.second; in CheckLoopConstruction() local
119 for (const NodeDef& ndef : gdef.node()) { in CheckLoopConstruction()
400 const GraphDef& gdef = kv.second; in TEST_F() local
401 for (const NodeDef& ndef : gdef.node()) { in TEST_F()
490 GraphDef gdef; in TEST_F() local
508 &gdef)); in TEST_F()
509 gdef.mutable_versions()->set_producer(TF_GRAPH_DEF_VERSION); in TEST_F()
510 Partition(gdef, &partitions_); in TEST_F()
514 const GraphDef& gdef = kv.second; in TEST_F() local
[all …]
Dgraph_constructor.h57 const GraphDef& gdef, Graph* g);
59 GraphDef&& gdef, Graph* g);
192 const GraphDef& gdef, Graph* g,
Dgraph_constructor.cc1454 const GraphDef& gdef, Graph* g) { in ConvertGraphDefToGraph() argument
1455 ShapeRefiner refiner(gdef.versions().producer(), g->op_registry()); in ConvertGraphDefToGraph()
1457 opts, gdef.node(), &gdef.versions(), &gdef.library(), g, &refiner, in ConvertGraphDefToGraph()
1463 GraphDef&& gdef, Graph* g) { in ConvertGraphDefToGraph() argument
1464 ShapeRefiner refiner(gdef.versions().producer(), g->op_registry()); in ConvertGraphDefToGraph()
1465 return GraphConstructor::Construct(opts, std::move(gdef), g, &refiner, in ConvertGraphDefToGraph()
1486 Status ImportGraphDef(const ImportGraphDefOptions& opts, const GraphDef& gdef, in ImportGraphDef() argument
1518 ShapeRefiner default_refiner(gdef.versions().producer(), g->op_registry()); in ImportGraphDef()
1525 if (gdef.versions().producer() > 0 && in ImportGraphDef()
1526 gdef.versions().producer() < refiner->graph_def_version() && in ImportGraphDef()
[all …]
Dquantize_training_test.cc397 GraphDef gdef; in TEST_F() local
398 g->ToGraphDef(&gdef); in TEST_F()
399 TF_ASSERT_OK(sess->Create(gdef)); in TEST_F()
491 GraphDef gdef; in TEST_F() local
492 g->ToGraphDef(&gdef); in TEST_F()
493 TF_ASSERT_OK(sess->Create(gdef)); in TEST_F()
Doptimizer_cse_test.cc333 GraphDef gdef; in TEST_F() local
334 test::graph::ToGraphDef(&g, &gdef); in TEST_F()
335 InitGraph(gdef.DebugString()); in TEST_F()
/external/harfbuzz_ng/src/
Dmain.cc188 const GDEF &gdef = *CastP<GDEF> (font_data + table.offset); in main() local
191 gdef.has_glyph_classes () ? "" : "no "); in main()
193 gdef.has_mark_attachment_types () ? "" : "no "); in main()
195 gdef.has_attach_points () ? "" : "no "); in main()
197 gdef.has_lig_carets () ? "" : "no "); in main()
199 gdef.has_mark_sets () ? "" : "no "); in main()
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_session_test.cc636 GraphDef gdef; in TEST() local
666 test::graph::ToGraphDef(&g, &gdef); in TEST()
671 TF_CHECK_OK(session->Create(gdef)); in TEST()
693 GraphDef gdef; in TEST() local
723 g.ToGraphDef(&gdef); in TEST()
728 TF_CHECK_OK(session->Create(gdef)); in TEST()
752 GraphDef gdef; in TEST() local
785 test::graph::ToGraphDef(&g, &gdef); in TEST()
790 TF_CHECK_OK(session->Create(gdef)); in TEST()
811 GraphDef gdef; in TEST() local
[all …]
/external/fonttools/Lib/fontTools/varLib/
Dmutator.py289 gdef = varfont['GDEF'].table
290 instancer = VarStoreInstancer(gdef.VarStore, fvar.axes, loc)
296 del gdef.VarStore
297 gdef.Version = 0x00010002
298 if gdef.MarkGlyphSetsDef is None:
299 del gdef.MarkGlyphSetsDef
300 gdef.Version = 0x00010000
302 if not (gdef.LigCaretList or
303 gdef.MarkAttachClassDef or
304 gdef.GlyphClassDef or
[all …]
Dinstancer.py453 gdef = varfont["GDEF"].table
454 varStore = gdef.VarStore
475 gdef.remap_device_varidxes(varIndexMapping)
480 del gdef.VarStore
481 gdef.Version = 0x00010002
482 if gdef.MarkGlyphSetsDef is None:
483 del gdef.MarkGlyphSetsDef
484 gdef.Version = 0x00010000
487 gdef.LigCaretList
488 or gdef.MarkAttachClassDef
[all …]
/external/tensorflow/tensorflow/python/framework/
Dproto_test.py37 gdef = a.op.graph.as_graph_def()
38 serialized = gdef.SerializeToString()
43 self.assertProtoEquals(unserialized, gdef)
Dimporter_test.py959 gdef = g.as_graph_def()
962 pack, = importer.import_graph_def(gdef, return_elements=["pack"])
975 gdef = g.as_graph_def()
979 gdef, return_elements=["a", "b", "c"])
987 gdef, return_elements=["a", "b", "c"])
995 gdef, return_elements=["a", "b", "c"])
1003 gdef, return_elements=["a", "b", "c"])
1016 gdef = g.as_graph_def()
1028 importer.import_graph_def(gdef)
1043 gdef = g.as_graph_def()
[all …]
/external/fonttools/Tests/varLib/
Dinstancer_test.py721 gdef = vf["GDEF"].table
722 assert gdef.Version == 0x00010003
723 assert gdef.VarStore
724 assert gdef.LigCaretList
725 caretValue = gdef.LigCaretList.LigGlyph[0].CaretValue[0]
752 gdef = vf["GDEF"].table
753 assert gdef.Version == 0x00010000
754 assert not hasattr(gdef, "VarStore")
755 assert gdef.LigCaretList
756 caretValue = gdef.LigCaretList.LigGlyph[0].CaretValue[0]
[all …]
/external/libffi/
Dtexinfo.tex118 \ifx\putwordAppendix\undefined \gdef\putwordAppendix{Appendix}\fi
119 \ifx\putwordChapter\undefined \gdef\putwordChapter{Chapter}\fi
120 \ifx\putworderror\undefined \gdef\putworderror{error}\fi
121 \ifx\putwordfile\undefined \gdef\putwordfile{file}\fi
122 \ifx\putwordin\undefined \gdef\putwordin{in}\fi
123 \ifx\putwordIndexIsEmpty\undefined \gdef\putwordIndexIsEmpty{(Index is empty)}\fi
124 \ifx\putwordIndexNonexistent\undefined \gdef\putwordIndexNonexistent{(Index is nonexistent)}\fi
125 \ifx\putwordInfo\undefined \gdef\putwordInfo{Info}\fi
126 \ifx\putwordInstanceVariableof\undefined \gdef\putwordInstanceVariableof{Instance Variable of}\fi
127 \ifx\putwordMethodon\undefined \gdef\putwordMethodon{Method on}\fi
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/
Dtexinfo.tex118 \ifx\putwordAppendix\undefined \gdef\putwordAppendix{Appendix}\fi
119 \ifx\putwordChapter\undefined \gdef\putwordChapter{Chapter}\fi
120 \ifx\putworderror\undefined \gdef\putworderror{error}\fi
121 \ifx\putwordfile\undefined \gdef\putwordfile{file}\fi
122 \ifx\putwordin\undefined \gdef\putwordin{in}\fi
123 \ifx\putwordIndexIsEmpty\undefined \gdef\putwordIndexIsEmpty{(Index is empty)}\fi
124 \ifx\putwordIndexNonexistent\undefined \gdef\putwordIndexNonexistent{(Index is nonexistent)}\fi
125 \ifx\putwordInfo\undefined \gdef\putwordInfo{Info}\fi
126 \ifx\putwordInstanceVariableof\undefined \gdef\putwordInstanceVariableof{Instance Variable of}\fi
127 \ifx\putwordMethodon\undefined \gdef\putwordMethodon{Method on}\fi
[all …]
/external/tensorflow/tensorflow/core/util/
Ddump_graph_test.cc38 GraphDef gdef; in TEST() local
40 Env::Default(), io::JoinPath(testing::TmpDir(), "graph.pbtxt"), &gdef)); in TEST()
42 gdef.AppendToString(&read); in TEST()
/external/tensorflow/tensorflow/core/common_runtime/
Dgraph_execution_state.cc181 GraphDef gdef; in Extend() local
185 *gdef.mutable_library() = flib_def_->ToProto(); in Extend()
198 *gdef.add_node() = node; in Extend()
208 int old_node_size = gdef.node_size(); in Extend()
209 gdef.mutable_node()->MergeFrom(extension_def.node()); in Extend()
211 AddDefaultAttrsToGraphDef(&gdef, *flib_def_, old_node_size)); in Extend()
213 if (gdef.has_versions()) { in Extend()
214 if (gdef.versions().producer() != extension_def.versions().producer()) { in Extend()
216 "Can't extend GraphDef at version ", gdef.versions().producer(), in Extend()
219 VersionDef* versions = gdef.mutable_versions(); in Extend()
[all …]
/external/tensorflow/tensorflow/core/distributed_runtime/
Dcluster_function_library_runtime.cc39 const FunctionLibraryDefinition& flib_def, GraphDef* gdef, in ConstructFunctionGraph() argument
165 g.ToGraphDef(gdef); in ConstructFunctionGraph()
169 *(gdef->mutable_library()) = flib_def.ReachableDefinitions(*gdef).ToProto(); in ConstructFunctionGraph()
202 GraphDef gdef; in Instantiate() local
209 &gdef, send_keys, recv_keys)); in Instantiate()
226 *req->mutable_graph_def() = std::move(gdef); in Instantiate()
Dgraph_mgr.cc92 static Status ValidateGraphDefForDevices(const GraphDef& gdef) { in ValidateGraphDefForDevices() argument
94 for (const auto& ndef : gdef.node()) { in ValidateGraphDefForDevices()
125 const string& handle, const GraphDef& gdef, WorkerSession* session, in InitItem() argument
132 new FunctionLibraryDefinition(OpRegistry::Global(), gdef.library())); in InitItem()
134 TF_RETURN_IF_ERROR(ValidateGraphDefForDevices(gdef)); in InitItem()
141 gdef.versions().producer(), item->lib_def.get(), in InitItem()
151 TF_RETURN_IF_ERROR(ConvertGraphDefToGraph(opts, gdef, &graph)); in InitItem()
290 const string& handle, const GraphDef& gdef, WorkerSession* session, in Register() argument
295 Status s = InitItem(handle, gdef, session, graph_options, debug_options, in Register()
Dgraph_mgr.h77 Status Register(const string& handle, const GraphDef& gdef,
181 Status InitItem(const string& handle, const GraphDef& gdef,
/external/tensorflow/tensorflow/compiler/jit/
Dencapsulate_xla_computations_pass.cc188 GraphDef gdef; in RewriteSubgraph() local
189 graph->ToGraphDef(&gdef); in RewriteSubgraph()
195 SortControlInputs(&gdef); in RewriteSubgraph()
200 const size_t size = gdef.ByteSizeLong(); in RewriteSubgraph()
202 TF_RET_CHECK(SerializeToBufferDeterministic(gdef, serialized.get(), size)); in RewriteSubgraph()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dfunctionalize_control_flow_test.cc153 TF_EXPECT_GRAPH_EQ(expected, result.gdef); in TEST()
178 TF_EXPECT_GRAPH_EQ(expected, result.gdef); in TEST()
296 TF_EXPECT_GRAPH_EQ(expected, result.gdef); in TEST()
318 TF_EXPECT_GRAPH_EQ(expected, result.gdef); in TEST()
456 TF_EXPECT_GRAPH_EQ(expected, result.gdef); in TEST()
563 TF_EXPECT_GRAPH_EQ(expected, result.gdef); in TEST()
585 TF_EXPECT_GRAPH_EQ(expected, result.gdef); in TEST()
721 TF_EXPECT_GRAPH_EQ(expected, result.gdef); in TEST()
756 TF_EXPECT_GRAPH_EQ(expected, result.gdef); in TEST()
969 TF_EXPECT_GRAPH_EQ(expected, result.gdef); in TEST()
[all …]

123