Home
last modified time | relevance | path

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

12345678910>>...22

/external/tensorflow/tensorflow/contrib/eager/python/
Dsaver.py96 setattr(resource_variable_ops.ResourceVariable, "_init_from_args",
98 setattr(resource_variable_ops.ResourceVariable, "_old_init", old_init)
99 setattr(resource_variable_ops.ResourceVariable, "_map_func",
101 setattr(resource_variable_ops.ResourceVariable, "_ckpt_var_cache",
109 setattr(resource_variable_ops.ResourceVariable, "_init_from_args",
111 setattr(resource_variable_ops.ResourceVariable, "_old_init", None)
112 setattr(resource_variable_ops.ResourceVariable, "_map_func", None)
113 setattr(resource_variable_ops.ResourceVariable, "_ckpt_var_cache", None)
/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/python/cpython2/Lib/ctypes/test/
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 …]
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_", [])
/external/python/cpython3/Lib/ctypes/test/
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 …]
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_", [])
/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/tensorflow/tensorflow/python/saved_model/
Dload.py163 node_setters[slot_variable_proto.slot_variable_node_id] = setattr
179 setattr(type(obj), "__call__", _call_attribute)
243 return _UserObject(), setattr
250 return tracking.TrackableAsset(filename), setattr
254 proto, self._concrete_functions), setattr
258 proto, self._concrete_functions), setattr
263 return variables.Variable(dummy_value, trainable=proto.trainable), setattr
269 return imported_constant, setattr
273 return _RestoredResource(), setattr
/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/autotest/site_utils/
Dtest_runner_utils_unittest.py188 setattr(job1, 'control_type', 'cLiEnT')
189 setattr(job1, 'control_file', 'c1')
190 setattr(job1, 'id', 1)
191 setattr(job1, 'name', 'gilbert')
192 setattr(job1, 'keyvals', experimental_keyval)
194 setattr(job2, 'control_type', 'Server')
195 setattr(job2, 'control_file', 'c2')
196 setattr(job2, 'id', 2)
197 setattr(job2, 'name', 'sullivan')
198 setattr(job2, 'keyvals', experimental_keyval)
/external/protobuf/python/
Dstubout.py94 setattr(orig_obj, attr_name, new_attr)
105 setattr(*args)
126 setattr(parent, child_name, new_child)
139 setattr(parent, child_name, old_child)
/external/python/apitools/apitools/base/py/
Dlist_pager.py63 setattr(request, batch_size_attribute, batch_size)
64 setattr(request, current_token_attribute, None)
81 setattr(request, current_token_attribute, token)
/external/fonttools/Lib/fontTools/mtiLib/
D__init__.py113 setReference(mapFeature, featureMap, defaultFeature, setattr, langSys, 'ReqFeatureIndex')
252 setattr(values[g], w, v)
280 setattr(vr, what, value)
331 setattr(vr, what, value)
381 setattr(record, c.MarkAnchor, anchor)
392 setattr(record, c.BaseAnchor, anchors)
452 setattr(markArray, c.MarkRecord, markRecords)
453 setattr(markArray, c.MarkCount, len(markRecords))
454 setattr(self, c.MarkCoverage, markCoverage)
455 setattr(self, c.MarkArray, markArray)
[all …]
/external/selinux/python/sepolicy/
Dsepolicy.py57 setattr(namespace, self.dest, values)
64 setattr(namespace, self.dest, values)
72 setattr(namespace, self.dest, newval)
88 setattr(namespace, self.dest, newval)
95 setattr(namespace, self.dest, newval)
107 setattr(namespace, self.dest, values)
118 setattr(namespace, self.dest, newval)
132 setattr(namespace, self.dest, values)
146 setattr(namespace, self.dest, newval)
159 setattr(namespace, self.dest, newval)
[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/tensorflow/tensorflow/tools/docs/
Ddoc_controls.py98 setattr(obj, _DO_NOT_DOC, None)
161 setattr(obj, _DO_NOT_DOC_INHERITABLE, None)
239 setattr(obj, _FOR_SUBCLASS_IMPLEMENTERS, None)
/external/python/setuptools/setuptools/
Dpy36compat.py63 setattr(self, alias, not strtobool(val))
65 setattr(self, opt, strtobool(val))
67 setattr(self, opt, val)
/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)
/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/tensorflow/tensorflow/python/platform/
Dgoogletest.py217 setattr(orig_obj, attr_name, new_attr)
229 setattr(*args)
257 setattr(parent, child_name, new_child)
271 setattr(parent, child_name, old_child)
/external/python/cpython3/Lib/test/
Dtest_uuid.py292 badtype(lambda: setattr(u, 'hex', h))
293 badtype(lambda: setattr(u, 'bytes', b))
294 badtype(lambda: setattr(u, 'bytes_le', b))
295 badtype(lambda: setattr(u, 'fields', f))
296 badtype(lambda: setattr(u, 'int', i))
297 badtype(lambda: setattr(u, 'time_low', 0))
298 badtype(lambda: setattr(u, 'time_mid', 0))
299 badtype(lambda: setattr(u, 'time_hi_version', 0))
300 badtype(lambda: setattr(u, 'time_hi_version', 0))
301 badtype(lambda: setattr(u, 'clock_seq_hi_variant', 0))
[all …]
/external/autotest/client/common_lib/
Dcontrol_data.py177 setattr(self, attr, val)
186 setattr(self, attr, val)
198 setattr(self, attr, val)
209 setattr(self, attr, val)
215 setattr(self, attr, set(items))
272 setattr(self, 'bug_template', val)
285 setattr(self, 'builds', val)

12345678910>>...22