Home
last modified time | relevance | path

Searched refs:GraphView (Results 1 – 25 of 32) sorted by relevance

12

/external/tensorflow/tensorflow/core/grappler/
Dgraph_view.cc66 bool HasSingleFanoutNode(const GraphView& graph_view, const NodeDef* node, in HasSingleFanoutNode()
68 const auto output = GraphView::OutputPort(node, port); in HasSingleFanoutNode()
72 bool HasFanouts(const GraphView& graph_view, const NodeDef* node, int port) { in HasFanouts()
73 const auto output = GraphView::OutputPort(node, port); in HasFanouts()
77 bool HasControlFanin(const GraphView& graph_view, const NodeDef* node) { in HasControlFanin()
78 const auto control_port = GraphView::InputPort(node, Graph::kControlSlot); in HasControlFanin()
82 bool HasControlFanout(const GraphView& graph_view, const NodeDef* node) { in HasControlFanout()
83 const auto control_port = GraphView::OutputPort(node, Graph::kControlSlot); in HasControlFanout()
87 bool HasControlFaninOrFanout(const GraphView& graph_view, const NodeDef* node) { in HasControlFaninOrFanout()
Dgraph_view_test.cc42 GraphView graph_view(&graph_def); in TEST_F()
77 GraphView graph_view(&graph_def); in TEST_F()
109 GraphView graph_view(&graph_def); in TEST_F()
132 GraphView graph(&item.graph); in TEST_F()
134 GraphView::InputPort input = graph.GetInputPort("AddN", 0); in TEST_F()
137 GraphView::OutputPort fanin = graph.GetRegularFanin(input); in TEST_F()
148 GraphView::OutputPort output = graph.GetOutputPort("AddN", 0); in TEST_F()
190 GraphView graph(&item.graph); in TEST_F()
192 GraphView::OutputPort output = graph.GetOutputPort("a", -1); in TEST_F()
208 GraphView::InputPort input = graph.GetInputPort("d", -1); in TEST_F()
[all …]
Dgraph_topology_view.cc43 const absl::Span<const GraphView::Edge> ephemeral_edges, in InitializeFromGraph()
64 for (const GraphView::Edge& edge : ephemeral_edges) { in InitializeFromGraph()
145 const absl::Span<const GraphView::Edge> ephemeral_edges) { in InitializeFromGraph()
152 return InitializeFromGraph(graph, absl::Span<GraphView::Edge>(), in InitializeFromGraph()
157 return InitializeFromGraph(graph, absl::Span<GraphView::Edge>(), in InitializeFromGraph()
Dgraph_view.h400 class GraphView
403 explicit GraphView(const GraphDef* graph) : GraphViewInternal(graph) { in GraphView() function
410 bool HasSingleFanoutNode(const GraphView& graph_view, const NodeDef* node,
414 bool HasFanouts(const GraphView& graph_view, const NodeDef* node, int port = 0);
416 bool HasControlFanin(const GraphView& graph_view, const NodeDef* node);
418 bool HasControlFanout(const GraphView& graph_view, const NodeDef* node);
420 bool HasControlFaninOrFanout(const GraphView& graph_view, const NodeDef* node);
Dmutable_graph_view.h53 const GraphView::OutputPort& port) const;
57 const GraphView::InputPort& port) const;
60 const OutputPort GetRegularFanin(const GraphView::InputPort& port) const;
Dgraph_topology_view.h59 absl::Span<const GraphView::Edge> ephemeral_edges,
62 absl::Span<const GraphView::Edge> ephemeral_edges);
/external/tensorflow/tensorflow/core/grappler/utils/
Dgraph_view.h39 class GraphView; variable
44 class FaninView : public internal::NodeIndexAndPortIndex<NodeView, GraphView> {
48 FaninView(GraphView* graph_view, int node_index, int port_index) in FaninView()
55 friend class GraphView; variable
61 class FanoutView : public internal::NodeIndexAndPortIndex<NodeView, GraphView> {
65 FanoutView(GraphView* graph_view, int node_index, int port_index) in FanoutView()
72 friend class GraphView; variable
80 GraphView, true> {
82 explicit NodeView(GraphView* graph_view, int node_index) in NodeView()
109 friend class GraphView; variable
[all …]
Dtopological_sort.cc35 std::vector<GraphView::Edge> MakeEphemeralEdges( in MakeEphemeralEdges()
37 std::vector<GraphView::Edge> ephemeral_edges; in MakeEphemeralEdges()
41 GraphView::OutputPort(dep.from, Graph::kControlSlot), in MakeEphemeralEdges()
42 GraphView::InputPort(dep.to, Graph::kControlSlot)); in MakeEphemeralEdges()
Dgraph_view_test.cc52 return std::is_same<T, class GraphView>::value ? "GraphView" in GetGraphViewTypeAsString()
56 using GraphViewTypes = ::testing::Types<GraphView, MutableGraphView>;
318 ::testing::Types<std::pair<FanoutView, GraphView>,
415 if (std::is_same<GraphViewType, GraphView>::value) { in TYPED_TEST()
431 ::testing::Types<std::pair<FaninView, GraphView>,
548 if (std::is_same<GraphViewType, GraphView>::value) { in TYPED_TEST()
601 if (std::is_same<TypeParam, GraphView>::value) { in TYPED_TEST()
650 if (std::is_same<TypeParam, GraphView>::value) { in TYPED_TEST()
798 GraphView expected_graph_view(&expected_graph, &s); in CompareGraphViewWithGraph()
2407 BM_GraphViewTConstruction<GraphView>(state); in BM_GraphViewConstruction()
[all …]
Dframe.cc144 Status FrameView::InferFromGraphView(const utils::GraphView& graph_view) { in InferFromGraphView()
155 utils::GraphView graph_view(&graph, &status); in InferFromGraph()
Dframe.h42 Status InferFromGraphView(const utils::GraphView& graph_view);
Dframe_test.cc30 ::testing::Types<GraphDef, utils::GraphView, utils::MutableGraphView>;
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dcompute_batch_size_op.cc74 const grappler::GraphView& graph, in GetInputNode()
77 grappler::GraphView::InputPort input_port = in GetInputNode()
103 grappler::GraphView graph_view(&graph_def); in Compute()
116 const grappler::GraphView& graph) { in GetBatchSizeFromBatchNode()
153 int64 GetBatchSize(const NodeDef& node, const grappler::GraphView& graph) { in GetBatchSize()
/external/tensorflow/tensorflow/core/common_runtime/
Dgraph_view.h148 friend class GraphView;
207 class GraphView {
209 GraphView() : space_(nullptr) {} in GraphView() function
210 ~GraphView();
250 TF_DISALLOW_COPY_AND_ASSIGN(GraphView);
Dgraph_view.cc48 GraphView::~GraphView() { in ~GraphView()
83 size_t GraphView::NodeItemBytes(const Node* n) { in NodeItemBytes()
122 char* GraphView::InitializeNode(char* ptr, const Node* n) { in InitializeNode()
245 Status GraphView::Initialize(const Graph* g) { in Initialize()
294 void GraphView::SetScopedAllocatorAttrs( in SetScopedAllocatorAttrs()
404 Status GraphView::SetAllocAttrs(const Graph* g, const Device* device) { in SetAllocAttrs()
Dimmutable_executor_state.h89 const GraphView& graph_view() const { return gview_; } in graph_view()
133 GraphView gview_;
Dsimple_propagator_state.cc74 const GraphView& gview = immutable_state_.graph_view(); in PropagateOutputs()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dgeneric_layout_optimizer_test.cc243 utils::GraphView graph_view(&output, &status); in TEST_F()
288 utils::GraphView graph_view(&output, &status); in TEST_F()
307 utils::GraphView graph_view(&output, &status); in TEST_F()
330 utils::GraphView graph_view(&output, &status); in TEST_F()
349 utils::GraphView graph_view(&output, &status); in TEST_F()
372 utils::GraphView graph_view(&output, &status); in TEST_F()
394 utils::GraphView graph_view_original(&item.graph, &status); in TEST_F()
403 utils::GraphView graph_view(&output, &status); in TEST_F()
428 utils::GraphView graph_view(&output, &status); in TEST_F()
474 utils::GraphView graph_view(&output, &status); in TEST_F()
[all …]
Dpin_to_host_optimizer.cc91 Status IsNodeOutputPortHostFriendly(const GraphView& graph, in IsNodeOutputPortHostFriendly()
222 Status IsNodeHostCandidate(const GraphView& graph, GraphProperties* properties, in IsNodeHostCandidate()
244 for (const GraphView::OutputPort& fanin : in IsNodeHostCandidate()
309 GraphView graph(optimized_graph); in Optimize()
357 for (const GraphView::InputPort& fanout : graph.GetFanouts(*node, false)) { in Optimize()
Dmodel_pruner.cc38 bool IsTrivialIdentity(const NodeDef& node, const GraphView& graph_view) { in IsTrivialIdentity()
60 bool IsTrivialOp(const NodeDef& node, const GraphView& graph_view) { in IsTrivialOp()
82 const GraphView& graph_view) { in RemovalIncreasesEdgeCount()
104 bool CanRemoveNode(const NodeDef& node, const GraphView& graph_view, in CanRemoveNode()
149 const GraphView& graph_view) { in ForwardInputsInternal()
183 const GraphView& graph_view) { in ForwardInputs()
453 GraphView graph_view(pruned_graph); in Optimize()
Dloop_optimizer_test.cc111 utils::GraphView view(&graph, &status); in TEST_F()
131 utils::GraphView view(&output, &status); in TEST_F()
178 utils::GraphView view(&graph, &status); in TEST_F()
198 utils::GraphView view(&output, &status); in TEST_F()
245 utils::GraphView view(&graph, &status); in TEST_F()
260 utils::GraphView view(&output, &status); in TEST_F()
319 utils::GraphView view(&graph, &status); in TEST_F()
344 utils::GraphView view(&output, &status); in TEST_F()
412 utils::GraphView view(&graph, &status); in TEST_F()
432 utils::GraphView view(&output, &status); in TEST_F()
[all …]
Dauto_mixed_precision_test.cc74 GraphView optimized_view(&optimized_graph); in VerifyGraphsEquivalent()
190 GraphView output_view(&output); in TestSimpleUnaryInferOp()
231 GraphView output_view(&output); in TEST_F()
267 GraphView output_view(&output); in TEST_F()
310 GraphView output_view(&output); in TEST_F()
355 GraphView output_view(&output); in TEST_F()
396 GraphView output_view(&output); in TEST_F()
441 GraphView output_view(&output); in TEST_F()
484 GraphView output_view(&output); in TEST_F()
541 GraphView output_view(&output); in TEST_F()
[all …]
Dloop_optimizer.cc603 GraphView::InputPort switch_loopcond_port(&switch_node, 1); in CheckForDeadFanout()
619 GraphView::InputPort switch_input_port(&switch_node, 0); in CheckForDeadFanout()
769 absl::flat_hash_set<GraphView::OutputPort> identity_switches; in RemoveDeadBranches()
791 GraphView::OutputPort dead(&node, dead_fanout); in RemoveDeadBranches()
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_timeline_test.cc63 TEST_F(TFProfTimelineTest, GraphView) { in TEST_F() argument
/external/tensorflow/tensorflow/core/grappler/costs/
Dgraph_properties.cc617 const GraphView& graph, in SymbolicShapeRefiner()
628 const GraphView& graph() const { return graph_; } in graph()
975 const GraphView::InputPort port(node, dst_input); in UpdateNode()
976 const GraphView::OutputPort fanin = graph_.GetRegularFanin(port); in UpdateNode()
1999 const GraphView& graph_;
2235 for (const GraphView::Edge fanin : shape_refiner->graph().GetFaninEdges( in UpdateMerge()
2277 GraphView::InputPort port(node, 0); in UpdateEnter()
2278 GraphView::OutputPort fanin = shape_refiner->graph().GetRegularFanin(port); in UpdateEnter()
2449 GraphView::InputPort inp(enqueue_node, i); in UpdateEnqueue()
2450 GraphView::OutputPort fanin = shape_refiner->graph().GetRegularFanin(inp); in UpdateEnqueue()
[all …]

12