Home
last modified time | relevance | path

Searched refs:_convert (Results 1 – 20 of 20) sorted by relevance

/external/python/cpython3/Lib/
Dast.py51 def _convert(node): function
59 return tuple(map(_convert, node.elts))
61 return list(map(_convert, node.elts))
63 return set(map(_convert, node.elts))
65 return dict((_convert(k), _convert(v)) for k, v
70 operand = _convert(node.operand)
77 left = _convert(node.left)
78 right = _convert(node.right)
85 return _convert(node_or_string)
Daifc.py310 self._convert = None
438 if self._convert and data:
439 data = self._convert(data)
490 self._convert = self._adpcm2lin
492 self._convert = self._ulaw2lin
494 self._convert = self._alaw2lin
575 self._convert = None
724 if self._convert:
725 data = self._convert(data)
752 self._convert = None
[all …]
Dsignal.py8 _IntEnum._convert(
15 _IntEnum._convert(
20 _IntEnum._convert(
Dstatistics.py233 def _convert(value, T): function
314 return _convert(total/n, T)
360 return _convert(n/total, T)
590 return _convert(ss/(n-1), T)
638 return _convert(ss/n, T)
Dwave.py126 self._convert = None
245 if self._convert and data:
246 data = self._convert(data)
305 self._convert = None
418 if self._convert:
419 data = self._convert(data)
Dsocket.py73 IntEnum._convert(
78 IntEnum._convert(
83 IntFlag._convert(
88 IntFlag._convert(
Dssl.py122 _IntEnum._convert(
127 _IntFlag._convert(
132 _IntEnum._convert(
137 _IntEnum._convert(
142 _IntFlag._convert(
147 _IntEnum._convert(
Dfunctools.py178 _convert = { variable
196 roots = [op for op in _convert if getattr(cls, op, None) is not getattr(object, op, None)]
200 for opname, opfunc in _convert[root]:
Denum.py603 def _convert(cls, name, module, filter, source=None): member in Enum
/external/python/cpython2/Lib/
Dast.py52 def _convert(node): function
58 return tuple(map(_convert, node.elts))
60 return list(map(_convert, node.elts))
62 return dict((_convert(k), _convert(v)) for k, v
80 return _convert(node_or_string)
Daifc.py294 self._convert = None
425 if self._convert and data:
426 data = self._convert(data)
485 self._convert = self._adpcm2lin
495 self._convert = self._ulaw2lin
508 self._convert = self._decomp_data
584 self._convert = None
724 if self._convert:
725 data = self._convert(data)
755 self._convert = None
[all …]
Dwave.py127 self._convert = None
259 if self._convert and data:
260 data = self._convert(data)
319 self._convert = None
424 if self._convert:
425 data = self._convert(data)
/external/autotest/client/cros/power/
Dpower_dashboard.py112 def _convert(self): member in BaseDashboard
126 raw_measurement = self._convert()
138 def _convert(self): member in MeasurementLoggerDashboard
/external/tensorflow/tensorflow/python/client/
Ddevice_lib.py31 def _convert(pb_str): function
36 return [_convert(s) for s in pywrap_tensorflow.list_devices()]
/external/tensorflow/tensorflow/python/ops/
Dscript_ops.py94 def _convert(value, dtype=None): member in FuncRegistry
152 return [self._convert(x) for x in ret]
154 return self._convert(ret)
Dimage_ops_test.py2991 def _convert(self, original, original_dtype, output_dtype, expected): member in ConvertImageTest
3020 self._convert([0, 255], dtypes.uint8, dtypes.int16, [0, 255 * 128])
3021 self._convert([0, 32767], dtypes.int16, dtypes.uint8, [0, 255])
3022 self._convert([0, 2**32], dtypes.int64, dtypes.int32, [0, 1])
3023 self._convert([0, 1], dtypes.int32, dtypes.int64, [0, 2**32])
3028 self._convert([-1.0, 0, 1.0, 200000], dtypes.float32, dtypes.float64,
3030 self._convert([-1.0, 0, 1.0, 200000], dtypes.float64, dtypes.float32,
3036 self._convert([0, 1, 255], dtypes.uint8, dtypes.float32,
3038 self._convert([0, 1.1 / 255.0, 1], dtypes.float32, dtypes.uint8,
3044 self._convert([0, 255 * 256], dtypes.uint16, dtypes.uint8, [0, 255])
[all …]
/external/python/cpython3/Lib/test/
Dtest_statistics.py937 x = statistics._convert(Fraction(71), int)
940 x = statistics._convert(Fraction(17), MyInt)
945 x = statistics._convert(Fraction(95, 99), Fraction)
950 x = statistics._convert(Fraction(71, 13), MyFraction)
955 x = statistics._convert(Fraction(-1, 2), float)
960 x = statistics._convert(Fraction(9, 8), MyFloat)
965 x = statistics._convert(Fraction(1, 40), Decimal)
970 x = statistics._convert(Fraction(-15, 16), MyDecimal)
976 x = statistics._convert(inf, type(inf))
981 x = statistics._convert(nan, type(nan))
Dtest_enum.py2570 test_type = enum.IntEnum._convert(
2580 test_type = enum.IntEnum._convert(
/external/libcap/contrib/
Dpcaps4server331 ${j}_convert
353 ${i}_convert
/external/tensorflow/tensorflow/python/data/ops/
Ddataset_ops.py377 script_ops.FuncRegistry._convert(ret, dtype=dtype.as_numpy_dtype)