Home
last modified time | relevance | path

Searched refs:device_policy (Results 1 – 21 of 21) sorted by relevance

/external/tensorflow/tensorflow/python/framework/
Dconfig.py168 device_policy = context.context().device_policy
169 if device_policy == context.DEVICE_PLACEMENT_SILENT:
171 elif device_policy == context.DEVICE_PLACEMENT_SILENT_FOR_INT32:
173 elif device_policy == context.DEVICE_PLACEMENT_WARN:
175 elif device_policy == context.DEVICE_PLACEMENT_EXPLICIT:
178 raise ValueError('Not a valid device policy: %r' % device_policy)
182 def set_device_policy(device_policy): argument
210 if device_policy == 'silent':
211 context.context().device_policy = context.DEVICE_PLACEMENT_SILENT
212 elif device_policy == 'silent_for_int32':
[all …]
Dconfig_test.py51 context.context().device_policy)
70 context.context().device_policy)
76 context.context().device_policy)
85 context.context().device_policy)
91 context.context().device_policy)
Dops.py5646 device_policy=None, argument
5710 device_policy=device_policy,
5730 device_policy=None, argument
5754 if device_policy not in (None, context.DEVICE_PLACEMENT_EXPLICIT,
5776 device_policy=device_policy,
5780 (device_policy is not None and
5781 device_policy is not context._context._device_policy) or
5790 context._context._device_policy, device_policy,
/external/libbrillo/policy/
Dlibpolicy.cc25 PolicyProvider::PolicyProvider(std::unique_ptr<DevicePolicy> device_policy) in PolicyProvider() argument
26 : device_policy_(std::move(device_policy)), in PolicyProvider()
73 std::unique_ptr<DevicePolicy> device_policy) { in SetDevicePolicyForTesting() argument
74 device_policy_ = std::move(device_policy); in SetDevicePolicyForTesting()
Dlibpolicy.h32 explicit PolicyProvider(std::unique_ptr<DevicePolicy> device_policy);
49 std::unique_ptr<DevicePolicy> device_policy);
Ddevice_policy_impl.h100 const enterprise_management::ChromeDeviceSettingsProto& device_policy) { in set_policy_for_testing() argument
101 device_policy_ = device_policy; in set_policy_for_testing()
/external/autotest/client/site_tests/policy_WiFiPrecedence/
Dpolicy_WiFiPrecedence.py90 device_policy = {}
92 device_policy['device_policies'] = {
106 enroll=bool(device_policy),
107 **device_policy
/external/tensorflow/tensorflow/python/eager/
Dcontext.py224 device_policy=None, argument
278 if device_policy is None:
279 device_policy = DEVICE_PLACEMENT_SILENT
280 self._device_policy = device_policy
804 def device_policy(self): member in Context
811 @device_policy.setter
812 def device_policy(self, policy): member in Context
1039 def device_policy(policy): function
1042 old_policy = ctx.device_policy
1044 ctx.device_policy = policy
[all …]
Dcore_test.py268 with context.device_policy(context.DEVICE_PLACEMENT_SILENT):
/external/libbrillo/policy/tests/
Dlibpolicy_unittest.cc34 std::unique_ptr<DevicePolicyImpl> device_policy(new DevicePolicyImpl()); in CreateDevicePolicyImpl() local
35 device_policy->set_install_attributes_for_testing( in CreateDevicePolicyImpl()
37 device_policy->set_policy_path_for_testing(policy_path); in CreateDevicePolicyImpl()
38 device_policy->set_key_file_path_for_testing(keyfile_path); in CreateDevicePolicyImpl()
39 device_policy->set_verify_root_ownership_for_testing(verify_files); in CreateDevicePolicyImpl()
41 return device_policy; in CreateDevicePolicyImpl()
/external/libbrillo/
Dlibpolicy.gypi10 'policy/device_policy.h',
DAndroid.bp63 "policy/device_policy.cc",
Dlibbrillo.gypi283 'policy/device_policy.cc',
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.config.experimental.pbtxt13 argspec: "args=[\'device_policy\'], varargs=None, keywords=None, defaults=None"
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.config.experimental.pbtxt13 argspec: "args=[\'device_policy\'], varargs=None, keywords=None, defaults=None"
Dtensorflow.pbtxt1153 …argspec: "args=[\'config\', \'device_policy\', \'execution_mode\'], varargs=None, keywords=None, d…
/external/tensorflow/tensorflow/contrib/optimizer_v2/
Doptimizer_v2.py968 device_policy = context.device_policy(
970 with ops.name_scope("update_" + scope_name), device_policy:
984 with context.device_policy(context.DEVICE_PLACEMENT_SILENT):
/external/tensorflow/tensorflow/python/distribute/
Dmirrored_strategy.py553 with context.device_policy(context.DEVICE_PLACEMENT_SILENT):
875 context.device_policy(self.context_device_policy), \
Dcollective_all_reduce_strategy.py312 with context.device_policy(context.DEVICE_PLACEMENT_SILENT):
Dtpu_strategy.py431 with context.device_policy(context.DEVICE_PLACEMENT_SILENT):
Dcross_device_ops.py213 with context.device_policy(context.DEVICE_PLACEMENT_SILENT):