Home
last modified time | relevance | path

Searched refs:constraints (Results 1 – 25 of 593) sorted by relevance

12345678910>>...24

/external/webrtc/sdk/
Dmedia_constraints.cc30 bool FindConstraint(const MediaConstraints* constraints, in FindConstraint() argument
35 if (!FindConstraint(constraints, key, &string_value, mandatory_constraints)) { in FindConstraint()
43 bool FindConstraint(const MediaConstraints* constraints, in FindConstraint() argument
47 if (!constraints) { in FindConstraint()
50 if (constraints->GetMandatory().FindFirst(key, value)) { in FindConstraint()
56 if (constraints->GetOptional().FindFirst(key, value)) { in FindConstraint()
62 bool FindConstraint(const MediaConstraints* constraints, in FindConstraint() argument
66 return FindConstraint<bool>(constraints, key, value, mandatory_constraints); in FindConstraint()
69 bool FindConstraint(const MediaConstraints* constraints, in FindConstraint() argument
73 return FindConstraint<int>(constraints, key, value, mandatory_constraints); in FindConstraint()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dgpu_layout_assignment.cc141 HloCustomCallInstruction* instr, LayoutConstraints* constraints) { in AddBackendConstraintsToDnnConvCustomCall() argument
189 constraints->points_to_analysis().GetBufferDefinedAt( in AddBackendConstraintsToDnnConvCustomCall()
193 TF_RETURN_IF_ERROR(constraints->SetOperandLayout(lhs_shape, instr, 0)); in AddBackendConstraintsToDnnConvCustomCall()
194 TF_RETURN_IF_ERROR(constraints->SetOperandLayout(rhs_shape, instr, 1)); in AddBackendConstraintsToDnnConvCustomCall()
196 constraints->SetBufferLayout(result_shape.layout(), *call_result_buf)); in AddBackendConstraintsToDnnConvCustomCall()
209 TF_RETURN_IF_ERROR(constraints->SetOperandLayout(*output_shape, instr, 3)); in AddBackendConstraintsToDnnConvCustomCall()
215 LayoutConstraints* constraints) { in AddBackendConstraints() argument
219 auto post_order = constraints->computation()->MakeInstructionPostOrder(); in AddBackendConstraints()
225 Cast<HloCustomCallInstruction>(instruction), constraints)); in AddBackendConstraints()
254 constraints->SetOperandLayout(op0_shape, instruction, 0)); in AddBackendConstraints()
[all …]
Dgpu_layout_assignment.h42 Status AddBackendConstraints(LayoutConstraints* constraints) override;
45 LayoutConstraints* constraints) override;
48 LayoutConstraints* constraints) override;
52 HloCustomCallInstruction* instr, LayoutConstraints* constraints);
/external/openscreen/cast/streaming/
Dcapture_recommendations.cc59 void ApplyConstraints(const Constraints& constraints, in ApplyConstraints() argument
63 if (constraints.audio.max_delay.has_value()) { in ApplyConstraints()
64 recommendations->audio.max_delay = constraints.audio.max_delay.value(); in ApplyConstraints()
66 recommendations->audio.max_channels = constraints.audio.max_channels; in ApplyConstraints()
67 recommendations->audio.max_sample_rate = constraints.audio.max_sample_rate; in ApplyConstraints()
70 std::max(constraints.audio.min_bit_rate, kDefaultAudioMinBitRate), in ApplyConstraints()
71 std::max(constraints.audio.max_bit_rate, kDefaultAudioMinBitRate)}; in ApplyConstraints()
75 if (constraints.video.max_delay.has_value()) { in ApplyConstraints()
76 recommendations->video.max_delay = constraints.video.max_delay.value(); in ApplyConstraints()
79 if (constraints.video.max_pixels_per_second.has_value()) { in ApplyConstraints()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dlayout_assignment.cc482 LayoutConstraints* constraints) { in PropagateParameterLayoutToUsers() argument
494 TF_RETURN_IF_ERROR(constraints->SetInstructionLayout( in PropagateParameterLayoutToUsers()
498 PropagateParameterLayoutToUsers(user, elem_shape, constraints)); in PropagateParameterLayoutToUsers()
500 TF_RETURN_IF_ERROR(constraints->SetOperandLayout( in PropagateParameterLayoutToUsers()
513 LayoutConstraints* constraints) { in AddMandatoryConstraints() argument
531 constraints->SetInstructionLayout(instruction->shape(), instruction)); in AddMandatoryConstraints()
535 TF_RETURN_IF_ERROR(constraints->SetOperandLayout( in AddMandatoryConstraints()
544 TF_RETURN_IF_ERROR(constraints->SetInstructionLayout( in AddMandatoryConstraints()
548 instruction, parameter_layout.shape(), constraints)); in AddMandatoryConstraints()
555 TF_RETURN_IF_ERROR(constraints->SetInstructionLayout( in AddMandatoryConstraints()
[all …]
/external/tensorflow/tensorflow/python/keras/
Dconstraints_test.py23 from tensorflow.python.keras import constraints
51 fn = constraints.get(name)
52 ref_fn = getattr(constraints, name)()
54 config = constraints.serialize(fn)
55 fn = constraints.deserialize(config)
61 norm_instance = constraints.max_norm(m)
66 norm_instance = constraints.max_norm(2.0)
75 non_neg_instance = constraints.non_neg()
80 unit_norm_instance = constraints.unit_norm()
91 norm_instance = constraints.min_max_norm(min_value=m, max_value=m * 2)
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dcluster_ops_by_policy.cc156 ValuesConstraintSet constraints = {}) in Member()
160 constraints(constraints) {}
196 ValuesConstraintSet constraints; member
302 ValuesConstraintSet constraints = members[src_root].constraints; in VerifyValueConstraints() local
303 members[dst_root].constraints.Walk([&](Value v, ValueConstraint constraint) { in VerifyValueConstraints()
305 if (op && filter(op)) constraints.Insert(v, constraint); in VerifyValueConstraints()
310 constraints, /*resolve=*/true))) { in VerifyValueConstraints()
311 members[src_root].constraints = constraints; in VerifyValueConstraints()
373 members[dst_root].constraints.MergeAll(members[src_root].constraints); in Union()
423 if (auto constraints = CanBeClustered(&op, policies, filter)) in InitializeClusteringState() local
[all …]
/external/pigweed/pw_thread/
DBUILD.bazel46 "//pw_build/constraints/rtos:embos": ["//pw_thread_embos:id"],
47 "//pw_build/constraints/rtos:freertos": ["//pw_thread_freertos:id"],
48 "//pw_build/constraints/rtos:threadx": ["//pw_thread_threadx:id"],
81 "//pw_build/constraints/rtos:embos": ["//pw_thread_embos:sleep"],
82 "//pw_build/constraints/rtos:freertos": ["//pw_thread_freertos:sleep"],
83 "//pw_build/constraints/rtos:threadx": ["//pw_thread_threadx:sleep"],
119 "//pw_build/constraints/rtos:embos": ["//pw_thread_embos:thread"],
120 "//pw_build/constraints/rtos:freertos": ["//pw_thread_freertos:thread"],
121 "//pw_build/constraints/rtos:threadx": ["//pw_thread_threadx:thread"],
161 "//pw_build/constraints/rtos:embos": ["//pw_thread_embos:yield"],
[all …]
/external/pigweed/pw_sync_freertos/
DBUILD.bazel37 "//pw_build/constraints/rtos:freertos",
54 "//pw_build/constraints/rtos:freertos",
77 "//pw_build/constraints/rtos:freertos",
95 "//pw_build/constraints/rtos:freertos",
118 "//pw_build/constraints/rtos:freertos",
130 "//pw_build/constraints/rtos:freertos",
152 "//pw_build/constraints/rtos:freertos",
167 "//pw_build/constraints/rtos:freertos",
188 "//pw_build/constraints/rtos:freertos",
204 "//pw_build/constraints/rtos:freertos",
[all …]
/external/pigweed/pw_sync/
DBUILD.bazel58 "//pw_build/constraints/rtos:embos": ["//pw_sync_embos:binary_semaphore"],
59 "//pw_build/constraints/rtos:freertos": ["//pw_sync_freertos:binary_semaphore"],
60 "//pw_build/constraints/rtos:threadx": ["//pw_sync_threadx:binary_semaphore"],
93 "//pw_build/constraints/rtos:embos": ["//pw_sync_embos:counting_semaphore"],
94 "//pw_build/constraints/rtos:freertos": ["//pw_sync_freertos:counting_semaphore"],
95 "//pw_build/constraints/rtos:threadx": ["//pw_sync_threadx:counting_semaphore"],
165 "//pw_build/constraints/rtos:embos": ["//pw_sync_embos:mutex"],
166 "//pw_build/constraints/rtos:freertos": ["//pw_sync_freertos:mutex"],
167 "//pw_build/constraints/rtos:threadx": ["//pw_sync_threadx:mutex"],
205 "//pw_build/constraints/rtos:embos": ["//pw_sync_embos:timed_mutex"],
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dcpu_layout_assignment.cc110 LayoutConstraints* constraints) { in AddBackendConstraints() argument
113 const HloComputation* computation = constraints->computation(); in AddBackendConstraints()
117 TF_RETURN_IF_ERROR(constraints->SetInstructionLayout( in AddBackendConstraints()
120 TF_RETURN_IF_ERROR(constraints->SetOperandLayout( in AddBackendConstraints()
126 TF_RETURN_IF_ERROR(constraints->SetOperandLayout( in AddBackendConstraints()
132 if (constraints->OperandLayout(instruction, operand_no) != nullptr) { in AddBackendConstraints()
136 if (constraints->AnyOperandBufferForwarded(instruction, operand_no)) { in AddBackendConstraints()
145 TF_RETURN_IF_ERROR(constraints->SetOperandLayout( in AddBackendConstraints()
/external/webrtc/sdk/objc/unittests/
DRTCPeerConnectionFactory_xctest.m35 RTC_OBJC_TYPE(RTCMediaConstraints) *constraints =
45 [factory peerConnectionWithConfiguration:config constraints:constraints delegate:nil];
74 RTC_OBJC_TYPE(RTCMediaConstraints) *constraints =
87 [factory peerConnectionWithConfiguration:config constraints:constraints delegate:nil];
118 [factory peerConnectionWithConfiguration:config constraints:contraints delegate:nil];
134 RTC_OBJC_TYPE(RTCMediaConstraints) *constraints =
145 [factory peerConnectionWithConfiguration:config constraints:constraints delegate:nil];
161 RTC_OBJC_TYPE(RTCMediaConstraints) *constraints =
174 pc1 = [factory peerConnectionWithConfiguration:config constraints:constraints delegate:nil];
177 pc2 = [factory peerConnectionWithConfiguration:config constraints:constraints delegate:nil];
DRTCMediaConstraintsTest.mm31 RTC_OBJC_TYPE(RTCMediaConstraints) *constraints =
35 [constraints nativeConstraints];
44 - (void)expectConstraints:(NSDictionary *)constraints
46 EXPECT_EQ(constraints.count, nativeConstraints.size());
48 for (NSString *key in constraints) {
49 NSString *value = [constraints objectForKey:key];
/external/tensorflow/tensorflow/cc/framework/
Dcc_ops_test.cc35 std::vector<string>* constraints) { in GetColocationConstraints() argument
36 constraints->clear(); in GetColocationConstraints()
38 constraints)); in GetColocationConstraints()
170 std::vector<string> constraints; in TEST() local
171 GetColocationConstraints(c2, &constraints); in TEST()
172 EXPECT_EQ(constraints[0], "loc:@c1"); in TEST()
175 GetColocationConstraints(c3, &constraints); in TEST()
176 EXPECT_EQ(constraints[0], "loc:@c1"); in TEST()
180 GetColocationConstraints(c4, &constraints); in TEST()
181 EXPECT_EQ(constraints[0], "loc:@a"); in TEST()
[all …]
/external/pigweed/pw_sync_embos/
DBUILD.bazel37 "//pw_build/constraints/rtos:embos",
53 "//pw_build/constraints/rtos:embos",
75 "//pw_build/constraints/rtos:embos",
91 "//pw_build/constraints/rtos:embos",
113 "//pw_build/constraints/rtos:embos",
125 "//pw_build/constraints/rtos:embos",
144 "//pw_build/constraints/rtos:embos",
160 "//pw_build/constraints/rtos:embos",
183 "//pw_build/constraints/rtos:embos",
195 "//pw_build/constraints/rtos:embos",
/external/pigweed/pw_sync_threadx/
DBUILD.bazel37 "//pw_build/constraints/rtos:threadx",
52 "//pw_build/constraints/rtos:threadx",
75 "//pw_build/constraints/rtos:threadx",
91 "//pw_build/constraints/rtos:threadx",
114 "//pw_build/constraints/rtos:threadx",
126 "//pw_build/constraints/rtos:threadx",
145 "//pw_build/constraints/rtos:threadx",
161 "//pw_build/constraints/rtos:threadx",
186 "//pw_build/constraints/rtos:threadx",
196 "//pw_build/constraints/rtos:threadx",
/external/arm-trusted-firmware/plat/mediatek/mt8195/drivers/spm/
Dbuild.mk27 ${CUR_SPM_FOLDER}/constraints/mt_spm_rc_bus26m.c \
28 ${CUR_SPM_FOLDER}/constraints/mt_spm_rc_cpu_buck_ldo.c \
29 ${CUR_SPM_FOLDER}/constraints/mt_spm_rc_dram.c \
30 ${CUR_SPM_FOLDER}/constraints/mt_spm_rc_syspll.c \
64 -I${CUR_SPM_FOLDER}/constraints/ \
/external/arm-trusted-firmware/plat/mediatek/mt8192/drivers/spm/
Dbuild.mk28 ${CUR_SPM_FOLDER}/constraints/mt_spm_rc_bus26m.c \
29 ${CUR_SPM_FOLDER}/constraints/mt_spm_rc_cpu_buck_ldo.c \
30 ${CUR_SPM_FOLDER}/constraints/mt_spm_rc_dram.c \
31 ${CUR_SPM_FOLDER}/constraints/mt_spm_rc_syspll.c \
65 -I${CUR_SPM_FOLDER}/constraints/ \
/external/tensorflow/tensorflow/compiler/mlir/tfrt/jit/
Dtf_cpurt_test_passes.cc63 EmitInputsConstraintsRemarks(getFunction(), cluster.constraints); in runOnFunction()
85 ValuesConstraintSet constraints; in runOnFunction() local
91 if (failed(InferFunctionBodyValuesConstraints(func, constraints))) in runOnFunction()
95 auto result = PropagateValuesConstraints(func.body(), policies, constraints); in runOnFunction()
99 EmitValueConstraintsRemarks(constraints); in runOnFunction()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/val/
Dvalidate_decorations.cpp186 MemberConstraints& constraints, in getBaseAlignment() argument
201 componentId, roundUp, inherited, constraints, vstate); in getBaseAlignment()
210 constraints, vstate); in getBaseAlignment()
218 component_id, roundUp, inherited, constraints, vstate); in getBaseAlignment()
226 getBaseAlignment(words[2], roundUp, inherited, constraints, vstate); in getBaseAlignment()
235 constraints[std::make_pair(member_id, memberIdx)]; in getBaseAlignment()
238 getBaseAlignment(id, roundUp, constraint, constraints, vstate)); in getBaseAlignment()
295 MemberConstraints& constraints, ValidationState_t& vstate) { in getSize() argument
306 getSize(componentId, inherited, constraints, vstate); in getSize()
317 getSize(elem_type, inherited, constraints, vstate); in getSize()
[all …]
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_decorations.cpp186 MemberConstraints& constraints, in getBaseAlignment() argument
201 componentId, roundUp, inherited, constraints, vstate); in getBaseAlignment()
210 constraints, vstate); in getBaseAlignment()
218 component_id, roundUp, inherited, constraints, vstate); in getBaseAlignment()
226 getBaseAlignment(words[2], roundUp, inherited, constraints, vstate); in getBaseAlignment()
235 constraints[std::make_pair(member_id, memberIdx)]; in getBaseAlignment()
238 getBaseAlignment(id, roundUp, constraint, constraints, vstate)); in getBaseAlignment()
295 MemberConstraints& constraints, ValidationState_t& vstate) { in getSize() argument
306 getSize(componentId, inherited, constraints, vstate); in getSize()
317 getSize(elem_type, inherited, constraints, vstate); in getSize()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_decorations.cpp186 MemberConstraints& constraints, in getBaseAlignment() argument
201 componentId, roundUp, inherited, constraints, vstate); in getBaseAlignment()
210 constraints, vstate); in getBaseAlignment()
218 component_id, roundUp, inherited, constraints, vstate); in getBaseAlignment()
226 getBaseAlignment(words[2], roundUp, inherited, constraints, vstate); in getBaseAlignment()
235 constraints[std::make_pair(member_id, memberIdx)]; in getBaseAlignment()
238 getBaseAlignment(id, roundUp, constraint, constraints, vstate)); in getBaseAlignment()
295 MemberConstraints& constraints, ValidationState_t& vstate) { in getSize() argument
306 getSize(componentId, inherited, constraints, vstate); in getSize()
317 getSize(elem_type, inherited, constraints, vstate); in getSize()
[all …]
/external/harfbuzz_ng/src/
Dgen-vowel-constraints.py127 constraints = {} variable
143 if script in constraints:
144 constraints[script].add (constraint)
146 constraints[script] = ConstraintSet (constraint)
147 assert constraints, 'No constraints found'
208 for script, constraints in sorted (constraints.items (), key=lambda s_c: script_order[s_c[0]]):
213 write (str (constraints))
/external/perfetto/src/trace_processor/sqlite/
Dquery_constraints.cc42 if ((other.constraints().size() != constraints().size()) || in operator ==()
48 for (size_t i = 0; i < constraints().size(); ++i) { in operator ==()
49 if ((constraints()[i].column != other.constraints()[i].column) || in operator ==()
50 (constraints()[i].op != other.constraints()[i].op)) { in operator ==()
/external/pigweed/pw_build/platforms/
DBUILD.bazel20 "//pw_build/constraints/rtos:freertos",
28 "//pw_build/constraints/rtos:embos",
36 "//pw_build/constraints/rtos:threadx",
92 constraint_values = ["//pw_build/constraints/chipset:stm32f429"],
98 constraint_values = ["//pw_build/constraints/chipset:lm3s6965evb"],
105 constraint_values = ["//pw_build/constraints/board:stm32f429i-disc1"],

12345678910>>...24