Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 5330) sorted by relevance

12345678910>>...214

/external/jsilver/src/com/google/clearsilver/jsilver/syntax/analysis/
DDepthFirstAdapter.java6 import com.google.clearsilver.jsilver.syntax.node.*;
10 public void inStart(Start node) in inStart() argument
12 defaultIn(node); in inStart()
15 public void outStart(Start node) in outStart() argument
17 defaultOut(node); in outStart()
20 public void defaultIn(@SuppressWarnings("unused") Node node) in defaultIn() argument
25 public void defaultOut(@SuppressWarnings("unused") Node node) in defaultOut() argument
31 public void caseStart(Start node) in caseStart() argument
33 inStart(node); in caseStart()
34 node.getPCommand().apply(this); in caseStart()
[all …]
DReversedDepthFirstAdapter.java6 import com.google.clearsilver.jsilver.syntax.node.*;
10 public void inStart(Start node) in inStart() argument
12 defaultIn(node); in inStart()
15 public void outStart(Start node) in outStart() argument
17 defaultOut(node); in outStart()
20 public void defaultIn(@SuppressWarnings("unused") Node node) in defaultIn() argument
25 public void defaultOut(@SuppressWarnings("unused") Node node) in defaultOut() argument
31 public void caseStart(Start node) in caseStart() argument
33 inStart(node); in caseStart()
34 node.getEOF().apply(this); in caseStart()
[all …]
DAnalysisAdapter.java6 import com.google.clearsilver.jsilver.syntax.node.*;
13 public Object getIn(Node node) in getIn() argument
20 return this.in.get(node); in getIn()
23 public void setIn(Node node, Object o) in setIn() argument
32 this.in.put(node, o); in setIn()
36 this.in.remove(node); in setIn()
40 public Object getOut(Node node) in getOut() argument
47 return this.out.get(node); in getOut()
50 public void setOut(Node node, Object o) in setOut() argument
59 this.out.put(node, o); in setOut()
[all …]
DAnalysis.java5 import com.google.clearsilver.jsilver.syntax.node.*;
9 Object getIn(Node node); in getIn() argument
10 void setIn(Node node, Object o); in setIn() argument
11 Object getOut(Node node); in getOut() argument
12 void setOut(Node node, Object o); in setOut() argument
14 void caseStart(Start node); in caseStart() argument
15 void caseAMultipleCommand(AMultipleCommand node); in caseAMultipleCommand() argument
16 void caseACommentCommand(ACommentCommand node); in caseACommentCommand() argument
17 void caseADataCommand(ADataCommand node); in caseADataCommand() argument
18 void caseAVarCommand(AVarCommand node); in caseAVarCommand() argument
[all …]
/external/tensorflow/tensorflow/core/grappler/
Dop_types.cc30 bool IsAdd(const NodeDef& node) { in IsAdd() argument
31 if (node.op() == "AddV2") { in IsAdd()
34 if (node.op() == "Add") { in IsAdd()
35 DataType type = node.attr().at("T").type(); in IsAdd()
41 bool IsAddN(const NodeDef& node) { return node.op() == "AddN"; } in IsAddN() argument
43 bool IsAll(const NodeDef& node) { return node.op() == "All"; } in IsAll() argument
45 bool IsAngle(const NodeDef& node) { return node.op() == "Angle"; } in IsAngle() argument
47 bool IsAny(const NodeDef& node) { return node.op() == "Any"; } in IsAny() argument
49 bool IsAnyDiv(const NodeDef& node) { in IsAnyDiv() argument
50 return node.op() == "RealDiv" || node.op() == "Div" || node.op() == "Xdivy" || in IsAnyDiv()
[all …]
Dop_types.h25 bool IsAdd(const NodeDef& node);
26 bool IsAddN(const NodeDef& node);
27 bool IsAll(const NodeDef& node);
28 bool IsAngle(const NodeDef& node);
29 bool IsAny(const NodeDef& node);
30 bool IsAnyDiv(const NodeDef& node);
31 bool IsAnyBatchMatMul(const NodeDef& node);
32 bool IsAnyMatMul(const NodeDef& node);
33 bool IsAnyMax(const NodeDef& node);
34 bool IsAnyMaxPool(const NodeDef& node);
[all …]
/external/tensorflow/tensorflow/python/autograph/converters/
Dreturn_statements.py70 def visit_Return(self, node): argument
72 return node
74 def _postprocess_statement(self, node): argument
77 if anno.getanno(node, STMT_DEFINITELY_RETURNS, default=False):
84 if (isinstance(node, gast.If)
85 and anno.getanno(node, BODY_DEFINITELY_RETURNS, default=False)):
86 return node, node.orelse
87 elif (isinstance(node, gast.If)
88 and anno.getanno(node, ORELSE_DEFINITELY_RETURNS, default=False)):
89 return node, node.body
[all …]
/external/yapf/yapf/yapflib/
Dsplit_penalty.py67 def Visit_import_as_names(self, node): # pyline: disable=invalid-name argument
69 self.DefaultNodeVisit(node)
71 for child in node.children:
77 def Visit_classdef(self, node): # pylint: disable=invalid-name argument
81 _SetUnbreakable(node.children[1])
82 if len(node.children) > 4:
84 _SetUnbreakable(node.children[2])
86 _SetUnbreakable(node.children[-2])
87 self.DefaultNodeVisit(node)
89 def Visit_funcdef(self, node): # pylint: disable=invalid-name argument
[all …]
/external/ComputeLibrary/arm_compute/graph/backends/
DValidateHelpers.h64 Status validate_arg_min_max_layer(ArgMinMaxLayerNode &node) in validate_arg_min_max_layer() argument
66 …APH_VERBOSE("Validating ArgMinMaxLayer node with ID : " << node.id() << " and Name: " << node.name… in validate_arg_min_max_layer()
67 ARM_COMPUTE_RETURN_ERROR_ON(node.num_inputs() != 1); in validate_arg_min_max_layer()
68 ARM_COMPUTE_RETURN_ERROR_ON(node.num_outputs() != 1); in validate_arg_min_max_layer()
71 arm_compute::ITensorInfo *input = detail::get_backing_tensor_info(node.input(0)); in validate_arg_min_max_layer()
72 arm_compute::ITensorInfo *output = get_backing_tensor_info(node.output(0)); in validate_arg_min_max_layer()
75 return ArgMinMaxLayer::validate(input, node.axis(), output, node.reduction_operation()); in validate_arg_min_max_layer()
87 Status validate_bounding_box_transform_layer(BoundingBoxTransformLayerNode &node) in validate_bounding_box_transform_layer() argument
89 …("Validating BoundingBoxTransformLayer node with ID : " << node.id() << " and Name: " << node.name… in validate_bounding_box_transform_layer()
90 ARM_COMPUTE_RETURN_ERROR_ON(node.num_inputs() != 2); in validate_bounding_box_transform_layer()
[all …]
/external/tensorflow/tensorflow/python/autograph/pyct/common_transformers/
Danf.py162 def _do_transform_node(self, node): argument
165 'temp_name = expr', temp_name=temp_name, expr=node)[0]
170 def _ensure_node_in_anf(self, parent, field, node): argument
186 if node is None:
187 return node
188 if _is_trivial(node):
189 return node
190 if isinstance(node, list):
192 return [self._ensure_node_in_anf(parent, field, n) for n in node]
193 if isinstance(node, gast.keyword):
[all …]
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dactivity.py228 self.node = None
256 innermost = context.stack[-1].node
257 parent = context.stack[-2].node
263 def _node_sets_self_attribute(self, node): argument
264 if anno.hasanno(node, anno.Basic.QN):
265 qn = anno.getanno(node, anno.Basic.QN)
271 def _track_symbol(self, node, composite_writes_alter_parent=False): argument
277 if not anno.hasanno(node, anno.Basic.QN):
279 qn = anno.getanno(node, anno.Basic.QN)
289 if isinstance(node.ctx, gast.Store):
[all …]
Dliveness.py50 def visit_node(self, node): argument
51 prev_live_in = self.in_[node]
53 if anno.hasanno(node.ast_node, anno.Static.SCOPE):
54 node_scope = anno.getanno(node.ast_node, anno.Static.SCOPE)
65 for n in node.next:
70 node.ast_node, anno.Static.DEFINED_FNS_IN)
82 assert self.can_ignore(node), (node.ast_node, node)
85 for n in node.next:
89 self.in_[node] = live_in
90 self.out[node] = live_out
[all …]
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/
DDefaultVisitorAdapter.java17 public ResolvedType visit(CompilationUnit node, Boolean aBoolean) { in visit() argument
18 throw new UnsupportedOperationException(node.getClass().getCanonicalName()); in visit()
22 public ResolvedType visit(PackageDeclaration node, Boolean aBoolean) { in visit() argument
23 throw new UnsupportedOperationException(node.getClass().getCanonicalName()); in visit()
27 public ResolvedType visit(TypeParameter node, Boolean aBoolean) { in visit() argument
28 throw new UnsupportedOperationException(node.getClass().getCanonicalName()); in visit()
32 public ResolvedType visit(LineComment node, Boolean aBoolean) { in visit() argument
33 throw new UnsupportedOperationException(node.getClass().getCanonicalName()); in visit()
37 public ResolvedType visit(BlockComment node, Boolean aBoolean) { in visit() argument
38 throw new UnsupportedOperationException(node.getClass().getCanonicalName()); in visit()
[all …]
DJavaParserFactory.java43 public static Context getContext(Node node, TypeSolver typeSolver) { in getContext() argument
44 if (node == null) { in getContext()
46 } else if (node instanceof BlockStmt) { in getContext()
47 return new BlockStmtContext((BlockStmt) node, typeSolver); in getContext()
48 } else if (node instanceof CompilationUnit) { in getContext()
49 return new CompilationUnitContext((CompilationUnit) node, typeSolver); in getContext()
50 } else if (node instanceof ForEachStmt) { in getContext()
51 return new ForEachStatementContext((ForEachStmt) node, typeSolver); in getContext()
52 } else if (node instanceof ForStmt) { in getContext()
53 return new ForStatementContext((ForStmt) node, typeSolver); in getContext()
[all …]
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dgeneric_layout_optimizer_transposer.cc73 inline bool AttrDataFormatMatch(const utils::MutableNodeView& node, in AttrDataFormatMatch() argument
76 const auto* attr = node.GetAttr(kAttrDataFormat); in AttrDataFormatMatch()
84 inline bool AttrDataFormatMatch(const utils::MutableNodeView& node, in AttrDataFormatMatch() argument
87 return AttrDataFormatMatch(node, src_data_format, &missing); in AttrDataFormatMatch()
90 bool IsNonFloatingConv2D(const utils::MutableNodeView& node) { in IsNonFloatingConv2D() argument
91 if (IsConv2D(*node.node()) || IsConv2DBackpropInput(*node.node())) { in IsNonFloatingConv2D()
92 const auto* attr = node.GetAttr(kAttrT); in IsNonFloatingConv2D()
102 bool IsComparisonOp(const NodeDef& node) { in IsComparisonOp() argument
103 bool is_compare = IsApproximateEqual(node) || IsEqual(node) || in IsComparisonOp()
104 IsGreater(node) || IsGreaterEqual(node) || IsLess(node) || in IsComparisonOp()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparsermodel/
DDefaultVisitorAdapter.java17 public Type visit(CompilationUnit node, Boolean aBoolean) { in visit() argument
18 throw new UnsupportedOperationException(node.getClass().getCanonicalName()); in visit()
22 public Type visit(PackageDeclaration node, Boolean aBoolean) { in visit() argument
23 throw new UnsupportedOperationException(node.getClass().getCanonicalName()); in visit()
27 public Type visit(TypeParameter node, Boolean aBoolean) { in visit() argument
28 throw new UnsupportedOperationException(node.getClass().getCanonicalName()); in visit()
32 public Type visit(LineComment node, Boolean aBoolean) { in visit() argument
33 throw new UnsupportedOperationException(node.getClass().getCanonicalName()); in visit()
37 public Type visit(BlockComment node, Boolean aBoolean) { in visit() argument
38 throw new UnsupportedOperationException(node.getClass().getCanonicalName()); in visit()
[all …]
/external/python/cpython3/Lib/
Dast.py65 def _raise_malformed_node(node): argument
67 if lno := getattr(node, 'lineno', None):
70 def _convert_num(node): argument
71 if not isinstance(node, Constant) or type(node.value) not in (int, float, complex):
72 _raise_malformed_node(node)
73 return node.value
74 def _convert_signed_num(node): argument
75 if isinstance(node, UnaryOp) and isinstance(node.op, (UAdd, USub)):
76 operand = _convert_num(node.operand)
77 if isinstance(node.op, UAdd):
[all …]
/external/selinux/libsepol/cil/src/
Dcil_tree.c53 struct cil_tree_node *cil_tree_get_next_path(struct cil_tree_node *node, char **info_kind, uint32_t… in cil_tree_get_next_path() argument
57 if (!node) { in cil_tree_get_next_path()
61 node = node->parent; in cil_tree_get_next_path()
63 while (node) { in cil_tree_get_next_path()
64 if (node->flavor == CIL_NODE && node->data == NULL) { in cil_tree_get_next_path()
65 if (node->cl_head && node->cl_head->data == CIL_KEY_SRC_INFO) { in cil_tree_get_next_path()
66 if (!node->cl_head->next || !node->cl_head->next->next || !node->cl_head->next->next->next) { in cil_tree_get_next_path()
70 *info_kind = node->cl_head->next->data; in cil_tree_get_next_path()
71 rc = cil_string_to_uint32(node->cl_head->next->next->data, hll_line, 10); in cil_tree_get_next_path()
75 *path = node->cl_head->next->next->next->data; in cil_tree_get_next_path()
[all …]
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DDTMDefaultBaseIterators.java302 public DTMAxisIterator setStartNode(int node) in setStartNode() argument
305 if (node == DTMDefaultBase.ROOTNODE) in setStartNode()
306 node = getDocument(); in setStartNode()
309 _startNode = node; in setStartNode()
310 _currentNode = (node == DTM.NULL) ? DTM.NULL in setStartNode()
311 : _firstch(makeNodeIdentity(node)); in setStartNode()
328 int node = _currentNode; in next() local
329 _currentNode = _nextsib(node); in next()
330 return returnNode(makeNodeHandle(node)); in next()
356 public DTMAxisIterator setStartNode(int node) in setStartNode() argument
[all …]
/external/tensorflow/tensorflow/python/profiler/internal/
Dflops_registry.py46 def _zero_flops(graph, node): argument
48 del graph, node # graph and node are unused
64 def _unary_op_flops(graph, node, ops_per_element=1): argument
66 in_shape = graph_util.tensor_shape_from_node_def_name(graph, node.input[0])
72 def _reciprocal_flops(graph, node): argument
74 return _unary_op_flops(graph, node)
78 def _square_flops(graph, node): argument
80 return _unary_op_flops(graph, node)
84 def _rsqrt_flops(graph, node): argument
87 return _unary_op_flops(graph, node, ops_per_element=2)
[all …]
/external/e2fsprogs/lib/ext2fs/
Drbtree.c25 static void __rb_rotate_left(struct rb_node *node, struct rb_root *root) in __rb_rotate_left() argument
27 struct rb_node *right = node->rb_right; in __rb_rotate_left()
28 struct rb_node *parent = ext2fs_rb_parent(node); in __rb_rotate_left()
30 if ((node->rb_right = right->rb_left)) in __rb_rotate_left()
31 ext2fs_rb_set_parent(right->rb_left, node); in __rb_rotate_left()
32 right->rb_left = node; in __rb_rotate_left()
38 if (node == parent->rb_left) in __rb_rotate_left()
45 ext2fs_rb_set_parent(node, right); in __rb_rotate_left()
48 static void __rb_rotate_right(struct rb_node *node, struct rb_root *root) in __rb_rotate_right() argument
50 struct rb_node *left = node->rb_left; in __rb_rotate_right()
[all …]
/external/dtc/
Dchecks.c29 typedef void (*check_fn)(struct check *c, struct dt_info *dti, struct node *node);
62 struct node *node, in check_msg() argument
76 else if (node && node->srcpos) in check_msg()
77 pos = node->srcpos; in check_msg()
92 if (node) { in check_msg()
94 xasprintf_append(&str, "%s:%s: ", node->fullpath, prop->name); in check_msg()
96 xasprintf_append(&str, "%s: ", node->fullpath); in check_msg()
106 pos = node->srcpos; in check_msg()
119 #define FAIL(c, dti, node, ...) \ argument
123 check_msg((c), dti, node, NULL, __VA_ARGS__); \
[all …]
/external/tinycompress/
Dsnd_utils.c44 int snd_utils_get_int(struct snd_node *node, const char *prop, int *val) in snd_utils_get_int() argument
46 if (!node || !node->card_node || !node->dev_node) in snd_utils_get_int()
49 return node->get_int(node->dev_node, prop, val); in snd_utils_get_int()
52 int snd_utils_get_str(struct snd_node *node, const char *prop, char **val) in snd_utils_get_str() argument
54 if (!node || !node->card_node || !node->dev_node) in snd_utils_get_str()
57 return node->get_str(node->dev_node, prop, val); in snd_utils_get_str()
60 void snd_utils_put_dev_node(struct snd_node *node) in snd_utils_put_dev_node() argument
62 if (!node) in snd_utils_put_dev_node()
65 if (node->card_node) in snd_utils_put_dev_node()
66 node->put_card(node->card_node); in snd_utils_put_dev_node()
[all …]
/external/tinyalsa/
Dsnd_utils.c44 int snd_utils_get_int(struct snd_node *node, const char *prop, int *val) in snd_utils_get_int() argument
46 if (!node || !node->card_node || !node->dev_node) in snd_utils_get_int()
49 return node->get_int(node->dev_node, prop, val); in snd_utils_get_int()
52 int snd_utils_get_str(struct snd_node *node, const char *prop, char **val) in snd_utils_get_str() argument
54 if (!node || !node->card_node || !node->dev_node) in snd_utils_get_str()
57 return node->get_str(node->dev_node, prop, val); in snd_utils_get_str()
60 void snd_utils_put_dev_node(struct snd_node *node) in snd_utils_put_dev_node() argument
62 if (!node) in snd_utils_put_dev_node()
65 if (node->card_node) in snd_utils_put_dev_node()
66 node->put_card(node->card_node); in snd_utils_put_dev_node()
[all …]
/external/tensorflow/tensorflow/python/autograph/pyct/
Dcfg.py136 for node in self.index.values():
137 result += ' %s [label="%s"];\n' % (id(node), node)
138 for node in self.index.values():
139 for next_ in node.next:
140 result += ' %s -> %s;\n' % (id(node), id(next_))
178 def init_state(self, node): argument
190 def visit_node(self, node): argument
203 node: self.init_state(node) for node in self.graph.index.values()
206 node: self.init_state(node) for node in self.graph.index.values()
209 def can_ignore(self, node): argument
[all …]

12345678910>>...214