/external/tensorflow/tensorflow/core/graph/ |
D | testlib.h | 36 void ToGraphDef(Graph* g, GraphDef* def); 41 Node* Constant(Graph* g, const Tensor& tensor); 42 Node* Constant(Graph* g, const Tensor& tensor, const string& name); 49 Node* HostConstant(Graph* g, const Tensor& tensor); 50 Node* HostConstant(Graph* g, const Tensor& tensor, const string& name); 53 Node* Var(Graph* g, const DataType dtype, const TensorShape& shape); 54 Node* Var(Graph* g, const DataType dtype, const TensorShape& shape, 58 Node* Assign(Graph* g, Node* var, Node* val); 62 Node* Send(Graph* g, Node* input, const string& tensor, const string& sender, 67 Node* Recv(Graph* g, const string& tensor, const string& type, [all …]
|
D | testlib.cc | 35 Node* Send(Graph* g, Node* input, const string& tensor, const string& sender, in Send() 49 Node* Recv(Graph* g, const string& tensor, const string& type, in Recv() 66 Node* Constant(Graph* g, const Tensor& tensor) { in Constant() 75 Node* Constant(Graph* g, const Tensor& tensor, const string& name) { in Constant() 84 Node* HostConstant(Graph* g, const Tensor& tensor) { in HostConstant() 88 Node* HostConstant(Graph* g, const Tensor& tensor, const string& name) { in HostConstant() 97 Node* Var(Graph* g, const DataType dtype, const TensorShape& shape) { in Var() 106 Node* Var(Graph* g, const DataType dtype, const TensorShape& shape, in Var() 116 Node* Assign(Graph* g, Node* var, Node* val) { in Assign() 126 Node* Cumsum(Graph* g, Node* data, Node* axes, bool exclusive, bool reverse) { in Cumsum() [all …]
|
D | algorithm.h | 53 extern void DFS(const Graph& g, const std::function<void(Node*)>& enter, 64 extern void DFSFrom(const Graph& g, gtl::ArraySlice<Node*> start, 69 extern void DFSFrom(const Graph& g, gtl::ArraySlice<const Node*> start, 81 extern void ReverseDFS(const Graph& g, const std::function<void(Node*)>& enter, 92 extern void ReverseDFSFrom(const Graph& g, gtl::ArraySlice<Node*> start, 97 extern void ReverseDFSFrom(const Graph& g, gtl::ArraySlice<const Node*> start, 115 void GetPostOrder(const Graph& g, std::vector<Node*>* order, 124 void GetReversePostOrder(const Graph& g, std::vector<Node*>* order, 131 bool PruneForReverseReachability(Graph* g, 138 bool FixupSourceAndSinkEdges(Graph* g);
|
D | costmodel_test.cc | 36 static void InitGraph(const string& s, Graph* graph) { in InitGraph() 45 static void GenerateStepStats(Graph* graph, StepStats* step_stats, in GenerateStepStats() 60 std::unique_ptr<Graph> graph1 = in TEST() 61 std::unique_ptr<Graph>(new Graph(OpRegistry::Global())); in TEST() 62 std::unique_ptr<Graph> graph2 = in TEST() 63 std::unique_ptr<Graph>(new Graph(OpRegistry::Global())); in TEST() 84 std::unordered_map<string, const Graph*> device_map; in TEST()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | training_ops_test.cc | 44 static Node* Var(Graph* g, int n) { in Var() 48 static Node* Var(Graph* g, int m, int n) { in Var() 52 static Node* Zeros(Graph* g, int n) { in Zeros() 58 static Node* Zeros(Graph* g, int m, int n) { in Zeros() 64 static Node* Random(Graph* g, int n) { in Random() 70 static Node* Random(Graph* g, int m, int n) { in Random() 76 static Node* Iota(Graph* g, int n) { in Iota() 83 static Node* Scalar(Graph* g, float val) { in Scalar() 89 static void SGD(int32 n, Graph** init_g, Graph** train_g) { in SGD() 91 Graph* g = new Graph(OpRegistry::Global()); in SGD() [all …]
|
D | sdca_ops_test.cc | 52 Node* Var(Graph* const g, const int n) { in Var() 57 std::vector<Node*> VarVector(Graph* const g, const int nodes, in VarVector() 67 Node* Zeros(Graph* const g, const TensorShape& shape) { in Zeros() 73 Node* Zeros(Graph* const g, const int n) { return Zeros(g, TensorShape({n})); } in Zeros() 75 Node* Ones(Graph* const g, const int n) { in Ones() 81 Node* SparseIndices(Graph* const g, const int sparse_features_per_group) { in SparseIndices() 87 Node* SparseExampleIndices(Graph* const g, const int sparse_features_per_group, in SparseExampleIndices() 95 Node* SparseFeatureIndices(Graph* const g, const int sparse_features_per_group, in SparseFeatureIndices() 104 Node* RandomZeroOrOne(Graph* const g, const int n) { in RandomZeroOrOne() 113 Node* RandomZeroOrOneMatrix(Graph* const g, const int n, int d) { in RandomZeroOrOneMatrix() [all …]
|
D | basic_ops_benchmark_test.cc | 38 static Node* Var(Graph* g, int n) { in Var() 42 static Node* Zeros(Graph* g, int n) { in Zeros() 48 static void MulChain(int chain_length, Graph** init_g, Graph** run_g) { in MulChain() 50 Graph* g = new Graph(OpRegistry::Global()); in MulChain() 56 Graph* g = new Graph(OpRegistry::Global()); in MulChain() 70 Graph* init; in BM_MulChain() 71 Graph* run; in BM_MulChain()
|
/external/mesa3d/src/gallium/drivers/nouveau/codegen/ |
D | nv50_ir_graph.h | 31 #define ITER_NODE(x) reinterpret_cast<Graph::Node *>((x).get()) 32 #define ITER_EDGE(x) reinterpret_cast<Graph::Edge *>((x).get()) 35 class Graph 71 friend class Graph; variable 78 EdgeIterator(Graph::Edge *first, int dir, bool reverse) in EdgeIterator() 86 Graph::Edge *n = (rev ? e->prev[d] : e->next[d]); in next() 98 Graph::Edge *e; 99 Graph::Edge *t; 128 Graph *getGraph() const { return graph; } in getGraph() 135 Graph *graph; [all …]
|
D | nv50_ir_graph.cpp | 31 Graph::Graph() in Graph() function in nv50_ir::Graph 38 Graph::~Graph() in ~Graph() 44 void Graph::insert(Node *node) in insert() 53 void Graph::Edge::unlink() in unlink() 73 const char *Graph::Edge::typeStr() const in typeStr() 86 Graph::Node::Node(void *priv) : data(priv), in Node() 94 void Graph::Node::attach(Node *node, Edge::Type kind) in attach() 128 bool Graph::Node::detach(Graph::Node *node) in detach() 143 void Graph::Node::cut() in cut() 157 Graph::Edge::Edge(Node *org, Node *tgt, Type kind) in Edge() [all …]
|
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/ |
D | GraphOperationTest.java | 38 try (Graph g = new Graph()) { in outputListLengthFailsOnInvalidName() 58 try (Graph g = new Graph()) { in operationEquality() 73 try (Graph g = new Graph()) { in operationEquality() 81 try (Graph g = new Graph()) { in operationCollection() 98 try (Graph g = new Graph()) { in operationToString() 106 try (Graph g = new Graph()) { in outputEquality() 119 try (Graph g = new Graph()) { in outputCollection() 134 try (Graph g = new Graph()) { in outputToString() 159 try (Graph g = new Graph()) { in outputList() 172 try (Graph g = new Graph()) { in outputTensorNotSupported() [all …]
|
D | GraphTest.java | 37 try (Graph g = new Graph()) { in graphDefRoundTrip() 42 try (Graph g = new Graph()) { in graphDefRoundTrip() 46 try (Graph g = new Graph()) { in graphDefRoundTrip() 54 private static void validateImportedGraph(Graph g, String prefix) { in validateImportedGraph() 79 try (Graph g = new Graph()) { in iterateOverOperations() 107 try (Graph g = new Graph()) { in failImportOnInvalidGraphDefs() 124 Graph g = new Graph(); in failOnUseAfterClose() 135 try (Graph g = new Graph(); in addGradientsToGraph() 176 try (Graph g = new Graph(); in addGradientSumsToGraph() 202 try (Graph g = new Graph(); in addGradientsWithInitialValuesToGraph() [all …]
|
D | GraphOperationBuilderTest.java | 35 try (Graph g1 = new Graph(); in failWhenMixingOperationsOnDifferentGraphs() 36 Graph g2 = new Graph()) { in failWhenMixingOperationsOnDifferentGraphs() 50 try (Graph g = new Graph(); in failOnUseAfterBuild() 66 try (Graph g = new Graph(); in failOnUseAfterGraphClose() 86 try (Graph g = new Graph()) { in setAttr() 129 try (Graph g = new Graph()) { in setAttrShape() 167 try (Graph g = new Graph(); in addControlInput() 193 try (Graph g = new Graph(); in testSetAttrShapeList() 216 private static boolean hasNode(Graph g, String name) { in hasNode()
|
D | SessionTest.java | 33 try (Graph g = new Graph(); in runUsingOperationNames() 48 try (Graph g = new Graph(); in runUsingOperationHandles() 65 try (Graph g = new Graph(); in runUsingColonSeparatedNames() 102 try (Graph g = new Graph(); in runWithMetadata() 132 try (Graph g = new Graph(); in runMultipleOutputs() 147 try (Graph g = new Graph()) { in failOnUseAfterClose() 161 try (Graph g = new Graph(); in createWithConfigProto()
|
/external/tensorflow/tensorflow/python/saved_model/ |
D | saved_model_test.py | 128 with self.session(graph=ops.Graph()) as sess: 141 with self.session(graph=ops.Graph()) as sess: 150 with self.session(graph=ops.Graph()) as sess: 162 with self.session(graph=ops.Graph()) as sess: 171 with self.session(graph=ops.Graph()) as sess: 193 with self.session(graph=ops.Graph()) as sess: 203 with self.session(graph=ops.Graph()) as sess: 217 with self.session(graph=ops.Graph()) as sess: 227 with ops.Graph().as_default(): 228 with self.session(graph=ops.Graph()) as sess: [all …]
|
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/op/core/ |
D | ConstantTest.java | 33 import org.tensorflow.Graph; 46 try (Graph g = new Graph(); in createInt() 61 try (Graph g = new Graph(); in createIntBuffer() 76 try (Graph g = new Graph(); in createFloat() 91 try (Graph g = new Graph(); in createFloatBuffer() 106 try (Graph g = new Graph(); in createDouble() 121 try (Graph g = new Graph(); in createDoubleBuffer() 136 try (Graph g = new Graph(); in createLong() 151 try (Graph g = new Graph(); in createLongBuffer() 166 try (Graph g = new Graph(); in createBoolean() [all …]
|
D | ZerosTest.java | 27 import org.tensorflow.Graph; 39 try (Graph g = new Graph(); in createIntZeros() 57 try (Graph g = new Graph(); in createFloatZeros() 75 try (Graph g = new Graph(); in createDoubleZeros() 93 try (Graph g = new Graph(); in createLongZeros() 111 try (Graph g = new Graph(); in createBooleanZeros() 129 try (Graph g = new Graph(); in createUInt8Zeros() 148 try (Graph g = new Graph(); in cannotCreateStringZeros() 159 try (Graph g = new Graph(); in operationsComposingZerosAreCorrectlyNamed()
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86LoadValueInjectionLoadHardening.cpp | 166 std::unique_ptr<MachineGadgetGraph> Graph) const; 168 std::unique_ptr<MachineGadgetGraph> Graph) const; 173 trimMitigatedEdges(std::unique_ptr<MachineGadgetGraph> Graph) const; 276 std::unique_ptr<MachineGadgetGraph> Graph = getGadgetGraph(MF, MLI, MDT, MDF); in runOnMachineFunction() local 278 if (Graph == nullptr) in runOnMachineFunction() 282 writeGadgetGraph(outs(), MF, Graph.get()); in runOnMachineFunction() 295 writeGadgetGraph(FileOut, MF, Graph.get()); in runOnMachineFunction() 314 FencesInserted = hardenLoadsWithPlugin(MF, std::move(Graph)); in runOnMachineFunction() 316 FencesInserted = hardenLoadsWithHeuristic(MF, std::move(Graph)); in runOnMachineFunction() 599 std::unique_ptr<MachineGadgetGraph> Graph) const { in trimMitigatedEdges() [all …]
|
/external/tensorflow/tensorflow/java/src/main/java/org/tensorflow/ |
D | GraphOperationBuilder.java | 23 GraphOperationBuilder(Graph graph, String type, String name) { in GraphOperationBuilder() 25 Graph.Reference r = graph.ref(); in GraphOperationBuilder() 40 Graph.Reference r = graph.ref(); in build() 56 Graph.Reference r = graph.ref(); in addControlInput() 67 Graph.Reference r = graph.ref(); in addInput() 78 Graph.Reference r = graph.ref(); in addInputList() 95 Graph.Reference r = graph.ref(); in setDevice() 112 Graph.Reference r = graph.ref(); in setAttr() 123 Graph.Reference r = graph.ref(); in setAttr() 134 Graph.Reference r = graph.ref(); in setAttr() [all …]
|
D | GraphOperation.java | 33 GraphOperation(Graph g, long unsafeNativeHandle) { in GraphOperation() 40 Graph.Reference r = graph.ref(); in name() 50 Graph.Reference r = graph.ref(); in type() 60 Graph.Reference r = graph.ref(); in numOutputs() 70 Graph.Reference r = graph.ref(); in outputListLength() 99 Graph.Reference r = graph.ref(); in equals() 109 Graph.Reference r = graph.ref(); in inputListLength() 124 Graph.Reference r = graph.ref(); in shape() 134 Graph.Reference r = graph.ref(); in dtype() 151 private final Graph graph;
|
/external/tensorflow/tensorflow/python/framework/ |
D | importer_test.py | 63 with ops.Graph().as_default(): 121 with ops.Graph().as_default(): 223 with ops.Graph().as_default(): 237 with ops.Graph().as_default(): 264 with ops.Graph().as_default(): 291 with ops.Graph().as_default(): 318 with ops.Graph().as_default(): 329 with ops.Graph().as_default(): 342 with ops.Graph().as_default(): 353 with ops.Graph().as_default(): [all …]
|
/external/antlr/tool/src/test/java/org/antlr/test/ |
D | TestTopologicalSort.java | 30 import org.antlr.misc.Graph; 41 Graph<String> g = new Graph<String>(); in testFairlyLargeGraph() 62 Graph<String> g = new Graph<String>(); in testCyclicGraph() 76 Graph<String> g = new Graph<String>(); in testRepeatedEdges() 90 Graph<String> g = new Graph<String>(); in testSimpleTokenDependence() 104 Graph<String> g = new Graph<String>(); in testParserLexerCombo()
|
/external/llvm-project/llvm/unittests/ADT/ |
D | TestGraph.h | 25 class Graph { 28 Graph(const Graph&); 29 Graph& operator=(const Graph&); 108 Graph() { in Graph() function 164 friend class Graph; variable 235 struct GraphTraits<Graph<N> > { 236 typedef typename Graph<N>::NodeType *NodeRef; 237 typedef typename Graph<N>::ChildIterator ChildIteratorType; 239 static NodeRef getEntryNode(const Graph<N> &G) { return G.AccessNode(0); } 241 return Graph<N>::child_begin(Node); [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | function_utils.h | 28 class Graph; variable 37 string DebugString(const Graph* g); 41 void DumpGraph(StringPiece label, const Graph* g); 47 void ToGraphDef(const Graph* g, GraphDef* gdef, bool pretty = false); 74 bool RemoveDeadNodes(Graph* g); 85 bool RemoveIdentityNodes(Graph* g); 88 bool RemoveListArrayConverter(Graph* g);
|
/external/tensorflow/tensorflow/core/tpu/graph_rewrite/ |
D | distributed_tpu_rewrite_pass.h | 279 Graph* computation, 309 const std::vector<InferredShape>& retval_shapes, const Graph& graph, 342 const std::vector<Node*>& variable_reads, Graph* graph, 364 const std::vector<Node*>& dynamic_shape_nodes, Graph* graph, 371 Node** control_after_compilation, Graph* graph); 376 Node* control_predecessor, Graph* graph, 382 static bool ContainsResourceWriteOp(const Graph& graph, 401 absl::Span<const VariableWrite> variable_writes, Graph* graph); 440 std::vector<VariableWrite>* variable_writes, Graph* graph); 452 Graph* graph); [all …]
|
/external/tensorflow/tensorflow/compiler/jit/ |
D | mark_for_compilation_pass_test.cc | 55 std::unordered_map<string, string> GetClusters(const Graph& graph) { in GetClusters() 75 const Graph& g, std::vector<string>* cluster_names = nullptr) { in GetClusterSets() 94 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() 119 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() 139 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() 160 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() 179 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); in TEST() 213 std::unique_ptr<Graph> graph(new Graph(&flib_def)); in TEST() 254 std::unique_ptr<Graph> graph(new Graph(&flib_def)); in TEST() 291 std::unique_ptr<Graph> graph(new Graph(&flib_def)); in TEST() [all …]
|