/third_party/mindspore/tests/vm_impl/ |
D | vm_interface.py | 25 setattr(vm, 'avg_pooling', avg_pooling) 26 setattr(vm, 'avg_pool_grad', avg_pool_grad) 27 setattr(vm, 'batch_norm', batch_norm) 28 setattr(vm, 'batch_norm_grad', batch_norm_grad) 29 setattr(vm, 'col2im', col2im) 30 setattr(vm, 'convolve', convolve) 31 setattr(vm, 'conv2d', conv2d) 32 setattr(vm, 'conv2d_backprop_filter', conv2d_backprop_filter) 33 setattr(vm, 'conv2d_backprop_input', conv2d_backprop_input) 34 setattr(vm, 'flatten', flatten) [all …]
|
/third_party/python/Lib/ctypes/test/ |
D | test_struct_fields.py | 20 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_", [])
|
D | test_strings.py | 25 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 …]
|
D | test_stringptr.py | 30 self.assertRaises(TypeError, setattr, x, "str", "Hello, World") 43 self.assertRaises(TypeError, setattr, x, b"str", b)
|
/third_party/protobuf/python/ |
D | stubout.py | 97 setattr(orig_obj, attr_name, new_attr) 108 setattr(*args) 129 setattr(parent, child_name, new_child) 142 setattr(parent, child_name, old_child)
|
/third_party/boost/boost/python/ |
D | object_protocol_core.hpp | 20 BOOST_PYTHON_DECL void setattr(object const& target, object const& key, object const& value); 27 BOOST_PYTHON_DECL void setattr(object const& target, char const* key, object const& value); 40 using api::setattr;
|
D | object_protocol.hpp | 40 void setattr(object const& target, Key const& key, Value const& value BOOST_PYTHON_NO_ARRAY_ARG(Key… in setattr() function 42 setattr(target, object(key), object(value)); in setattr()
|
D | object_attributes.hpp | 87 python::setattr(target, key, value); in set() 96 python::setattr(target, key, value); in set()
|
/third_party/boost/libs/python/src/object/ |
D | class.cpp | 623 this->setattr(name, property); in add_property() 633 this->setattr(name, property); in add_property() 643 this->setattr(name, property); in add_static_property() 652 this->setattr(name, property); in add_static_property() 655 void class_base::setattr(char const* name, object const& x) in setattr() function in boost::python::objects::class_base 678 this->setattr("__init__", object(f)); in def_no_init() 683 setattr("__safe_for_unpickling__", object(true)); in enable_pickling_() 687 setattr("__getstate_manages_dict__", object(true)); in enable_pickling_()
|
/third_party/python/Lib/test/ |
D | test_uuid.py | 298 badtype(lambda: setattr(u, 'hex', h)) 299 badtype(lambda: setattr(u, 'bytes', b)) 300 badtype(lambda: setattr(u, 'bytes_le', b)) 301 badtype(lambda: setattr(u, 'fields', f)) 302 badtype(lambda: setattr(u, 'int', i)) 303 badtype(lambda: setattr(u, 'time_low', 0)) 304 badtype(lambda: setattr(u, 'time_mid', 0)) 305 badtype(lambda: setattr(u, 'time_hi_version', 0)) 306 badtype(lambda: setattr(u, 'time_hi_version', 0)) 307 badtype(lambda: setattr(u, 'clock_seq_hi_variant', 0)) [all …]
|
D | test_structmembers.py | 37 self.assertRaises(TypeError, setattr, ts, 'T_BOOL', 1) 109 self.assertRaises(TypeError, setattr, ts, attr, nonint) 113 self.assertRaises(TypeError, setattr, ts, "T_STRING_INPLACE", "s")
|
D | test_decimal.py | 926 setattr(E, lop, lambda self, other: 'str' + lop + str(other)) 927 setattr(E, rop, lambda self, other: str(other) + rop + 'str') 2662 self.assertRaises(AttributeError, setattr, x, 'real', 100) 2663 self.assertRaises(AttributeError, setattr, x, 'imag', 100) 2664 self.assertRaises(AttributeError, setattr, x, 'conjugate', 100) 2665 self.assertRaises(AttributeError, setattr, x, '__complex__', 100) 2858 self.assertRaises(TypeError, setattr, c, 'rounding', s) 2861 self.assertRaises(TypeError, setattr, c, 'rounding', s) 4073 setattr(c, attr, 999999) 4075 self.assertRaises(ValueError, setattr, c, attr, -1) [all …]
|
/third_party/python/Lib/distutils/ |
D | dist.py | 152 setattr(self, attr, 0) 162 setattr(self, method_name, getattr(self.metadata, method_name)) 269 setattr(self.metadata, key, val) 271 setattr(self, key, val) 429 setattr(self, alias, not strtobool(val)) 431 setattr(self, opt, strtobool(val)) 433 setattr(self, opt, val) 619 setattr(self.metadata, attr, value) 904 setattr(command_obj, neg_opt[option], not strtobool(value)) 906 setattr(command_obj, option, strtobool(value)) [all …]
|
/third_party/python/PC/layout/support/ |
D | options.py | 115 setattr(ns, k2, value) 117 setattr(ns, k1, value)
|
/third_party/python/Lib/unittest/test/ |
D | test_program.py | 202 setattr(program, attr, None) 207 setattr(program, attr, false) 212 setattr(program, attr, true) 219 setattr(program, attr, None) 223 setattr(program, attr, False) 229 setattr(program, attr, True)
|
/third_party/protobuf/python/google/protobuf/internal/ |
D | keywords_test.py | 64 setattr(message, 'if', 123) 65 setattr(message, 'as', 1)
|
/third_party/selinux/libsepol/tests/policies/test-hooks/ |
D | cmp_policy.conf | 71 setattr 98 setattr 127 setattr
|
D | small-base.conf | 71 setattr 98 setattr 127 setattr
|
/third_party/mindspore/mindspore/nn/probability/transforms/ |
D | transform_bnn.py | 245 setattr(backbone, name, new_layer) 249 setattr(backbone, name, new_layer) 260 setattr(backbone, name, new_layer)
|
/third_party/python/Lib/ |
D | optparse.py | 616 setattr(self, attr, attrs[attr]) 620 setattr(self, attr, NO_DEFAULT) 622 setattr(self, attr, None) 789 setattr(values, dest, value) 791 setattr(values, dest, self.const) 793 setattr(values, dest, True) 795 setattr(values, dest, False) 801 setattr(values, dest, values.ensure_value(dest, 0) + 1) 828 setattr(self, attr, val) 854 setattr(self, attr, dval) [all …]
|
/third_party/selinux/libsepol/tests/policies/test-expander/ |
D | alias-base.conf | 71 setattr 98 setattr 127 setattr
|
D | role-base.conf | 71 setattr 98 setattr 127 setattr
|
D | user-base.conf | 71 setattr 98 setattr 127 setattr
|
/third_party/selinux/libsepol/tests/policies/test-deps/ |
D | small-base.conf | 71 setattr 98 setattr 127 setattr
|
D | base-notmetreq.conf | 70 setattr 97 setattr 126 setattr
|