Home
last modified time | relevance | path

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

12

/external/python/cpython3/Lib/
Dast.py64 def _convert(node): function
72 return tuple(map(_convert, node.elts))
74 return list(map(_convert, node.elts))
76 return set(map(_convert, node.elts))
78 return dict(zip(map(_convert, node.keys),
79 map(_convert, node.values)))
91 return _convert(node_or_string)
Dsignal.py8 _IntEnum._convert(
15 _IntEnum._convert(
20 _IntEnum._convert(
Daifc.py310 self._convert = None
439 if self._convert and data:
440 data = self._convert(data)
495 self._convert = self._adpcm2lin
497 self._convert = self._ulaw2lin
499 self._convert = self._alaw2lin
580 self._convert = None
729 if self._convert:
730 data = self._convert(data)
757 self._convert = None
[all …]
Dstatistics.py232 def _convert(value, T): function
313 return _convert(total/n, T)
359 return _convert(n/total, T)
589 return _convert(ss/(n-1), T)
637 return _convert(ss/n, T)
Dwave.py127 self._convert = None
246 if self._convert and data:
247 data = self._convert(data)
316 self._convert = None
429 if self._convert:
430 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.py171 _convert = { variable
189 roots = {op for op in _convert if getattr(cls, op, None) is not getattr(object, op, None)}
193 for opname, opfunc in _convert[root]:
Denum.py634 def _convert(cls, name, module, filter, source=None): member in Enum
/external/tensorflow/tensorflow/lite/testing/model_coverage/
Dmodel_coverage_lib.py73 def _convert(converter, **kwargs): function
282 tflite_model_float = _convert(converter, **kwargs)
291 tflite_model_quant = _convert(
342 tflite_model = _convert(converter, **kwargs)
376 tflite_model = _convert(converter, **kwargs)
410 tflite_model = _convert(converter, **kwargs)
437 tflite_model = _convert(converter, **kwargs)
/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.py296 self._convert = None
434 if self._convert and data:
435 data = self._convert(data)
494 self._convert = self._adpcm2lin
504 self._convert = self._ulaw2lin
517 self._convert = self._decomp_data
595 self._convert = None
735 if self._convert:
736 data = self._convert(data)
766 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/tensorflow/tensorflow/python/ops/
Dscript_ops.py67 def _convert(self, value, dtype): member in EagerFunc
112 array_ops.identity(self._convert(x, dtype=dtype))
119 self._convert(ret, dtype=self._out_dtypes[0]))
150 def _convert(value, dtype=None): member in FuncRegistry
215 return [self._convert(x) for x in ret]
217 return self._convert(ret)
Dimage_ops_test.py4007 def _convert(self, original, original_dtype, output_dtype, expected): member in ConvertImageTest
4038 self._convert([0, 255], dtypes.uint8, dtypes.int16, [0, 255 * 128])
4039 self._convert([0, 32767], dtypes.int16, dtypes.uint8, [0, 255])
4040 self._convert([0, 2**32], dtypes.int64, dtypes.int32, [0, 1])
4041 self._convert([0, 1], dtypes.int32, dtypes.int64, [0, 2**32])
4047 self._convert([-1.0, 0, 1.0, 200000], dtypes.float32, dtypes.float64,
4049 self._convert([-1.0, 0, 1.0, 200000], dtypes.float64, dtypes.float32,
4056 self._convert([0, 1, 255], dtypes.uint8, dtypes.float32,
4058 self._convert([0, 1.1 / 255.0, 1], dtypes.float32, dtypes.uint8,
4065 self._convert([0, 255 * 256], dtypes.uint16, dtypes.uint8, [0, 255])
[all …]
/external/tensorflow/tensorflow/python/client/
Ddevice_lib.py34 def _convert(pb_str): function
40 _convert(s)
/external/autotest/client/cros/power/
Dpower_dashboard.py260 def _convert(self): member in BaseDashboard
274 raw_measurement = self._convert()
405 def _convert(self): member in MeasurementLoggerDashboard
493 def _convert(self): member in SimplePowerLoggerDashboard
544 def _convert(self): member in CPUStatsLoggerDashboard
545 power_dict = super(CPUStatsLoggerDashboard, self)._convert()
/external/python/dateutil/dateutil/parser/
D_parser.py301 self._jump = self._convert(self.JUMP)
302 self._weekdays = self._convert(self.WEEKDAYS)
303 self._months = self._convert(self.MONTHS)
304 self._hms = self._convert(self.HMS)
305 self._ampm = self._convert(self.AMPM)
306 self._utczone = self._convert(self.UTCZONE)
307 self._pertain = self._convert(self.PERTAIN)
315 def _convert(self, lst): member in parserinfo
/external/python/cpython3/Lib/test/
Dtest_statistics.py938 x = statistics._convert(Fraction(71), int)
941 x = statistics._convert(Fraction(17), MyInt)
946 x = statistics._convert(Fraction(95, 99), Fraction)
951 x = statistics._convert(Fraction(71, 13), MyFraction)
956 x = statistics._convert(Fraction(-1, 2), float)
961 x = statistics._convert(Fraction(9, 8), MyFloat)
966 x = statistics._convert(Fraction(1, 40), Decimal)
971 x = statistics._convert(Fraction(-15, 16), MyDecimal)
977 x = statistics._convert(inf, type(inf))
982 x = statistics._convert(nan, type(nan))
Dtest_enum.py2971 test_type = enum.IntEnum._convert(
2981 test_type = enum.IntEnum._convert(
/external/autotest/server/cros/power/
Dpower_dashboard.py99 def _convert(self): member in PowerTelemetryLoggerDashboard
/external/tensorflow/tensorflow/contrib/metrics/python/ops/
Dmetric_ops.py1694 _convert = lambda tensor: math_ops.cast(tensor, out_dtype) function
1696 tp=_convert(tp),
1697 fp=_convert(fp),
1698 tn=_convert(tn),
1699 fn=_convert(fn),
1700 precision=_convert(precision),
1701 recall=_convert(recall),
1702 thresholds=_convert(math_ops.lin_space(0.0, 1.0, num_thresholds)))
/external/libcap/contrib/
Dpcaps4server331 ${j}_convert
353 ${i}_convert
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_utils.py1535 def _convert(element): function
1540 return nest.map_structure(_convert, structure)
/external/bcc/src/lua/bcc/vendor/
Dargparse.lua785 local converter = self.element._convert

12