Home
last modified time | relevance | path

Searched defs:graph (Results 1 – 25 of 507) sorted by relevance

12345678910>>...21

/external/tensorflow/tensorflow/python/profiler/internal/
Dflops_registry.py46 def _zero_flops(graph, node): argument
64 def _unary_op_flops(graph, node, ops_per_element=1): argument
72 def _reciprocal_flops(graph, node): argument
78 def _square_flops(graph, node): argument
84 def _rsqrt_flops(graph, node): argument
91 def _log_flops(graph, node): argument
97 def _neg_flops(graph, node): argument
103 def _assign_sub_flops(graph, node): argument
109 def _assign_add_flops(graph, node): argument
115 def _l2_loss_flops(graph, node): argument
[all …]
/external/tensorflow/tensorflow/python/training/
Dtraining_util.py73 def get_global_step(graph=None): argument
108 def create_global_step(graph=None): argument
149 def get_or_create_global_step(graph=None): argument
190 def _get_global_step_read(graph=None): argument
214 def _get_or_create_global_step_read(graph=None): argument
244 def _increment_global_step(increment, graph=None): argument
/external/tensorflow/tensorflow/core/grappler/
Dmutable_graph_view_test.cc36 void CompareNodeFanins(const MutableGraphView& graph, NodeDef* node, in CompareNodeFanins()
56 void CompareNodeFanouts(const MutableGraphView& graph, NodeDef* node, in CompareNodeFanouts()
69 void CheckNode(const MutableGraphView& graph, absl::string_view node_name, in CheckNode()
152 MutableGraphView graph(&graph_def); in TEST() local
174 MutableGraphView graph(&graph_def); in TEST() local
187 MutableGraphView graph(&graph_def); in TEST() local
200 MutableGraphView graph(&graph_def); in TEST() local
221 MutableGraphView graph(&graph_def); in TEST() local
249 MutableGraphView graph(&graph_def); in TEST() local
271 MutableGraphView graph(&graph_def); in TEST() local
[all …]
/external/skqp/tests/
DTopoSortTest.cpp23 static void create_graph0(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph0()
41 static void create_graph1(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph1()
54 static void create_graph2(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph2()
73 static void create_graph3(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph3()
94 static void create_graph4(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph4()
123 SkTArray<sk_sp<sk_tool_utils::TopoTestNode>> graph; in DEF_TEST() local
/external/skia/tests/
DTopoSortTest.cpp23 static void create_graph0(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph0()
41 static void create_graph1(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph1()
54 static void create_graph2(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph2()
73 static void create_graph3(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph3()
94 static void create_graph4(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph4()
123 SkTArray<sk_sp<sk_tool_utils::TopoTestNode>> graph; in DEF_TEST() local
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dgraph_utils.cc44 std::vector<int> CreateNameIndex(const GraphDef& graph) { in CreateNameIndex()
72 MutableGraphView* graph) { in AddScalarConstNodeHelper()
92 NodeDef* AddScalarPlaceholder(DataType dtype, MutableGraphView* graph) { in AddScalarPlaceholder()
105 MutableGraphView* graph) { in AddNode()
123 NodeDef* AddScalarConstNode(bool v, MutableGraphView* graph) { in AddScalarConstNode()
129 NodeDef* AddScalarConstNode(double v, MutableGraphView* graph) { in AddScalarConstNode()
135 NodeDef* AddScalarConstNode(float v, MutableGraphView* graph) { in AddScalarConstNode()
141 NodeDef* AddScalarConstNode(int v, MutableGraphView* graph) { in AddScalarConstNode()
147 NodeDef* AddScalarConstNode(int64 v, MutableGraphView* graph) { in AddScalarConstNode()
153 NodeDef* AddScalarConstNode(StringPiece v, MutableGraphView* graph) { in AddScalarConstNode()
[all …]
Dgraph_utils_test.cc42 MutableGraphView graph(&graph_def); in TEST() local
50 MutableGraphView graph(&graph_def); in TEST() local
58 MutableGraphView graph(&graph_def); in TEST() local
66 MutableGraphView graph(&graph_def); in TEST() local
74 MutableGraphView graph(&graph_def); in TEST() local
82 MutableGraphView graph(&graph_def); in TEST() local
106 MutableGraphView graph(&graph_def); in TEST() local
128 MutableGraphView graph(&graph_def); in TEST() local
140 MutableGraphView graph(&graph_def); in TEST() local
162 MutableGraphView graph(&graph_def); in TEST() local
[all …]
Dnoop_elimination.cc34 bool IsTakeAll(const NodeDef& take_node, const MutableGraphView& graph) { in IsTakeAll()
48 bool IsSkipNone(const NodeDef& skip_node, const MutableGraphView& graph) { in IsSkipNone()
54 bool IsRepeatOne(const NodeDef& repeat_node, const MutableGraphView& graph) { in IsRepeatOne()
61 const MutableGraphView& graph) { in IsPrefetchZero()
67 bool IsNoOp(const NodeDef& node, const MutableGraphView& graph) { in IsNoOp()
79 MutableGraphView graph(output); in OptimizeAndCollectStats() local
Dnoop_elimination_test.cc39 MutableGraphView *graph) { in MakeUnaryNode()
47 MutableGraphView *graph) { in MakeUnaryNonConstNode()
54 NodeDef *MakeCacheNode(string input_node, MutableGraphView *graph) { in MakeCacheNode()
62 NodeDef *MakeRangeNode(MutableGraphView *graph) { in MakeRangeNode()
81 MutableGraphView graph(&item.graph); in TEST_P() local
121 MutableGraphView graph(&item.graph); in TEST_P() local
171 MutableGraphView graph(&item.graph); in TEST_P() local
228 MutableGraphView graph(&item.graph); in TEST_P() local
Drebatch.cc99 MutableGraphView* graph) { in AddCastNode()
113 MutableGraphView* graph) { in AddBinaryNode()
125 MutableGraphView* graph) { in AddFloatDivNode()
141 MutableGraphView* graph) { in MutateBatchSize()
188 MutableGraphView* graph) { in RecursivelyHandleOp()
247 MutableGraphView graph(output); in OptimizeGraph() local
266 MutableGraphView graph(output); in OptimizeAndCollectStats() local
/external/tensorflow/tensorflow/core/grappler/graph_analyzer/
Dtest_tools.cc151 GraphDef& graph = graph_3n_self_control_; in TestGraphs() local
160 GraphDef& graph = graph_multi_input_; in TestGraphs() local
179 GraphDef& graph = graph_all_or_none_; in TestGraphs() local
205 GraphDef& graph = graph_circular_onedir_; in TestGraphs() local
213 GraphDef& graph = graph_circular_bidir_; in TestGraphs() local
222 GraphDef& graph = graph_linear_; in TestGraphs() local
230 GraphDef& graph = graph_cross_; in TestGraphs() local
246 GraphDef& graph = graph_small_cross_; in TestGraphs() local
258 GraphDef& graph = graph_for_link_order_; in TestGraphs() local
279 GraphDef& graph = graph_sun_; in TestGraphs() local
/external/tensorflow/tensorflow/c/
Dpython_api.cc23 void AddControlInput(TF_Graph* graph, TF_Operation* op, TF_Operation* input) { in AddControlInput()
29 void SetAttr(TF_Graph* graph, TF_Operation* op, const char* attr_name, in SetAttr()
44 void ClearAttr(TF_Graph* graph, TF_Operation* op, const char* attr_name, in ClearAttr()
53 void SetRequestedDevice(TF_Graph* graph, TF_Operation* op, const char* device) { in SetRequestedDevice()
59 void UpdateEdge(TF_Graph* graph, TF_Output new_src, TF_Input dst, in UpdateEdge()
100 void RemoveAllControlInputs(TF_Graph* graph, TF_Operation* op) { in RemoveAllControlInputs()
112 void SetRequireShapeInferenceFns(TF_Graph* graph, bool require) { in SetRequireShapeInferenceFns()
122 std::string GetHandleShapeAndType(TF_Graph* graph, TF_Output output) { in GetHandleShapeAndType()
147 void SetHandleShapeAndType(TF_Graph* graph, TF_Output output, const void* proto, in SetHandleShapeAndType()
172 void AddWhileInputHack(TF_Graph* graph, TF_Output new_src, TF_Operation* dst, in AddWhileInputHack()
Dc_test_util.cc108 void PlaceholderHelper(TF_Graph* graph, TF_Status* s, const char* name, in PlaceholderHelper()
121 TF_Operation* Placeholder(TF_Graph* graph, TF_Status* s, const char* name, in Placeholder()
128 void ConstHelper(TF_Tensor* t, TF_Graph* graph, TF_Status* s, const char* name, in ConstHelper()
139 TF_Operation* Const(TF_Tensor* t, TF_Graph* graph, TF_Status* s, in Const()
146 TF_Operation* ScalarConst(bool v, TF_Graph* graph, TF_Status* s, in ScalarConst()
152 TF_Operation* ScalarConst(int32_t v, TF_Graph* graph, TF_Status* s, in ScalarConst()
158 TF_Operation* ScalarConst(double v, TF_Graph* graph, TF_Status* s, in ScalarConst()
164 TF_Operation* ScalarConst(float v, TF_Graph* graph, TF_Status* s, in ScalarConst()
170 void AddOpHelper(TF_Operation* l, TF_Operation* r, TF_Graph* graph, in AddOpHelper()
183 TF_Operation* Add(TF_Operation* l, TF_Operation* r, TF_Graph* graph, in Add()
[all …]
/external/tensorflow/tensorflow/core/graph/
Dcollective_order_test.cc34 void VerifyGraph(const Graph& graph, in VerifyGraph()
65 const Graph& graph, in VerifyAttrs()
131 std::unique_ptr<Graph> graph = absl::make_unique<Graph>(OpRegistry::Global()); in InitGraph() local
142 std::unique_ptr<Graph> graph = InitGraph(); in TEST() local
149 std::unique_ptr<Graph> graph = InitGraph(); in TEST() local
179 std::unique_ptr<Graph> graph = absl::make_unique<Graph>(OpRegistry::Global()); in InitGraph2() local
191 std::unique_ptr<Graph> graph = InitGraph2(); in TEST() local
218 std::unique_ptr<Graph> graph = absl::make_unique<Graph>(OpRegistry::Global()); in InitGraphForPruning() local
229 std::unique_ptr<Graph> graph = InitGraphForPruning(); in TEST() local
Dquantize_training.cc71 inline bool IsGradientNode(const Graph* graph, const Node* node) { in IsGradientNode()
79 bool FindType(const Graph* graph, const Node* node, bool* signed_input, in FindType()
139 Status FindSaveOp(const Graph* graph, Node** save_op, in FindSaveOp()
156 Node* FindRestoreAllOp(const Graph* graph, StringPiece save_prefix) { in FindRestoreAllOp()
185 Status ConnectVariablesToSaveOp(Graph* graph, Node* save_op, in ConnectVariablesToSaveOp()
250 Status AddRestoreVariableSubgraphs(Graph* graph, Node* save_op, in AddRestoreVariableSubgraphs()
317 Status AddSaveAndRestore(Graph* graph, const std::vector<Node*>& variables) { in AddSaveAndRestore()
333 Status MakeReductionAxes(Graph* graph, string name_prefix, Node* input, in MakeReductionAxes()
367 Status MakeExponentialMovingAverage(Graph* graph, string name_prefix, in MakeExponentialMovingAverage()
420 Status MakeInitializedEMAVariable(Graph* graph, const string& name, Node* decay, in MakeInitializedEMAVariable()
[all …]
/external/tensorflow/tensorflow/lite/
Darena_planner_test.cc130 explicit TestGraphInfo(TestGraph* graph) : graph_(graph) {} in TestGraphInfo()
164 void SetGraph(TestGraph* graph, bool preserve_inputs = false) { in SetGraph()
174 void SwapGraph(TestGraph* graph) { in SwapGraph()
208 TestGraph graph({}, {}, {}); in TEST_F() local
214 TestGraph graph({0, 10}, {}, {5, 11}); in TEST_F() local
226 TestGraph graph({1}, {{{1}, {2}, {}}}, {2}); in TEST_F() local
234 TestGraph graph({1}, {{{1}, {2}, {}}}, {2}); in TEST_F() local
242 TestGraph graph({0, 1}, in TEST_F() local
263 TestGraph graph({0, 1}, in TEST_F() local
287 TestGraph graph({0, 1}, in TEST_F() local
[all …]
Dgraph_info_test.cc77 void PartitionGraph(const SimpleTestGraph& graph, in PartitionGraph()
105 SimpleTestGraph graph; in TEST() local
117 SimpleTestGraph graph; in TEST() local
130 SimpleTestGraph graph; in TEST() local
150 SimpleTestGraph graph; in TEST() local
170 SimpleTestGraph graph; in TEST() local
192 SimpleTestGraph graph; in TEST() local
220 SimpleTestGraph graph; in TEST() local
250 SimpleTestGraph graph; in TEST() local
/external/tensorflow/tensorflow/java/src/main/java/org/tensorflow/op/
DScope.java83 public Scope(Graph graph) { in Scope()
88 public Graph graph() { in graph() method in Scope
149 private Scope(Graph graph, NameScope nameScope) { in Scope()
154 private final Graph graph; field in Scope
/external/tensorflow/tensorflow/compiler/jit/
Dmark_for_compilation_pass_test.cc50 std::unordered_map<string, string> GetClusters(const Graph& graph) { in GetClusters()
89 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() local
115 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() local
136 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() local
158 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() local
178 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() local
215 std::unique_ptr<Graph> graph(new Graph(&flib_def)); in TEST() local
245 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() local
313 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() local
369 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() local
[all …]
Dpartially_decluster_pass_test.cc83 Status PartiallyDecluster(std::unique_ptr<Graph>* graph) { in PartiallyDecluster()
105 Node* FindNodeByName(const Graph& graph, const string& name) { in FindNodeByName()
114 bool GetInputsForNode(const Graph& graph, const string& node_name, in GetInputsForNode()
128 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() local
164 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() local
193 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() local
223 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() local
254 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() local
315 auto graph = absl::make_unique<Graph>(OpRegistry::Global()); in TEST() local
343 std::unique_ptr<Graph> graph = absl::make_unique<Graph>(OpRegistry::Global()); in TEST() local
[all …]
/external/tensorflow/tensorflow/core/grappler/utils/
Dtopological_sort.cc50 const GraphDef& graph, in ComputeTopologicalOrder()
102 const GraphDef& graph, in ComputeTopologicalOrder()
117 Status ComputeTopologicalOrder(const GraphDef& graph, in ComputeTopologicalOrder()
122 Status ReversedTopologicalSort(GraphDef* graph) { in ReversedTopologicalSort()
130 Status TopologicalSort(GraphDef* graph) { in TopologicalSort()
Dtopological_sort_test.cc42 GraphDef graph; in CreateGraph() local
59 GraphDef graph = CreateGraph({ in TEST_F() local
86 GraphDef graph = CreateGraph({ in TEST_F() local
115 GraphDef graph = CreateGraph({ in TEST_F() local
129 GraphDef graph = CreateGraph({ in TEST_F() local
142 GraphDef graph = CreateGraph({ in TEST_F() local
164 GraphDef graph = CreateGraph({ in TEST_F() local
202 GraphDef graph = test::CreateRandomGraph(size); in BM_ComputeTopologicalOrder() local
/external/tensorflow/tensorflow/python/profiler/
Dtfprof_logger.py39 def _fill_missing_graph_shape(graph, run_meta): argument
77 def _get_logged_ops(graph, run_meta=None, add_trace=True, argument
144 def merge_default_with_oplog(graph, op_log=None, run_meta=None, argument
192 def write_op_log(graph, log_dir, op_log=None, run_meta=None, add_trace=True): argument
/external/skia/src/core/
DSkTTopoSort.h16 void SkTTopoSort_CheckAllUnmarked(const SkTArray<sk_sp<T>>& graph) { in SkTTopoSort_CheckAllUnmarked()
24 void SkTTopoSort_CleanExit(const SkTArray<sk_sp<T>>& graph) { in SkTTopoSort_CleanExit()
82 bool SkTTopoSort(SkTArray<sk_sp<T>>* graph) { in SkTTopoSort()
/external/skqp/src/core/
DSkTTopoSort.h16 void SkTTopoSort_CheckAllUnmarked(const SkTArray<sk_sp<T>>& graph) { in SkTTopoSort_CheckAllUnmarked()
24 void SkTTopoSort_CleanExit(const SkTArray<sk_sp<T>>& graph) { in SkTTopoSort_CleanExit()
82 bool SkTTopoSort(SkTArray<sk_sp<T>>* graph) { in SkTTopoSort()

12345678910>>...21