Home
last modified time | relevance | path

Searched refs:__name__ (Results 1 – 25 of 6068) sorted by relevance

12345678910>>...243

/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
Dresources.py26 return pkg_resources.resource_string(__name__,
31 return pkg_resources.resource_string(__name__, _PRIVATE_KEY_RESOURCE_PATH)
35 return pkg_resources.resource_string(__name__,
41 __name__, 'credentials/certificate_hierarchy_1/certs/ca.cert.pem')
46 __name__,
53 __name__,
60 __name__,
67 __name__,
74 __name__,
81 __name__, 'credentials/certificate_hierarchy_2/certs/ca.cert.pem')
[all …]
/external/tensorflow/tensorflow/python/saved_model/
Dsignature_constants.py35 ).export_constant(__name__, "DEFAULT_SERVING_SIGNATURE_DEF_KEY")
47 ]).export_constant(__name__, "CLASSIFY_INPUTS")
56 ]).export_constant(__name__, "CLASSIFY_METHOD_NAME")
65 ]).export_constant(__name__, "CLASSIFY_OUTPUT_CLASSES")
74 ]).export_constant(__name__, "CLASSIFY_OUTPUT_SCORES")
86 ]).export_constant(__name__, "PREDICT_INPUTS")
95 ]).export_constant(__name__, "PREDICT_METHOD_NAME")
104 ]).export_constant(__name__, "PREDICT_OUTPUTS")
116 ]).export_constant(__name__, "REGRESS_INPUTS")
125 ]).export_constant(__name__, "REGRESS_METHOD_NAME")
[all …]
Dconstants.py30 ]).export_constant(__name__, "ASSETS_DIRECTORY")
41 __name__, "ASSETS_KEY")
49 ]).export_constant(__name__, "LEGACY_INIT_OP_KEY")
56 __name__, "MAIN_OP_KEY")
69 ]).export_constant(__name__, "SAVED_MODEL_SCHEMA_VERSION")
78 ]).export_constant(__name__, "SAVED_MODEL_FILENAME_PB")
87 ]).export_constant(__name__, "SAVED_MODEL_FILENAME_PBTXT")
100 ]).export_constant(__name__, "VARIABLES_DIRECTORY")
109 ]).export_constant(__name__, "VARIABLES_FILENAME")
/external/python/mock/mock/tests/
Dtestwith.py21 with patch('%s.something' % __name__, sentinel.Something2):
28 with patch('%s.something' % __name__, sentinel.Something2):
39 with patch('%s.something' % __name__) as mock_something:
57 with patch('%s.something' % __name__) as mock_something:
58 with patch('%s.something_else' % __name__) as mock_something_else:
68 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
97 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
100 with patch('%s.something' % __name__) as mock_again:
110 with patch('%s.something' % __name__) as mock_something:
113 with patch('%s.something_else' % __name__) as mock_something_else:
[all …]
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestwith.py17 with patch('%s.something' % __name__, sentinel.Something2):
24 with patch('%s.something' % __name__, sentinel.Something2):
35 with patch('%s.something' % __name__) as mock_something:
53 …with patch('%s.something' % __name__) as mock_something, patch('%s.something_else' % __name__) as …
63 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
92 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
95 with patch('%s.something' % __name__) as mock_again:
105 with patch('%s.something' % __name__) as mock_something:
108 with patch('%s.something_else' % __name__) as mock_something_else:
149 with patch('%s.open' % __name__, mock, create=True) as patched:
[all …]
/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest_fromlist.py23 self.assertEqual(module.__name__, 'pkg')
30 self.assertEqual(module.__name__, 'pkg.module')
58 self.assertEqual(module.__name__, 'module')
65 self.assertEqual(module.__name__, 'module')
73 self.assertEqual(module.__name__, 'pkg')
75 self.assertEqual(module.module.__name__, 'pkg.module')
81 self.assertEqual(module.__name__, 'pkg')
101 self.assertEqual(module.__name__, 'pkg.mod')
109 self.assertEqual(module.__name__, 'pkg')
111 self.assertEqual(module.module.__name__, 'pkg.module')
[all …]
Dtest_relative_imports.py83 self.assertEqual(module.__name__, 'pkg')
96 self.assertEqual(module.__name__, 'pkg.mod2')
109 self.assertEqual(module.__name__, 'pkg')
121 self.assertEqual(module.__name__, 'pkg')
133 self.assertEqual(module.__name__, 'pkg')
149 self.assertEqual(module.__name__, 'pkg')
195 self.assertEqual(module.__name__, '__runpy_pkg__.uncle.cousin')
205 self.assertEqual(mod.__name__, 'crash.mod')
231 if __name__ == '__main__':
/external/tensorflow/tensorflow/contrib/gan/python/losses/python/
Dtuple_losses_impl.py134 arg, loss_fn.__name__))
141 'for %s: %s' % (loss_fn.__name__, ambiguous_args))
160 new_docstring = """The gan_model version of %s.""" % loss_fn.__name__
162 new_loss_fn.__name__ = loss_fn.__name__
303 new_docstring = """The stargan_model version of %s.""" % loss_fn.__name__
305 new_loss_fn.__name__ = loss_fn.__name__
329 new_docstring = """The stargan_model version of %s.""" % loss_fn.__name__
331 new_loss_fn.__name__ = loss_fn.__name__
361 new_docstring = """The stargan_model version of %s.""" % loss_fn.__name__
363 new_loss_fn.__name__ = loss_fn.__name__
/external/tensorflow/tensorflow/python/framework/
Dversions.py36 __name__, "VERSION")
42 "__git_version__"]).export_constant(__name__, "GIT_VERSION")
48 "__compiler_version__"]).export_constant(__name__, "COMPILER_VERSION")
55 "__cxx11_abi_flag__"]).export_constant(__name__, "CXX11_ABI_FLAG")
62 ]).export_constant(__name__, "MONOLITHIC_BUILD")
68 __name__, "GRAPH_DEF_VERSION")
76 ]).export_constant(__name__, "GRAPH_DEF_VERSION_MIN_CONSUMER")
84 ]).export_constant(__name__, "GRAPH_DEF_VERSION_MIN_PRODUCER")
Derrors_impl.py163 tf_export("errors.OK").export_constant(__name__, "OK")
165 tf_export("errors.CANCELLED").export_constant(__name__, "CANCELLED")
167 tf_export("errors.UNKNOWN").export_constant(__name__, "UNKNOWN")
169 tf_export("errors.INVALID_ARGUMENT").export_constant(__name__,
172 tf_export("errors.DEADLINE_EXCEEDED").export_constant(__name__,
175 tf_export("errors.NOT_FOUND").export_constant(__name__, "NOT_FOUND")
177 tf_export("errors.ALREADY_EXISTS").export_constant(__name__, "ALREADY_EXISTS")
179 tf_export("errors.PERMISSION_DENIED").export_constant(__name__,
182 tf_export("errors.UNAUTHENTICATED").export_constant(__name__, "UNAUTHENTICATED")
184 tf_export("errors.RESOURCE_EXHAUSTED").export_constant(__name__,
[all …]
Ddtypes.py323 tf_export("dtypes.resource", "resource").export_constant(__name__, "resource")
325 tf_export("dtypes.variant", "variant").export_constant(__name__, "variant")
327 tf_export("dtypes.float16", "float16").export_constant(__name__, "float16")
329 tf_export("dtypes.half", "half").export_constant(__name__, "half")
331 tf_export("dtypes.float32", "float32").export_constant(__name__, "float32")
333 tf_export("dtypes.float64", "float64").export_constant(__name__, "float64")
335 tf_export("dtypes.double", "double").export_constant(__name__, "double")
337 tf_export("dtypes.int32", "int32").export_constant(__name__, "int32")
339 tf_export("dtypes.uint8", "uint8").export_constant(__name__, "uint8")
341 tf_export("dtypes.uint16", "uint16").export_constant(__name__, "uint16")
[all …]
/external/tensorflow/tensorflow/lite/python/
Dlite_constants.py36 _tf_export(v1=["lite.constants.FLOAT"]).export_constant(__name__, "FLOAT")
37 _tf_export(v1=["lite.constants.INT32"]).export_constant(__name__, "INT32")
38 _tf_export(v1=["lite.constants.INT64"]).export_constant(__name__, "INT64")
39 _tf_export(v1=["lite.constants.STRING"]).export_constant(__name__, "STRING")
41 __name__, "QUANTIZED_UINT8")
42 _tf_export("lite.constants.TFLITE").export_constant(__name__, "TFLITE")
44 __name__, "GRAPHVIZ_DOT")
65 remove_undocumented(__name__, _allowed_symbols)
/external/fonttools/Lib/fontTools/misc/
DdictTools.py34 return "{0}({1})".format(self.__class__.__name__,
42 .format(self.__class__.__name__))
45 .format(self.__class__.__name__))
48 .format(self.__class__.__name__))
51 .format(self.__class__.__name__))
54 .format(self.__class__.__name__))
57 .format(self.__class__.__name__))
60 .format(self.__class__.__name__))
/external/python/cpython2/Lib/test/
Dtest_pkg.py107 self.assertEqual(t2.__name__, "t2")
108 self.assertEqual(t2.sub.__name__, "t2.sub")
109 self.assertEqual(t2.sub.subsub.__name__, "t2.sub.subsub")
123 self.assertEqual(sub.__name__, "t2.sub")
124 self.assertEqual(subsub.__name__, "t2.sub.subsub")
125 self.assertEqual(sub.subsub.__name__, "t2.sub.subsub")
131 self.assertEqual(t2.__name__, "t2")
132 self.assertEqual(t2.sub.__name__, "t2.sub")
133 self.assertEqual(t2.sub.subsub.__name__, "t2.sub.subsub")
153 self.assertEqual(t3.__name__, "t3")
[all …]
Dtest_module.py16 s = foo.__name__
25 self.assertEqual(foo.__name__, "foo")
32 self.assertEqual(foo.__name__, "foo")
40 self.assertEqual(foo.__name__, "foo")
51 self.assertEqual(foo.__name__, "foo")
84 if __name__ == '__main__':
/external/python/cpython3/Lib/test/
Dtest_pkg.py112 self.assertEqual(t2.__name__, "t2")
113 self.assertEqual(t2.sub.__name__, "t2.sub")
114 self.assertEqual(t2.sub.subsub.__name__, "t2.sub.subsub")
128 self.assertEqual(sub.__name__, "t2.sub")
129 self.assertEqual(subsub.__name__, "t2.sub.subsub")
130 self.assertEqual(sub.subsub.__name__, "t2.sub.subsub")
136 self.assertEqual(t2.__name__, "t2")
137 self.assertEqual(t2.sub.__name__, "t2.sub")
138 self.assertEqual(t2.sub.subsub.__name__, "t2.sub.subsub")
158 self.assertEqual(t3.__name__, "t3")
[all …]
Dtest_baseexception.py19 (ins.__class__.__name__, attr))
27 exc_set.add(object_.__name__)
68 "%s is not a subclass of %s" % (exc.__name__,
69 superclasses[-1][1].__name__))
95 [repr(exc), '%s(%r)' % (exc.__class__.__name__, arg)])
105 [repr(exc), exc.__class__.__name__ + repr(exc.args)])
113 [repr(exc), exc.__class__.__name__ + '()'])
182 if __name__ == '__main__':
Dtest_module.py13 return "<module '{}' (crafted)>".format(m.__name__)
27 s = foo.__name__
52 self.assertEqual(foo.__name__, "foo")
64 self.assertEqual(foo.__name__, "foo")
74 self.assertEqual(foo.__name__, "foo")
87 self.assertEqual(foo.__name__, "foo")
182 del m.__name__
196 del m.__name__
207 del m.__name__
219 del m.__name__
[all …]
/external/autotest/server/site_tests/firmware_Cr50PinWeaverServer/
Dfirmware_Cr50PinWeaverServer.py48 self.__class__.__name__)
71 self.__class__.__name__)
86 self.__class__.__name__)
90 self.__class__.__name__)
103 self.__class__.__name__)
106 self.__class__.__name__)
114 self.__class__.__name__)
125 self.__class__.__name__)
133 self.__class__.__name__)
/external/autotest/client/cros/cellular/pseudomodem/
Dutils.py47 func.__name__,
52 func.__name__,
62 func.__name__,
67 func.__name__,
77 return_logger('Response[%s] OK: |%s|' % (func.__name__,
80 raise_logger('Response[%s] ERROR: |%s|' % (func.__name__,
94 'of %s', return_cb_arg, func.__name__)
100 'of %s', raise_cb_arg, func.__name__)
/external/tensorflow/tensorflow/python/util/
Dserialization.py43 return {'class_name': obj.__class__.__name__, 'config': obj.get_config()}
46 if type(obj).__module__ == np.__name__:
54 return obj.__name__
57 if type(obj).__name__ == type.__name__:
58 return obj.__name__
/external/scapy/scapy/contrib/
Dlldp.py150 type(self).__name__ != LLDPDUEndOfLLDPDU.__name__:
154 format(type(self).__name__))
190 standard_frame_structure = [LLDPDUChassisID.__name__,
191 LLDPDUPortID.__name__,
192 LLDPDUTimeToLive.__name__,
194 LLDPDUEndOfLLDPDU.__name__]
227 LLDPDUEndOfLLDPDU.__name__: 1,
228 LLDPDUChassisID.__name__: 1,
229 LLDPDUPortID.__name__: 1,
230 LLDPDUTimeToLive.__name__: 1,
[all …]
/external/tensorflow/tensorflow/python/ops/distributions/
Ddistribution.py106 name=fn.__name__, argdefs=fn.__defaults__,
180 "Distribution, but saw '%s'" % (classname, base.__name__))
191 % (base.__name__, attr))
205 % (base.__name__, attr))
267 __name__, "FULLY_REPARAMETERIZED")
275 __name__, "NOT_REPARAMETERIZED")
468 non_unique_name = name or type(self).__name__
635 "batch_shape_tensor is not implemented: {}".format(type(self).__name__))
675 "event_shape_tensor is not implemented: {}".format(type(self).__name__))
737 type(self).__name__))
[all …]
/external/autotest/contrib/
Dmodelviz.py119 'name': '"%s"' % app.__name__,
126 'name': appmodel.__name__,
135 'type': type(field).__name__,
149 'target': field.rel.to.__name__,
150 'type': type(field).__name__,
200 if __name__ == "__main__":
/external/python/cpython2/Demo/metaclasses/
DTrace.py23 self.__name__ = name
76 fullname = self.__class.__name__ + "." + name
84 self.__name__ = name
94 self.__name__, self.inst, args, kw)
101 self.__name__, t, v)
106 self.__name__, rv)
143 if __name__ == '__main__':

12345678910>>...243