Home
last modified time | relevance | path

Searched refs:models (Results 1 – 25 of 533) sorted by relevance

12345678910>>...22

/external/autotest/frontend/tko/
Drpc_interface.py3 from django.db import models as dbmodels
6 from autotest_lib.frontend.afe import models as afe_models, readonly_connection
7 from autotest_lib.frontend.tko import models, tko_rpc_utils
15 models.TestView.list_objects(filter_data))
19 return models.TestView.query_count(filter_data)
47 query = models.TestView.objects.get_query_set_with_joins(filter_data)
49 query = models.TestView.query_objects(filter_data, initial_query=query,
51 count_alias, count_sql = models.TestView.objects.get_count_sql(query)
55 query = models.TestView.apply_presentation(query, filter_data)
68 query = models.TestView.objects.get_query_set_with_joins(filter_data)
[all …]
Dmodels_test.py9 from autotest_lib.frontend.tko import models
16 self.machine1 = models.Machine.objects.create(hostname='myhost')
17 self.good_status = models.Status.objects.create(word='GOOD')
19 self.kernel1 = models.Kernel.objects.create(kernel_hash=kernel_name,
22 self.job1 = models.Job.objects.create(
26 self.job1_test1 = models.Test.objects.create(
38 models.Test.objects.populate_relationships(
39 [test], models.TestAttribute, 'attribute_list')
/external/autotest/frontend/afe/
Dmodels_test.py10 from autotest_lib.frontend.afe import models, model_logic
31 everyone_acl = models.AclGroup.objects.get(name='Everyone')
38 models.AclGroup.on_host_membership_change()
55 models.Host.objects.populate_relationships(
56 [host], models.HostAttribute, 'attribute_list')
61 previous_config = models.RESPECT_STATIC_ATTRIBUTES
62 models.RESPECT_STATIC_ATTRIBUTES = False
63 host1 = models.Host.objects.create(hostname='test_host1')
73 models.RESPECT_STATIC_ATTRIBUTES = previous_config
77 previous_config = models.RESPECT_STATIC_ATTRIBUTES
[all …]
Drpc_interface_unittest.py18 from autotest_lib.frontend.afe import models
33 _hqe_status = models.HostQueueEntry.Status
96 return models.Job.objects.get(id=job_id)
101 label2 = models.Label.objects.create(name='bluetooth', platform=False)
111 host2 = models.Host.objects.create(hostname='test_host2', leased=False)
121 host2 = models.Host.objects.create(hostname='test_host2', leased=False)
126 self.mox.StubOutWithMock(models.Host, '_assign_to_shard_nothing_helper')
130 models.Host._assign_to_shard_nothing_helper().WithSideEffects(
136 host2 = models.Host.smart_get(host2.id)
144 leased_host = models.Host.objects.create(hostname='leased_host',
[all …]
Drpc_interface.py45 from django.db.models import Count
57 from autotest_lib.frontend.afe import models
59 from autotest_lib.frontend.tko import models as tko_models
104 label_model = models.Label.smart_get(id)
124 label_model = models.Label.smart_get(id)
135 hosts.append(models.Host.smart_get(h.id))
159 label = models.Label.add_object(name=name, **kwargs)
181 label = models.Label.smart_get(id)
183 label = models.StaticLabel.smart_get(label.name)
185 host_objs = models.Host.smart_get_bulk(hosts)
[all …]
Dfrontend_test_utils.py6 from autotest_lib.frontend.afe import models, model_attributes
14 if models.DroneSet.drone_sets_enabled():
15 models.DroneSet.objects.create(
16 name=models.DroneSet.default_drone_set_name())
18 acl_group = models.AclGroup.objects.create(name='my_acl')
19 acl_group.users.add(models.User.current_user())
21 self.hosts = [models.Host.objects.create(hostname=hostname)
27 models.AclGroup.smart_get('Everyone').hosts = []
29 self.labels = [models.Label.objects.create(name=name) for name in
33 platform = models.Label.objects.create(name='myplatform', platform=True)
[all …]
Dadmin.py11 from autotest_lib.frontend.afe import model_logic, models
43 model = models.AtomicGroup
52 return models.AtomicGroup.valid_objects
54 admin.site.register(models.AtomicGroup, AtomicGroupAdmin)
59 model = models.Label
69 return models.Label.valid_objects
71 admin.site.register(models.Label, LabelAdmin)
78 admin.site.register(models.User, UserAdmin)
95 label_names =(models.Label.objects.filter(id__in=value)
119 label_ids = (models.Label.objects.filter(name__in=label_names)
[all …]
Drpc_utils.py20 from autotest_lib.frontend.afe import models, model_logic
131 % models.HostQueueEntry.Status.QUEUED)
191 initial_query = models.Host.valid_objects.all()
193 initial_query = models.Host.objects.all()
196 hosts = models.Host.get_hosts_with_labels(
201 return models.Host.query_objects(filter_data, initial_query=hosts)
202 except models.Label.DoesNotExist:
203 return models.Host.objects.none()
256 test_objects = [models.Test.smart_get(test) for test in tests]
260 profiler_objects = [models.Profiler.smart_get(profiler)
[all …]
/external/tensorflow/tensorflow/lite/g3doc/guide/
Dhosted_models.md1 # Hosted models
3 The following is an incomplete list of pre-trained models optimized to work with
6 To get started choosing a model, visit <a href="../models">Models</a>.
11 models to find the optimal balance between size, performance, and accuracy.
18 ### Quantized models
21 classification models offer the smallest model size and fastest performance, at
26 …rxiv.org/pdf/1712.05877.pdf), [tflite&pb](http://download.tensorflow.org/models/mobilenet_v1_2018_…
27 …rxiv.org/pdf/1712.05877.pdf), [tflite&pb](http://download.tensorflow.org/models/mobilenet_v1_2018_…
28 …rxiv.org/pdf/1712.05877.pdf), [tflite&pb](http://download.tensorflow.org/models/mobilenet_v1_2018_…
29 …rxiv.org/pdf/1712.05877.pdf), [tflite&pb](http://download.tensorflow.org/models/mobilenet_v1_2018_…
[all …]
/external/autotest/venv/lucifer/
Dhandlers.py65 models = autotest.load('frontend.afe.models')
67 status=models.HostQueueEntry.Status.RUNNING,
71 models = autotest.load('frontend.afe.models')
73 status=models.HostQueueEntry.Status.GATHERING)
76 models = autotest.load('frontend.afe.models')
78 status=models.HostQueueEntry.Status.PARSING)
98 models = autotest.load('frontend.afe.models')
99 host = models.Host.objects.get(hostname=msg)
100 host.status = models.Host.Status.RUNNING
106 models = autotest.load('frontend.afe.models')
[all …]
Dhandoffs.py32 models = autotest.load('frontend.afe.models')
38 return (models.JobHandoff.objects
51 models = autotest.load('frontend.afe.models')
53 hqes = models.HostQueueEntry.objects.filter(job_id__in=job_ids)
63 models = autotest.load('frontend.afe.models')
67 status=models.HostQueueEntry.Status.FAILED)
73 models = autotest.load('frontend.afe.models')
77 id for id in (models.HostQueueEntry.objects
82 (models.Host.objects
85 .update(status=models.Host.Status.READY))
[all …]
/external/autotest/scheduler/
Dprejob_task.py61 from autotest_lib.frontend.afe import models
86 models.SpecialTask.objects.filter(
91 previous_provisions = models.SpecialTask.objects.filter(
92 task=models.SpecialTask.Task.PROVISION,
119 previous_repairs = models.SpecialTask.objects.filter(
120 task=models.SpecialTask.Task.REPAIR,
124 self.host.set_status(models.Host.Status.REPAIR_FAILED)
128 queue_entry = models.HostQueueEntry.objects.get(
133 models.SpecialTask.objects.create(
134 host=models.Host.objects.get(id=self.host.id),
[all …]
Drdb_testing_utils.py16 from autotest_lib.frontend.afe import models
76 return models.Label.objects.filter(**kwargs)
82 return models.AclGroup.objects.filter(**kwargs)
88 return models.Host.objects.filter(**kwargs)
93 return models.HostQueueEntry.objects.filter(**kwargs)
98 return models.SpecialTask.objects.filter(**kwargs)
103 return models.Shard.objects.filter(**kwargs)
109 return (models.Label.add_object(name=name, **kwargs)
115 user = models.User.objects.filter(login=name)
116 return models.User.add_object(login=name) if not user else user[0]
[all …]
Dmonitor_db.py26 from autotest_lib.frontend.afe import models
81 if (models.DroneSet.drone_sets_enabled() and
82 not models.DroneSet.default_drone_set_name()):
186 models.User.current_user()
518 return bool(models.SpecialTask.objects.filter(host__id=host.id,
557 statuses = (models.HostQueueEntry.Status.STARTING,
558 models.HostQueueEntry.Status.RUNNING,
559 models.HostQueueEntry.Status.GATHERING,
560 models.HostQueueEntry.Status.PARSING)
604 special_tasks = models.SpecialTask.objects.filter(
[all …]
Dpostjob_task.py14 from autotest_lib.frontend.afe import models, model_attributes
83 return models.HostQueueEntry.Status.ABORTED
87 return models.HostQueueEntry.Status.COMPLETED
88 return models.HostQueueEntry.Status.FAILED
260 allowed_hqe_statuses=(models.HostQueueEntry.Status.GATHERING,),
261 allowed_host_statuses=(models.Host.Status.RUNNING,))
291 models.HostQueueEntry.Status.COMPLETED)
311 self._final_status() == models.HostQueueEntry.Status.ABORTED
321 models.SpecialTask.objects.create(
322 host=models.Host.objects.get(id=queue_entry.host.id),
[all …]
Dquery_managers.py18 from autotest_lib.frontend.afe import models
130 queued_tasks = models.SpecialTask.objects.filter(is_active=False,
135 queued_tasks = models.SpecialTask.objects.add_join(
147 task_priority_order = [models.SpecialTask.Task.REPAIR,
148 models.SpecialTask.Task.CLEANUP,
149 models.SpecialTask.Task.VERIFY,
150 models.SpecialTask.Task.RESET,
151 models.SpecialTask.Task.PROVISION]
168 hqe_hosts = list(models.HostQueueEntry.objects.filter(
171 special_task_hosts = list(models.SpecialTask.objects.filter(
[all …]
Dmonitor_db_cleanup.py9 from autotest_lib.frontend.afe import models
81 query = models.Job.objects.filter(hostqueueentry__complete=False).extra(
105 query = models.HostQueueEntry.objects.filter(
185 model_pairs = ((models.Host, 'labels', models.Label, 'host_set'),
186 (models.AclGroup, 'hosts', models.Host, 'aclgroup_set'),
187 (models.AclGroup, 'users', models.User, 'aclgroup_set'),
188 (models.Test, 'dependency_labels', models.Label,
233 hosts = models.Host.objects.filter(
234 status=models.Host.Status.REPAIR_FAILED,
253 models.SpecialTask.schedule_special_task(
[all …]
/external/tensorflow/tensorflow/python/keras/
Dkeras_parameterized_test.py37 models = []
47 models.append(testing_utils.get_small_mlp(1, 4, input_dim=3))
62 self.assertTrue(models[0]._is_graph_network)
63 self.assertFalse(models[1]._is_graph_network)
64 self.assertNotIsInstance(models[0], keras.models.Sequential)
65 self.assertNotIsInstance(models[1], keras.models.Sequential)
66 self.assertIsInstance(models[2], keras.models.Sequential)
76 models = []
90 models.append(testing_utils.get_small_mlp(1, 4, input_dim=3))
111 self.assertTrue(models[0]._is_graph_network)
[all …]
Dmodels_test.py35 from tensorflow.python.keras import models
107 keras.models._clone_sequential_model, share_weights=True)
109 clone_fn = keras.models.clone_model
112 model = models.Sequential(_get_layers(input_shape, add_input_layer))
154 keras.models._clone_functional_model, share_weights=True)
156 clone_fn = keras.models.clone_model
173 model = keras.models.Model([input_a, input_b], outputs)
186 new_model = keras.models.clone_model(
215 keras.models._clone_functional_model, share_weights=True)
217 clone_fn = keras.models.clone_model
[all …]
/external/autotest/scheduler/shard/
Dshard_client_integration_tests.py14 from autotest_lib.frontend.afe import models
73 models.HostQueueEntry.objects.filter(id=hqe.id).update(
106 models.Host.objects.all().delete()
107 models.Host.deserialize(serialized_host)
108 models.Host.objects.get(hostname='test_host')
119 models.User.deserialize(serialized_user)
120 models.User.objects.get(id=3, login='test_user')
124 models.User.deserialize(serialized_user)
125 models.User.objects.get(id=3, login='fake_user')
130 models.User.objects.all().delete()
[all …]
/external/tensorflow/
DWORKSPACE108 build_file = "//:models.BUILD",
111 "http://storage.googleapis.com/download.tensorflow.org/models/inception_v1.zip",
112 "http://download.tensorflow.org/models/inception_v1.zip",
118 build_file = "//:models.BUILD",
121 …"http://storage.googleapis.com/download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_an…
122 … "http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip",
128 build_file = "//:models.BUILD",
131 "http://storage.googleapis.com/download.tensorflow.org/models/mobile_multibox_v1a.zip",
132 "http://download.tensorflow.org/models/mobile_multibox_v1a.zip",
138 build_file = "//:models.BUILD",
[all …]
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_mode_setting.cpp239 const auto* models = _.GetExecutionModels(entry_point_id); in ValidateExecutionMode() local
248 if (!std::all_of(models->begin(), models->end(), in ValidateExecutionMode()
258 if (!std::all_of(models->begin(), models->end(), in ValidateExecutionMode()
290 models->begin(), models->end(), in ValidateExecutionMode()
301 if (!std::all_of(models->begin(), models->end(), in ValidateExecutionMode()
318 if (!std::all_of(models->begin(), models->end(), in ValidateExecutionMode()
349 if (!std::all_of(models->begin(), models->end(), in ValidateExecutionMode()
362 if (!std::all_of(models->begin(), models->end(), in ValidateExecutionMode()
373 if (!std::all_of(models->begin(), models->end(), in ValidateExecutionMode()
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_mode_setting.cpp239 const auto* models = _.GetExecutionModels(entry_point_id); in ValidateExecutionMode() local
248 if (!std::all_of(models->begin(), models->end(), in ValidateExecutionMode()
258 if (!std::all_of(models->begin(), models->end(), in ValidateExecutionMode()
290 models->begin(), models->end(), in ValidateExecutionMode()
301 if (!std::all_of(models->begin(), models->end(), in ValidateExecutionMode()
318 if (!std::all_of(models->begin(), models->end(), in ValidateExecutionMode()
349 if (!std::all_of(models->begin(), models->end(), in ValidateExecutionMode()
362 if (!std::all_of(models->begin(), models->end(), in ValidateExecutionMode()
373 if (!std::all_of(models->begin(), models->end(), in ValidateExecutionMode()
/external/tensorflow/tensorflow/contrib/keras/api/keras/models/
D__init__.py21 from tensorflow.python.keras.models import load_model
22 from tensorflow.python.keras.models import Model
23 from tensorflow.python.keras.models import model_from_config
24 from tensorflow.python.keras.models import model_from_json
25 from tensorflow.python.keras.models import model_from_yaml
26 from tensorflow.python.keras.models import save_model
27 from tensorflow.python.keras.models import Sequential
/external/tensorflow/tensorflow/lite/examples/android/app/
Ddownload-models.gradle2 * download-models.gradle
12 def models = ['https://storage.googleapis.com/download.tensorflow.org/models/tflite/conv_actions_tf…
13 …'https://storage.googleapis.com/download.tensorflow.org/models/tflite/mobilenet_ssd_tflite_v1.zip',
14 …'https://storage.googleapis.com/download.tensorflow.org/models/tflite/coco_ssd_mobilenet_v1_1.0_qu…
15 … 'http://download.tensorflow.org/models/mobilenet_v1_2018_02_22/mobilenet_v1_1.0_224.tgz',
16 … 'http://download.tensorflow.org/models/mobilenet_v1_2018_08_02/mobilenet_v1_1.0_224_quant.tgz']
19 def MODEL_URL = 'https://storage.googleapis.com/download.tensorflow.org/models/tflite'
32 for (modelUrl in models) {
43 for (f in models) {
58 for (f in models) {

12345678910>>...22