Home
last modified time | relevance | path

Searched refs:mg (Results 1 – 25 of 390) sorted by relevance

12345678910>>...16

/external/apache-commons-bcel/src/test/java/org/apache/bcel/
DPLSETestCase.java45 final MethodGen mg = new MethodGen(m, gen.getClassName(), pool); in testB208() local
46 mg.setInstructionList(null); in testB208()
47 mg.addLocalVariable("local2", Type.INT, null, null); in testB208()
49 mg.getLocalVariableTable(pool); in testB208()
64 final MethodGen mg = new MethodGen(m, gen.getClassName(), pool); in testB79() local
65 final LocalVariableTable new_lvt = mg.getLocalVariableTable(mg.getConstantPool()); in testB79()
80 final MethodGen mg = new MethodGen(m, gen.getClassName(), pool); in testB262() local
81 final InstructionList il = mg.getInstructionList(); in testB262()
103 final MethodGen mg = new MethodGen(m, cg.getClassName(), pool); in testB295() local
104 final LocalVariableTable new_lvt = mg.getLocalVariableTable(mg.getConstantPool()); in testB295()
DBCELBenchmark.java110 MethodGen mg = new MethodGen(m, cg.getClassName(), cg.getConstantPool());
111 InstructionList il = mg.getInstructionList();
114 mg.getInstructionList().setPositions();
115 mg.setMaxLocals();
116 mg.setMaxStack();
118 cg.replaceMethod(m, mg.getMethod());
DPerformanceTest.java102 … final MethodGen mg = new MethodGen(m, cg.getClassName(), cg.getConstantPool()); in test() local
103 final InstructionList il = mg.getInstructionList(); in test()
108 mg.getInstructionList().setPositions(); in test()
109 mg.setMaxLocals(); in test()
110 mg.setMaxStack(); in test()
112 cg.replaceMethod(m, mg.getMethod()); in test()
/external/apache-commons-bcel/src/examples/
Dmaxstack.java46 MethodGen mg = new MethodGen(m, class_name, cp); in main() local
48 int compiled_stack = mg.getMaxStack(); in main()
49 int compiled_locals = mg.getMaxLocals(); in main()
50 mg.setMaxStack(); // Recompute value in main()
51 mg.setMaxLocals(); in main()
52 int computed_stack = mg.getMaxStack(); in main()
53 int computed_locals = mg.getMaxLocals(); in main()
55 mg.getInstructionList().dispose(); // Reuse instruction handles in main()
DPeephole.java48 MethodGen mg = new MethodGen(methods[i], clazz.getClassName(), cp); in main() local
49 Method stripped = removeNOPs(mg); in main()
65 private static Method removeNOPs(MethodGen mg) { in removeNOPs() argument
66 InstructionList il = mg.getInstructionList(); in removeNOPs()
99 … System.out.println("Removed " + count + " NOP instructions from method " + mg.getName()); in removeNOPs()
100 m = mg.getMethod(); in removeNOPs()
DProxyCreator.java95 MethodGen mg = new MethodGen(Constants.ACC_PUBLIC, Type.VOID, in main() local
113 mg.stripAttributes(true); in main()
114 mg.setMaxStack(); in main()
115 mg.setMaxLocals(); in main()
116 cg.addMethod(mg.getMethod()); in main()
DHelloWorldBuilder.java71 MethodGen mg = new MethodGen(Constants.ACC_STATIC | in main() local
101 …LocalVariableGen lg = mg.addLocalVariable("in", new ObjectType("java.io.BufferedReader"), null, nu… in main()
106 lg = mg.addLocalVariable("name", Type.STRING, null, null); in main()
137 mg.addExceptionHandler(try_start, try_end, handler, new ObjectType("java.io.IOException")); in main()
167 mg.setMaxStack(5); // Needed stack size in main()
168 cg.addMethod(mg.getMethod()); in main()
Dhelloify.java109 MethodGen mg = new MethodGen(m, class_name, cp); in helloifyMethod() local
110 InstructionList il = mg.getInstructionList(); in helloifyMethod()
126 mg.setMaxStack(2); in helloifyMethod()
129 m = mg.getMethod(); in helloifyMethod()
/external/tensorflow/tensorflow/python/grappler/
Ddatasets_test.py55 mg = meta_graph.create_meta_graph_def(graph=g)
56 grappler_item = item.Item(mg)
80 mg = meta_graph.create_meta_graph_def(graph=g)
81 grappler_item = item.Item(mg)
116 mg = meta_graph.create_meta_graph_def(graph=g)
117 grappler_item = item.Item(mg)
129 mg = meta_graph.create_meta_graph_def(graph=g)
130 grappler_item = item.Item(mg)
156 mg = meta_graph.create_meta_graph_def(graph=g)
157 grappler_item = item.Item(mg)
[all …]
Ditem_test.py43 mg = meta_graph.create_meta_graph_def(graph=g)
48 item.Item(mg)
57 mg = meta_graph.create_meta_graph_def(graph=g)
58 grappler_item = item.Item(mg)
70 mg = meta_graph.create_meta_graph_def(graph=g)
71 grappler_item = item.Item(mg)
92 mg = meta_graph.create_meta_graph_def(graph=g)
93 grappler_item = item.Item(mg)
120 mg = meta_graph.create_meta_graph_def(graph=g)
121 grappler_item = item.Item(mg)
Dcluster_test.py41 mg = meta_graph.create_meta_graph_def(graph=g)
42 grappler_item = item.Item(mg)
58 mg = meta_graph.create_meta_graph_def(graph=g)
59 grappler_item = item.Item(mg)
76 mg = meta_graph.create_meta_graph_def(graph=g)
77 grappler_item = item.Item(mg)
96 mg = meta_graph.create_meta_graph_def(graph=g)
97 grappler_item = item.Item(mg)
123 mg = meta_graph.create_meta_graph_def(graph=g)
124 grappler_item = item.Item(mg)
[all …]
Dtf_optimizer_test.py49 mg = meta_graph.create_meta_graph_def(graph=ops.get_default_graph())
56 graph = tf_optimizer.OptimizeGraph(config, mg)
78 mg = meta_graph.create_meta_graph_def(graph=g)
82 optimized_graph = tf_optimizer.OptimizeGraph(config, mg)
123 mg = meta_graph.create_meta_graph_def(graph=g)
127 optimized_graph = tf_optimizer.OptimizeGraph(config, mg)
128 mg.graph_def.CopyFrom(optimized_graph)
131 item = gitem.Item(mg)
Dcost_analyzer_test.py50 mg = meta_graph.create_meta_graph_def(graph=ops.get_default_graph())
52 report = cost_analyzer.GenerateCostReport(mg, per_node_report=True)
75 mg = meta_graph.create_meta_graph_def(graph=ops.get_default_graph())
78 mg, per_node_report=True, verbose=True)
106 mg = meta_graph.create_meta_graph_def(graph=ops.get_default_graph())
107 report = cost_analyzer.GenerateCostReport(mg)
145 mg = meta_graph.create_meta_graph_def(graph=ops.get_default_graph())
147 report = cost_analyzer.GenerateMemoryReport(mg)
Dmodel_analyzer_test.py41 mg = meta_graph.create_meta_graph_def(graph=ops.get_default_graph())
43 report = model_analyzer.GenerateModelReport(mg)
62 mg = meta_graph.create_meta_graph_def(graph=ops.get_default_graph())
64 report = model_analyzer.GenerateModelReport(mg, debug=True)
/external/apache-commons-bcel/src/test/java/org/apache/bcel/generic/
DMethodGenTestCase.java67 final MethodGen mg = getMethod(Foo.class, "bar"); in testRemoveLocalVariable() local
69 final LocalVariableGen lv = mg.getLocalVariables()[1]; in testRemoveLocalVariable()
79 mg.removeLocalVariable(lv); in testRemoveLocalVariable()
88 final MethodGen mg = getMethod(Foo.class, "bar"); in testRemoveLocalVariables() local
90 final LocalVariableGen lv = mg.getLocalVariables()[1]; in testRemoveLocalVariables()
100 mg.removeLocalVariables(); in testRemoveLocalVariables()
111 … final MethodGen mg = new MethodGen(cg.getMethodAt(0), cg.getClassName(), cg.getConstantPool()); in testAnnotationsAreUnpacked() local
112 final List<AnnotationEntryGen> firstParamAnnotations = mg.getAnnotationsOnParameter(0); in testAnnotationsAreUnpacked()
114 final List<AnnotationEntryGen> secondParamAnnotations = mg.getAnnotationsOnParameter(1); in testAnnotationsAreUnpacked()
DGeneratingAnnotatedClassesTestCase.java142 final MethodGen mg = new MethodGen(m[0], cg2.getClassName(), cg2 in testGenerateMethodLevelAnnotations1() local
145 i = mg.getAnnotationEntries().length; in testGenerateMethodLevelAnnotations1()
418 final MethodGen mg = createMethodGen("main", il, cp); in buildClassContentsWithAnnotatedMethods() local
420 mg.addAnnotationEntry(createSimpleVisibleAnnotation(mg in buildClassContentsWithAnnotatedMethods()
440 LocalVariableGen lg = mg.addLocalVariable("in", new ObjectType( in buildClassContentsWithAnnotatedMethods()
445 lg = mg.addLocalVariable("name", Type.STRING, null, null); in buildClassContentsWithAnnotatedMethods()
467 final LocalVariableGen var_ex = mg.addLocalVariable("ex", Type in buildClassContentsWithAnnotatedMethods()
473 mg.addExceptionHandler(try_start, try_end, handler, new ObjectType( in buildClassContentsWithAnnotatedMethods()
503 mg.setMaxStack(); in buildClassContentsWithAnnotatedMethods()
504 mg.setMaxLocals(); in buildClassContentsWithAnnotatedMethods()
[all …]
/external/tensorflow/tensorflow/python/keras/optimizer_v2/
Drmsprop.py185 mg = self.get_slot(var, "mg")
188 mg=mg.handle,
214 mg = self.get_slot(var, "mg")
215 mg_t = coefficients["rho"] * mg + coefficients["one_minus_rho"] * grad
216 mg_t = state_ops.assign(mg, mg_t, use_locking=self._use_locking)
231 mg = self.get_slot(var, "mg")
234 mg=mg.handle,
265 mg = self.get_slot(var, "mg")
267 mg_t = state_ops.assign(mg, mg * coefficients["rho"],
270 mg_t = self._resource_scatter_add(mg, indices, mg_scaled_g_values)
/external/apache-commons-bcel/src/main/java/org/apache/bcel/verifier/structurals/
DPass3bVerifier.java344 … final MethodGen mg = new MethodGen(methods[method_no], myOwner.getClassName(), constantPoolGen); in do_verify() local
346 icv.setMethodGen(mg); in do_verify()
349 if (! (mg.isAbstract() || mg.isNative()) ) { // IF mg HAS CODE (See pass 2) in do_verify()
351 final ControlFlowGraph cfg = new ControlFlowGraph(mg); in do_verify()
354 final Frame f = new Frame(mg.getMaxLocals(),mg.getMaxStack()); in do_verify()
355 if ( !mg.isStatic() ) { in do_verify()
356 if (mg.getName().equals(Const.CONSTRUCTOR_NAME)) { in do_verify()
365 final Type[] argtypes = mg.getArgumentTypes(); in do_verify()
372 f.getLocals().set(twoslotoffset + j + (mg.isStatic()?0:1), argtypes[j]); in do_verify()
375 f.getLocals().set(twoslotoffset + j + (mg.isStatic()?0:1), Type.UNKNOWN); in do_verify()
[all …]
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_ResourceApplyCenteredRMSProp.pbtxt10 name: "mg"
60 If `True`, updating of the var, mg, ms, and mom tensors is
72 Note that in dense implementation of this algorithm, mg, ms, and mom will
73 update even if the grad is zero, but in this sparse implementation, mg, ms,
81 mg <- rho * mg_{t-1} + (1-rho) * grad
83 mom <- momentum * mom_{t-1} + lr * grad / sqrt(ms - mg * mg + epsilon)
Dapi_def_ApplyCenteredRMSProp.pbtxt10 name: "mg"
66 If `True`, updating of the var, mg, ms, and mom tensors is
78 Note that in dense implementation of this algorithm, mg, ms, and mom will
79 update even if the grad is zero, but in this sparse implementation, mg, ms,
87 mg <- rho * mg_{t-1} + (1-rho) * grad
89 mom <- momentum * mom_{t-1} + lr * grad / sqrt(ms - mg * mg + epsilon)
Dapi_def_ResourceSparseApplyCenteredRMSProp.pbtxt10 name: "mg"
60 If `True`, updating of the var, mg, ms, and mom tensors is
72 Note that in dense implementation of this algorithm, mg, ms, and mom will
73 update even if the grad is zero, but in this sparse implementation, mg, ms,
/external/pdfium/core/fxcodec/jbig2/
DJBig2_HtrdProc.cpp24 for (uint32_t mg = 0; mg < HGH; ++mg) { in DecodeArith() local
26 int32_t x = (HGX + mg * HRY + ng * HRX) >> 8; in DecodeArith()
27 int32_t y = (HGY + mg * HRX - ng * HRY) >> 8; in DecodeArith()
30 HSKIP->SetPixel(ng, mg, 1); in DecodeArith()
32 HSKIP->SetPixel(ng, mg, 0); in DecodeArith()
/external/autotest/client/tests/npb/
Dcontrol21 # mg.A mg.B mg.S mg.W
/external/tensorflow/tensorflow/python/training/
Drmsprop.py148 mg = self.get_slot(var, "mg")
151 mg,
176 mg = self.get_slot(var, "mg")
179 mg.handle,
204 mg = self.get_slot(var, "mg")
207 mg,
234 mg = self.get_slot(var, "mg")
237 mg.handle,
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v1/
DLoadTPUEmbeddingCenteredRMSPropParameters.pbtxt16 name: "mg"
60 name: "mg"
111 name: "mg"

12345678910>>...16