Home
last modified time | relevance | path

Searched refs:setattr (Results 1 – 25 of 637) sorted by relevance

12345678910>>...26

/external/tensorflow/tensorflow/
Dcompat_template.__init__.py41 setattr(_current_module, "summary", summary)
53 setattr(_current_module, "estimator", estimator)
59 setattr(_current_module, "keras", keras)
78 setattr(_current_module, "enable_v2_behavior", enable_v2_behavior)
86 setattr(_current_module, "losses", losses)
87 setattr(_current_module, "metrics", metrics)
88 setattr(_current_module, "optimizers", optimizers)
89 setattr(_current_module, "initializers", initializers)
Dapi_template.__init__.py74 setattr(_current_module, "summary", summary)
85 setattr(_current_module, "estimator", estimator)
91 setattr(_current_module, "keras", keras)
158 setattr(_current_module, "losses", losses)
159 setattr(_current_module, "metrics", metrics)
160 setattr(_current_module, "optimizers", optimizers)
161 setattr(_current_module, "initializers", initializers)
Dcompat_template_v1.__init__.py43 setattr(_current_module, "estimator", estimator)
49 setattr(_current_module, "keras", keras)
64 setattr(_current_module, "flags", flags)
/external/tensorflow/tensorflow/tools/docs/
Ddoc_controls.py31 setattr(obj, _DEPRECATED, None)
112 setattr(obj, _DO_NOT_DOC, None)
175 setattr(obj, _DO_NOT_DOC_INHERITABLE, None)
253 setattr(obj, _FOR_SUBCLASS_IMPLEMENTERS, None)
287 setattr(obj, _DOC_PRIVATE, None)
352 setattr(obj, _DOC_IN_CURRENT_AND_SUBCLASSES, None)
/external/python/cpython2/Lib/ctypes/test/
Dtest_struct_fields.py20 self.assertRaises(AttributeError, setattr, X, "_fields_", [])
25 self.assertRaises(AttributeError, setattr, X, "_fields_", [])
31 self.assertRaises(AttributeError, setattr, X, "_fields_", [])
38 self.assertRaises(AttributeError, setattr, X, "_fields_", [])
45 self.assertRaises(AttributeError, setattr, X, "_fields_", [])
47 self.assertRaises(AttributeError, setattr, X, "_fields_", [])
Dtest_strings.py26 self.assertRaises(ValueError, setattr, buf, "value", "aaaaaaaa")
27 self.assertRaises(TypeError, setattr, buf, "value", 42)
35 self.assertRaises(TypeError, setattr, buf, "value", memoryview("Hello, World"))
36 self.assertRaises(TypeError, setattr, buf, "value", memoryview("abc"))
37 self.assertRaises(ValueError, setattr, buf, "raw", memoryview("x" * 100))
44 self.assertRaises(TypeError, setattr, buf, "value", memoryview("abc"))
45 self.assertRaises(ValueError, setattr, buf, "raw", memoryview("x" * 100))
141 self.assertRaises(ValueError, setattr, cs, "value", "123456789012345")
144 self.assertRaises(ValueError, setattr, cs, "value", "1234567")
189 self.assertRaises(ValueError, setattr, cs, "value", u"123456789012345")
[all …]
/external/python/cpython3/Lib/ctypes/test/
Dtest_struct_fields.py20 self.assertRaises(AttributeError, setattr, X, "_fields_", [])
25 self.assertRaises(AttributeError, setattr, X, "_fields_", [])
31 self.assertRaises(AttributeError, setattr, X, "_fields_", [])
38 self.assertRaises(AttributeError, setattr, X, "_fields_", [])
45 self.assertRaises(AttributeError, setattr, X, "_fields_", [])
47 self.assertRaises(AttributeError, setattr, X, "_fields_", [])
Dtest_strings.py25 self.assertRaises(ValueError, setattr, buf, "value", b"aaaaaaaa")
26 self.assertRaises(TypeError, setattr, buf, "value", 42)
34 self.assertRaises(TypeError, setattr, buf, "value", memoryview(b"Hello, World"))
35 self.assertRaises(TypeError, setattr, buf, "value", memoryview(b"abc"))
36 self.assertRaises(ValueError, setattr, buf, "raw", memoryview(b"x" * 100))
43 self.assertRaises(TypeError, setattr, buf, "value", memoryview(b"abc"))
44 self.assertRaises(ValueError, setattr, buf, "raw", memoryview(b"x" * 100))
148 self.assertRaises(ValueError, setattr, cs, "value", "123456789012345")
151 self.assertRaises(ValueError, setattr, cs, "value", "1234567")
196 self.assertRaises(ValueError, setattr, cs, "value", "123456789012345")
[all …]
/external/selinux/python/sepolgen/src/share/
Dperm_map2 # file maps object permissions (read, getattr, setattr, ..., etc.)
136 setattr w 7
161 setattr w 1
184 setattr w 1
207 setattr w 7
227 setattr w 7
247 setattr w 7
267 setattr w 7
287 setattr w 7
315 setattr w 7
[all …]
/external/selinux/python/sepolgen/tests/
Dperm_map2 # file maps object permissions (read, getattr, setattr, ..., etc.)
136 setattr w 7
160 setattr w 7
182 setattr w 7
204 setattr w 7
223 setattr w 7
242 setattr w 7
261 setattr w 7
280 setattr w 7
308 setattr w 7
[all …]
/external/tensorflow/tensorflow/python/profiler/
Dprofile_context.py345 setattr(session.BaseSession, 'run', _profiled_run)
346 setattr(session.BaseSession, '__init__', _profiled_init)
347 setattr(session.BaseSession, '_profiler_run_internal', self.old_run)
348 setattr(session.BaseSession, '_profiler_init_internal', self.old_init)
349 setattr(session.BaseSession, 'profile_context', self)
358 setattr(session.BaseSession, 'run', self.old_run)
359 setattr(session.BaseSession, '__init__', self.old_init)
360 setattr(session.BaseSession, '_profiler_run_internal', None)
361 setattr(session.BaseSession, '_profiler_init_internal', None)
362 setattr(session.BaseSession, 'profile_context', None)
/external/protobuf/python/
Dstubout.py97 setattr(orig_obj, attr_name, new_attr)
108 setattr(*args)
129 setattr(parent, child_name, new_child)
142 setattr(parent, child_name, old_child)
/external/python/pyfakefs/pyfakefs/
Dmox3_stubout.py108 setattr(orig_obj, attr_name, new_attr)
120 setattr(*args)
146 setattr(parent, child_name, new_child)
161 setattr(parent, child_name, old_child)
/external/python/cpython2/Lib/test/
Dtest_uuid.py269 badtype(lambda: setattr(u, 'hex', h))
270 badtype(lambda: setattr(u, 'bytes', b))
271 badtype(lambda: setattr(u, 'bytes_le', b))
272 badtype(lambda: setattr(u, 'fields', f))
273 badtype(lambda: setattr(u, 'int', i))
274 badtype(lambda: setattr(u, 'time_low', 0))
275 badtype(lambda: setattr(u, 'time_mid', 0))
276 badtype(lambda: setattr(u, 'time_hi_version', 0))
277 badtype(lambda: setattr(u, 'time_hi_version', 0))
278 badtype(lambda: setattr(u, 'clock_seq_hi_variant', 0))
[all …]
/external/python/cpython2/Lib/email/
D__init__.py115 setattr(sys.modules['email'], _name, importer)
122 setattr(sys.modules['email'], 'MIME' + _name, importer)
123 setattr(sys.modules['email.mime'], _name, importer)
/external/python/apitools/apitools/base/py/
Dlist_pager.py55 return setattr(message, attribute, value)
59 return setattr(message, attribute[0], value)
61 return setattr(_GetattrNested(message, attribute[:-1]),
/external/python/setuptools/setuptools/
Dpy36compat.py63 setattr(self, alias, not strtobool(val))
65 setattr(self, opt, strtobool(val))
67 setattr(self, opt, val)
/external/fonttools/Lib/fontTools/mtiLib/
D__init__.py110 setReference(mapFeature, featureMap, defaultFeature, setattr, langSys, 'ReqFeatureIndex')
249 setattr(values[g], w, v)
277 setattr(vr, what, value)
328 setattr(vr, what, value)
378 setattr(record, c.MarkAnchor, anchor)
389 setattr(record, c.BaseAnchor, anchors)
449 setattr(markArray, c.MarkRecord, markRecords)
450 setattr(markArray, c.MarkCount, len(markRecords))
451 setattr(self, c.MarkCoverage, markCoverage)
452 setattr(self, c.MarkArray, markArray)
[all …]
/external/selinux/python/sepolicy/
Dsepolicy.py58 setattr(namespace, self.dest, values)
65 setattr(namespace, self.dest, values)
73 setattr(namespace, self.dest, newval)
89 setattr(namespace, self.dest, newval)
96 setattr(namespace, self.dest, newval)
108 setattr(namespace, self.dest, values)
119 setattr(namespace, self.dest, newval)
133 setattr(namespace, self.dest, values)
147 setattr(namespace, self.dest, newval)
160 setattr(namespace, self.dest, newval)
[all …]
/external/python/setuptools/setuptools/tests/
Dfixtures.py13 monkeypatch.setattr('site.USER_BASE', user_base)
15 monkeypatch.setattr('site.USER_SITE', user_site)
/external/tensorflow/tensorflow/python/platform/
Dgoogletest.py219 setattr(orig_obj, attr_name, new_attr)
231 setattr(*args)
259 setattr(parent, child_name, new_child)
273 setattr(parent, child_name, old_child)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py3/
Dcommands.py112 setattr(self, opt_name, default)
135 setattr(self, opt_name, default)
158 setattr(self, opt_name, default)
186 setattr(self, opt_name, default)
256 setattr(self, opt_name, default)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py3/
Dcommands.py112 setattr(self, opt_name, default)
135 setattr(self, opt_name, default)
158 setattr(self, opt_name, default)
186 setattr(self, opt_name, default)
256 setattr(self, opt_name, default)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py2/
Dcommands.py113 setattr(self, opt_name, default)
136 setattr(self, opt_name, default)
159 setattr(self, opt_name, default)
187 setattr(self, opt_name, default)
257 setattr(self, opt_name, default)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py2/
Dcommands.py113 setattr(self, opt_name, default)
136 setattr(self, opt_name, default)
159 setattr(self, opt_name, default)
187 setattr(self, opt_name, default)
257 setattr(self, opt_name, default)

12345678910>>...26