Home
last modified time | relevance | path

Searched refs:namedtuple (Results 1 – 25 of 433) sorted by relevance

12345678910>>...18

/external/tensorflow/tensorflow/contrib/gan/python/
Dnamedtuples.py42 collections.namedtuple('GANModel', (
81 collections.namedtuple('InfoGANModel', GANModel._fields + (
103 collections.namedtuple('ACGANModel', GANModel._fields +
121 collections.namedtuple(
140 collections.namedtuple('StarGANModel', (
188 collections.namedtuple('GANLoss', (
201 collections.namedtuple('CycleGANLoss', ('loss_x2y', 'loss_y2x'))):
213 collections.namedtuple('GANTrainOps', (
238 collections.namedtuple('GANTrainSteps', (
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_pyparse.py5 from collections import namedtuple
135 TestInfo = namedtuple('TestInfo', ['string', 'goodlines',
185 TestInfo = namedtuple('TestInfo', ['string', 'continuation'])
205 TestInfo = namedtuple('TestInfo', ['string', 'start', 'end', 'lastch',
266 TestInfo = namedtuple('TestInfo', ['string', 'lines'])
294 TestInfo = namedtuple('TestInfo', ['string', 'spaces'])
337 TestInfo = namedtuple('TestInfo', ('string', 'spaces'))
365 TestInfo = namedtuple('TestInfo', ['string', 'indent'])
387 TestInfo = namedtuple('TestInfo', ['string', 'assert_'])
415 TestInfo = namedtuple('TestInfo', ['string', 'assert_'])
[all …]
/external/python/cpython3/Doc/library/
Dsndhdr.rst21 :func:`~collections.namedtuple`, containing five attributes: (``filetype``,
36 :func:`whathdr`. If it succeeds, returns a namedtuple as described above, otherwise
40 Result changed from a tuple to a namedtuple.
46 The name of the file is given by *filename*. This function returns a namedtuple as
50 Result changed from a tuple to a namedtuple.
/external/python/cpython2/Lib/test/
Dtest_collections.py15 from collections import namedtuple, Counter, OrderedDict
25 TestNT = namedtuple('TestNT', 'x y z') # type used for pickle tests
67 Point = namedtuple('Point', 'x y')
74 self.assertRaises(ValueError, namedtuple, 'abc%', 'efg ghi') # type has non-alpha char
75 self.assertRaises(ValueError, namedtuple, 'class', 'efg ghi') # type has keyword
76 self.assertRaises(ValueError, namedtuple, '9abc', 'efg ghi') # type starts with digit
78 … self.assertRaises(ValueError, namedtuple, 'abc', 'efg g%hi') # field with non-alpha char
79 self.assertRaises(ValueError, namedtuple, 'abc', 'abc class') # field has keyword
80 self.assertRaises(ValueError, namedtuple, 'abc', '8efg 9ghi') # field starts with digit
81 … self.assertRaises(ValueError, namedtuple, 'abc', '_efg ghi') # field with leading underscore
[all …]
/external/python/cpython3/Lib/test/
Dtest_collections.py17 from collections import namedtuple, Counter, OrderedDict, _count_elements
217 TestNT = namedtuple('TestNT', 'x y z') # type used for pickle tests
222 Point = namedtuple('Point', 'x y')
229 self.assertRaises(ValueError, namedtuple, 'abc%', 'efg ghi') # type has non-alpha char
230 self.assertRaises(ValueError, namedtuple, 'class', 'efg ghi') # type has keyword
231 self.assertRaises(ValueError, namedtuple, '9abc', 'efg ghi') # type starts with digit
233 … self.assertRaises(ValueError, namedtuple, 'abc', 'efg g%hi') # field with non-alpha char
234 self.assertRaises(ValueError, namedtuple, 'abc', 'abc class') # field has keyword
235 self.assertRaises(ValueError, namedtuple, 'abc', '8efg 9ghi') # field starts with digit
236 … self.assertRaises(ValueError, namedtuple, 'abc', '_efg ghi') # field with leading underscore
[all …]
/external/tensorflow/tensorflow/contrib/recurrent/python/kernel_tests/
Drecurrent_test.py38 _ElmanState = collections.namedtuple('ElmanState', ('h'))
39 _ElmanTheta = collections.namedtuple('ElmanTheta', ('w', 'b'))
40 _ElmanInputs = collections.namedtuple('ElmanInputs', ('x'))
48 _PolyState = collections.namedtuple('PolyState', ('value', 'x_power'))
49 _PolyTheta = collections.namedtuple('PolyTheta', ('x'))
50 _PolyInputs = collections.namedtuple('PolyInputs', ('coeff'))
/external/autotest/client/cros/image_comparison/
Dcomparison_result.py5 from collections import namedtuple
9 ComparisonResult = namedtuple('ComparisonResult',
/external/tensorflow/tensorflow/python/util/
Dnest_test.py59 PointXY = collections.namedtuple("Point", ["x", "y"]) # pylint: disable=invalid-name
153 Abc = collections.namedtuple("A", ("b", "c")) # pylint: disable=invalid-name
270 Named0ab = collections.namedtuple("named_0", ("a", "b"))
271 Named1ab = collections.namedtuple("named_1", ("a", "b"))
272 SameNameab = collections.namedtuple("same_name", ("a", "b"))
273 SameNameab2 = collections.namedtuple("same_name", ("a", "b"))
274 SameNamexy = collections.namedtuple("same_name", ("x", "y"))
275 SameName1xy = collections.namedtuple("same_name_1", ("x", "y"))
276 SameName1xy2 = collections.namedtuple("same_name_1", ("x", "y"))
277 NotSameName = collections.namedtuple("not_same_name", ("a", "b"))
[all …]
/external/autotest/client/site_tests/security_SysVIPC/
Dsecurity_SysVIPC.py9 from collections import namedtuple
14 ShmRecord = namedtuple('ShmRecord', ['owner', 'perms', 'attached'])
15 SemaphoreRecord = namedtuple('SemaphoreRecord', ['owner', 'perms'])
/external/autotest/client/common_lib/cros/network/
Dwifi_rack_constants.py5 from collections import namedtuple
12 NetworkServices = namedtuple('NetworkServices',
/external/grpc-grpc/src/python/grpcio/grpc/framework/interfaces/base/
Dutilities.py22 collections.namedtuple('_Completion', (
31 collections.namedtuple('_Subscription', (
/external/grpc-grpc/tools/codegen/core/
Dgen_settings_ids.py23 Setting = collections.namedtuple('Setting', 'id default min max on_error')
24 OnError = collections.namedtuple('OnError', 'behavior code')
27 DecoratedSetting = collections.namedtuple('DecoratedSetting',
/external/swiftshader/third_party/subzero/pydir/
Dtargets.py3 from collections import namedtuple
22 TargetInfo = namedtuple('TargetInfo',
/external/autotest/server/site_tests/brillo_HWRandom/
Dbrillo_HWRandom.py19 TestInfo = collections.namedtuple('TestInfo', 'number custom_args')
22 TestResult = collections.namedtuple('TestResult', 'test_name assessment')
25 TestSuiteResult = collections.namedtuple('TestSuiteResult',
/external/autotest/client/site_tests/graphics_WebGLAquarium/
Dsystem_sampler.py23 Sample = collections.namedtuple(
29 VMStat = collections.namedtuple('VMStat', ['pswpin', 'pswpout'])
76 mem_info = collections.namedtuple('MemInfo', mem_info_in_kb._fields)(
/external/tensorflow/tensorflow/python/training/
Dsession_run_hook.py191 collections.namedtuple("SessionRunArgs",
268 collections.namedtuple("SessionRunValues",
/external/chromium-trace/catapult/devil/devil/utils/
Dgeometry.py10 class Point(collections.namedtuple('Point', ['x', 'y'])):
41 collections.namedtuple('Rectangle', ['top_left', 'bottom_right'])):
/external/tensorflow/tensorflow/python/autograph/pyct/
Dorigin_info.py37 collections.namedtuple('LineLocation', ('filename', 'lineno'))):
48 collections.namedtuple('Location', ('filename', 'lineno', 'col_offset'))):
64 collections.namedtuple(
/external/python/cpython2/Lib/
Dcollections.py305 def namedtuple(typename, field_names, verbose=False, rename=False): function
712 Point = namedtuple('Point', 'x, y', True)
717 class Point(namedtuple('Point', 'x y')):
728 class Point(namedtuple('Point', 'x y')):
737 Point3D = namedtuple('Point3D', Point._fields + ('z',))
741 TestResults = namedtuple('TestResults', 'failed attempted')
Dsched.py32 from collections import namedtuple
36 Event = namedtuple('Event', 'time, priority, action, argument')
/external/python/cpython3/Doc/includes/
Ddbpickle.py6 from collections import namedtuple
9 MemoRecord = namedtuple("MemoRecord", "key, task")
/external/toolchain-utils/automation/clients/report/dejagnu/
Dmanifest.py7 from collections import namedtuple
14 class Manifest(namedtuple('Manifest', 'tool board results')):
/external/tensorflow/tensorflow/contrib/gan/python/losses/python/
Dtuple_losses_impl.py112 def _asdict(namedtuple): argument
125 return {k: getattr(namedtuple, k) for k in namedtuple._fields}
/external/tensorflow/tensorflow/python/data/util/
Dnest_test.py42 point = collections.namedtuple("Point", ["x", "y"])
92 named_tuple = collections.namedtuple("A", ("b", "c"))
196 named_type_0 = collections.namedtuple("named_0", ("a", "b"))
197 named_type_1 = collections.namedtuple("named_1", ("a", "b"))
414 ab_tuple = collections.namedtuple("ab_tuple", "a, b")
415 op_tuple = collections.namedtuple("op_tuple", "add, mul")
/external/tensorflow/tensorflow/contrib/solvers/python/ops/
Dutil.py32 linear_operator = collections.namedtuple(
51 linear_operator = collections.namedtuple(

12345678910>>...18