/third_party/mindspore/tests/ut/python/nn/probability/bijector/ |
D | test_invert_bijector.py | 18 import mindspore.nn.probability.bijector as msb namespace 26 b = msb.Invert(msb.ScalarAffine(scale=1.0)) 27 assert isinstance(b, msb.Bijector) 28 b = msb.Invert(msb.Exp()) 29 assert isinstance(b, msb.Bijector) 34 msb.Invert(msb.Exp(), name=0.1) 36 msb.Invert(0.1) 39 b = msb.Invert(msb.ScalarAffine(scale=1.0)) 48 self.inv1 = msb.Invert(msb.Exp()) 49 self.inv2 = msb.Invert(msb.ScalarAffine()) [all …]
|
D | test_gumbel_cdf.py | 18 import mindspore.nn.probability.bijector as msb namespace 26 b = msb.GumbelCDF() 27 assert isinstance(b, msb.Bijector) 28 b = msb.GumbelCDF(scale=1.0) 29 assert isinstance(b, msb.Bijector) 30 b = msb.GumbelCDF(loc=0.0) 31 assert isinstance(b, msb.Bijector) 32 b = msb.GumbelCDF(3.0, 4.0) 33 assert isinstance(b, msb.Bijector) 37 msb.GumbelCDF(scale='scale') [all …]
|
D | test_scalar_affine.py | 18 import mindspore.nn.probability.bijector as msb namespace 26 b = msb.ScalarAffine() 27 assert isinstance(b, msb.Bijector) 28 b = msb.ScalarAffine(scale=1.0) 29 assert isinstance(b, msb.Bijector) 30 b = msb.ScalarAffine(shift=2.0) 31 assert isinstance(b, msb.Bijector) 32 b = msb.ScalarAffine(3.0, 4.0) 33 assert isinstance(b, msb.Bijector) 37 msb.ScalarAffine(scale='scale') [all …]
|
D | test_softplus.py | 18 import mindspore.nn.probability.bijector as msb namespace 26 b = msb.Softplus() 27 assert isinstance(b, msb.Bijector) 28 b = msb.Softplus(1.0) 29 assert isinstance(b, msb.Bijector) 33 msb.Softplus(sharpness='sharpness') 35 msb.Softplus(name=0.1) 43 self.b1 = msb.Softplus(2.0) 44 self.b2 = msb.Softplus() 66 self.b1 = msb.Softplus(2.0) [all …]
|
D | test_power_transform.py | 18 import mindspore.nn.probability.bijector as msb namespace 23 b = msb.PowerTransform() 24 assert isinstance(b, msb.Bijector) 25 b = msb.PowerTransform(1.) 26 assert isinstance(b, msb.Bijector) 30 msb.PowerTransform(power='power') 32 msb.PowerTransform(name=0.1) 40 self.b1 = msb.PowerTransform(power=0.) 41 self.b2 = msb.PowerTransform() 63 self.b1 = msb.PowerTransform(power=0.) [all …]
|
D | test_exp.py | 18 import mindspore.nn.probability.bijector as msb namespace 23 b = msb.Exp() 24 assert isinstance(b, msb.Bijector) 28 msb.Exp(name=0.1) 36 self.b1 = msb.Exp() 37 self.b2 = msb.Exp() 59 self.b1 = msb.Exp() 60 self.b2 = msb.Exp()
|
D | test_bijector.py | 20 import mindspore.nn.probability.bijector as msb namespace 24 class MyBijector(msb.Bijector): 50 class MySecondBijector(msb.Bijector): 95 assert isinstance(bijector, msb.Bijector) 99 assert isinstance(bijector, msb.Bijector) 101 assert isinstance(bijector, msb.Bijector) 130 assert isinstance(bijector, msb.Bijector) 134 assert isinstance(bijector, msb.Bijector)
|
/third_party/mindspore/tests/st/probability/bijector/ |
D | test_invert.py | 19 import mindspore.nn.probability.bijector as msb namespace 31 self.origin = msb.ScalarAffine(scale=2.0, shift=1.0) 32 self.invert = msb.Invert(self.origin) 50 self.origin = msb.ScalarAffine(scale=2.0, shift=1.0) 51 self.invert = msb.Invert(self.origin) 69 self.origin = msb.ScalarAffine(scale=2.0, shift=1.0) 70 self.invert = msb.Invert(self.origin) 89 self.origin = msb.ScalarAffine(scale=2.0, shift=1.0) 90 self.invert = msb.Invert(self.origin)
|
D | test_scalar_affine.py | 19 import mindspore.nn.probability.bijector as msb namespace 31 self.bijector = msb.ScalarAffine(scale=2.0, shift=1.0) 50 self.bijector = msb.ScalarAffine(shift=1.0, scale=2.0) 69 self.bijector = msb.ScalarAffine(shift=1.0, scale=2.0) 88 self.bijector = msb.ScalarAffine(shift=1.0, scale=2.0)
|
D | test_exp.py | 19 import mindspore.nn.probability.bijector as msb namespace 31 self.bijector = msb.Exp() 52 self.bijector = msb.Exp() 73 self.bijector = msb.Exp() 93 self.bijector = msb.Exp()
|
D | test_softplus.py | 19 import mindspore.nn.probability.bijector as msb namespace 31 self.bijector = msb.Softplus(sharpness=2.0) 50 self.bijector = msb.Softplus(sharpness=2.0) 69 self.bijector = msb.Softplus(sharpness=2.0) 88 self.bijector = msb.Softplus(sharpness=2.0)
|
D | test_power_transform.py | 19 import mindspore.nn.probability.bijector as msb namespace 31 self.bijector = msb.PowerTransform(power=power) 53 self.bijector = msb.PowerTransform(power=power) 75 self.bijector = msb.PowerTransform(power=power) 96 self.bijector = msb.PowerTransform(power=power)
|
D | test_gumbel_cdf.py | 19 import mindspore.nn.probability.bijector as msb namespace 31 self.bijector = msb.GumbelCDF(loc, scale) 52 self.bijector = msb.GumbelCDF(loc, scale) 73 self.bijector = msb.GumbelCDF(loc, scale) 95 self.bijector = msb.GumbelCDF(loc, scale)
|
/third_party/python/Include/internal/ |
D | pycore_bitutils.h | 150 unsigned long msb; in _Py_bit_length() 151 if (_BitScanReverse(&msb, x)) { in _Py_bit_length() 152 return (int)msb + 1; in _Py_bit_length() 162 int msb = 0; in _Py_bit_length() 164 msb += 6; in _Py_bit_length() 167 msb += BIT_LENGTH_TABLE[x]; in _Py_bit_length() 168 return msb; in _Py_bit_length()
|
/third_party/mbedtls/tests/src/ |
D | asn1_helpers.c | 36 unsigned char msb; in mbedtls_test_asn1_skip_integer() local 56 msb = ( *p )[0]; in mbedtls_test_asn1_skip_integer() 57 TEST_ASSERT( msb != 0 ); in mbedtls_test_asn1_skip_integer() 59 while( msb != 0 ) in mbedtls_test_asn1_skip_integer() 61 msb >>= 1; in mbedtls_test_asn1_skip_integer()
|
/third_party/python/Lib/idlelib/ |
D | statusbar.py | 32 msb = MultiStatusBar(frame) 33 msb.set_label("one", "hello") 34 msb.set_label("two", "world") 35 msb.pack(side='bottom', fill='x') 38 msb.set_label("one", "foo") 39 msb.set_label("two", "bar")
|
/third_party/boost/libs/statechart/example/BitMachine/ |
D | BitMachine.cpp | 185 void VisitAllStates( BitMachine & bitMachine, unsigned int msb ) in VisitAllStates() argument 187 if ( msb > 0 ) in VisitAllStates() 189 VisitAllStates( bitMachine, msb - 1 ); in VisitAllStates() 192 bitMachine.process_event( *pFlipBitEvents[ msb ] ); in VisitAllStates() 195 if ( msb > 0 ) in VisitAllStates() 197 VisitAllStates( bitMachine, msb - 1 ); in VisitAllStates()
|
/third_party/musl/src/math/ |
D | __fpclassifyl.c | 13 int msb = u.i.m>>63; in __fpclassifyl() local 14 if (!e && !msb) in __fpclassifyl() 22 if (__BYTE_ORDER == __LITTLE_ENDIAN && !msb) in __fpclassifyl() 26 if (!msb) in __fpclassifyl()
|
/third_party/musl/porting/liteos_a/kernel/src/math/ |
D | __fpclassifyl.c | 13 int msb = u.i.m>>63; in __fpclassifyl() local 14 if (!e && !msb) in __fpclassifyl() 22 if (__BYTE_ORDER == __LITTLE_ENDIAN && !msb) in __fpclassifyl() 26 if (!msb) in __fpclassifyl()
|
/third_party/musl/porting/liteos_m/kernel/src/math/ |
D | __fpclassifyl.c | 13 int msb = u.i.m>>63; in __fpclassifyl() local 14 if (!e && !msb) in __fpclassifyl() 22 if (__BYTE_ORDER == __LITTLE_ENDIAN && !msb) in __fpclassifyl() 26 if (!msb) in __fpclassifyl()
|
/third_party/musl/porting/uniproton/kernel/src/math/ |
D | __fpclassifyl.c | 13 int msb = u.i.m>>63; in __fpclassifyl() local 14 if (!e && !msb) in __fpclassifyl() 22 if (__BYTE_ORDER == __LITTLE_ENDIAN && !msb) in __fpclassifyl() 26 if (!msb) in __fpclassifyl()
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_pack.c | 415 LLVMValueRef msb; in lp_build_unpack2() local 425 …msb = LLVMBuildAShr(builder, src, lp_build_const_int_vec(gallivm, src_type, src_type.width - 1), "… in lp_build_unpack2() 429 msb = lp_build_zero(gallivm, src_type); in lp_build_unpack2() 433 *dst_lo = lp_build_interleave2(gallivm, src_type, src, msb, 0); in lp_build_unpack2() 434 *dst_hi = lp_build_interleave2(gallivm, src_type, src, msb, 1); in lp_build_unpack2() 437 *dst_lo = lp_build_interleave2(gallivm, src_type, msb, src, 0); in lp_build_unpack2() 438 *dst_hi = lp_build_interleave2(gallivm, src_type, msb, src, 1); in lp_build_unpack2() 468 LLVMValueRef msb; in lp_build_unpack2_native() local 478 msb = LLVMBuildAShr(builder, src, in lp_build_unpack2_native() 483 msb = lp_build_zero(gallivm, src_type); in lp_build_unpack2_native() [all …]
|
/third_party/mesa3d/src/amd/addrlib/src/r800/ |
D | ciaddrlib.cpp | 103 UINT_32 msb, ///< Most signicant bit in GetBits() argument 108 if (msb >= lsb) in GetBits() 110 ret = (bits >> lsb) & (Mask(1 + msb - lsb)); in GetBits() 127 UINT_32 msb, ///< Most signicant bit in RemoveBits() argument 132 if (msb >= lsb) in RemoveBits() 135 | (GetBits(bits, 8 * sizeof(bits) - 1, msb + 1) << lsb); //high bits in RemoveBits() 153 UINT_32 msb, ///< Most signicant bit in InsertBits() argument 158 if (msb >= lsb) in InsertBits() 161 | (GetBits(newBits, msb - lsb, 0) << lsb) //new bits in InsertBits() 162 | (GetBits(bits, 8 * sizeof(bits) - 1, lsb) << (msb + 1)); //old high bits in InsertBits() [all …]
|
/third_party/glslang/Test/ |
D | spv.Operations.frag | 101 uvec4 msb; 103 umulExtended(uuv4.xyz, uuv4.xyz, msb.xyz, lsb.xyz); 104 u += msb.x + msb.y + msb.z;
|
/third_party/gettext/gettext-tools/src/ |
D | x-javascript.c | 1244 struct mixed_string_buffer msb; in phase5_get() local 1248 mixed_string_buffer_init (&msb, lexical_context, in phase5_get() 1255 msb.line_number = line_number; in phase5_get() 1264 mixed_string_buffer_append_unicode (&msb, in phase5_get() 1268 mixed_string_buffer_append_char (&msb, uc); in phase5_get() 1270 tp->mixed_string = mixed_string_buffer_result (&msb); in phase5_get() 1280 struct mixed_string_buffer msb; in phase5_get() local 1284 mixed_string_buffer_init (&msb, lexical_context, in phase5_get() 1291 msb.line_number = line_number; in phase5_get() 1295 tp->mixed_string = mixed_string_buffer_result (&msb); in phase5_get() [all …]
|