Home
last modified time | relevance | path

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

12345678910>>...21

/external/webrtc/talk/app/webrtc/
Dvideosource_unittest.cc145 const webrtc::MediaConstraintsInterface* constraints) { in CreateVideoSource() argument
149 constraints, false); in CreateVideoSource()
251 FakeConstraints constraints; in TEST_F() local
252 constraints.AddMandatory(MediaConstraintsInterface::kMaxWidth, 352); in TEST_F()
253 constraints.AddMandatory(MediaConstraintsInterface::kMaxHeight, 288); in TEST_F()
254 constraints.AddMandatory(MediaConstraintsInterface::kMaxFrameRate, 5); in TEST_F()
256 CreateVideoSource(&constraints); in TEST_F()
269 FakeConstraints constraints; in TEST_F() local
270 constraints.AddMandatory(MediaConstraintsInterface::kMinWidth, 640); in TEST_F()
271 constraints.AddMandatory(MediaConstraintsInterface::kMinHeight, 480); in TEST_F()
[all …]
Dlocalaudiosource_unittest.cc44 webrtc::FakeConstraints constraints; in TEST() local
45 constraints.AddMandatory( in TEST()
47 constraints.AddOptional( in TEST()
49 constraints.AddOptional(MediaConstraintsInterface::kDAEchoCancellation, true); in TEST()
50 constraints.AddOptional(MediaConstraintsInterface::kAutoGainControl, true); in TEST()
51 constraints.AddOptional( in TEST()
53 constraints.AddMandatory(MediaConstraintsInterface::kNoiseSuppression, false); in TEST()
54 constraints.AddOptional(MediaConstraintsInterface::kHighpassFilter, true); in TEST()
55 constraints.AddOptional(MediaConstraintsInterface::kAecDump, true); in TEST()
59 &constraints); in TEST()
[all …]
Dpeerconnectioninterface_unittest.cc537 void CreatePeerConnection(webrtc::MediaConstraintsInterface* constraints) { in CreatePeerConnection() argument
538 CreatePeerConnection("", "", constraints); in CreatePeerConnection()
543 webrtc::MediaConstraintsInterface* constraints) { in CreatePeerConnection() argument
560 if (!constraints) { in CreatePeerConnection()
561 constraints = &default_constraints; in CreatePeerConnection()
569 if (FindConstraint(constraints, in CreatePeerConnection()
576 config, constraints, std::move(port_allocator), in CreatePeerConnection()
669 MediaConstraintsInterface* constraints) { in DoCreateOfferAnswer() argument
674 pc_->CreateOffer(observer, constraints); in DoCreateOfferAnswer()
676 pc_->CreateAnswer(observer, constraints); in DoCreateOfferAnswer()
[all …]
Dlocalaudiosource.cc44 void FromConstraints(const MediaConstraintsInterface::Constraints& constraints, in FromConstraints() argument
74 for (const auto& constraint : constraints) { in FromConstraints()
90 const MediaConstraintsInterface* constraints) { in Create() argument
93 source->Initialize(options, constraints); in Create()
99 const MediaConstraintsInterface* constraints) { in Initialize() argument
100 if (!constraints) in Initialize()
105 FromConstraints(constraints->GetOptional(), &options_); in Initialize()
108 FromConstraints(constraints->GetMandatory(), &mandatory_options); in Initialize()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dgpu_layout_assignment.cc100 HloCustomCallInstruction* instr, LayoutConstraints* constraints) { in AddBackendConstraintsToDnnConvCustomCall() argument
148 constraints->points_to_analysis().GetBufferDefinedAt( in AddBackendConstraintsToDnnConvCustomCall()
152 TF_RETURN_IF_ERROR(constraints->SetOperandLayout(lhs_shape, instr, 0)); in AddBackendConstraintsToDnnConvCustomCall()
153 TF_RETURN_IF_ERROR(constraints->SetOperandLayout(rhs_shape, instr, 1)); in AddBackendConstraintsToDnnConvCustomCall()
155 constraints->SetBufferLayout(result_shape.layout(), *call_result_buf)); in AddBackendConstraintsToDnnConvCustomCall()
168 TF_RETURN_IF_ERROR(constraints->SetOperandLayout(*output_shape, instr, 3)); in AddBackendConstraintsToDnnConvCustomCall()
174 LayoutConstraints* constraints) { in AddBackendConstraints() argument
178 auto post_order = constraints->computation()->MakeInstructionPostOrder(); in AddBackendConstraints()
184 Cast<HloCustomCallInstruction>(instruction), constraints)); in AddBackendConstraints()
212 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/tensorflow/tensorflow/contrib/keras/api/keras/constraints/
D__init__.py22 from tensorflow.python.keras.constraints import Constraint
23 from tensorflow.python.keras.constraints import max_norm
24 from tensorflow.python.keras.constraints import MaxNorm
25 from tensorflow.python.keras.constraints import min_max_norm
26 from tensorflow.python.keras.constraints import MinMaxNorm
27 from tensorflow.python.keras.constraints import non_neg
28 from tensorflow.python.keras.constraints import NonNeg
29 from tensorflow.python.keras.constraints import unit_norm
30 from tensorflow.python.keras.constraints import UnitNorm
34 from tensorflow.python.keras.constraints import deserialize
[all …]
/external/webrtc/talk/app/webrtc/java/src/org/webrtc/
DPeerConnectionFactory.java95 MediaConstraints constraints, in createPeerConnection() argument
102 nativeFactory, rtcConfig, constraints, nativeObserver); in createPeerConnection()
111 MediaConstraints constraints, in createPeerConnection() argument
115 return createPeerConnection(rtcConfig, constraints, observer); in createPeerConnection()
124 VideoCapturer capturer, MediaConstraints constraints) { in createVideoSource() argument
126 nativeFactory, capturer.takeNativeVideoCapturer(), constraints)); in createVideoSource()
134 public AudioSource createAudioSource(MediaConstraints constraints) { in createAudioSource() argument
135 return new AudioSource(nativeCreateAudioSource(nativeFactory, constraints)); in createAudioSource()
235 MediaConstraints constraints, long nativeObserver); in nativeCreatePeerConnection() argument
242 MediaConstraints constraints); in nativeCreateVideoSource() argument
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dlayout_assignment.cc431 LayoutConstraints* constraints) { in AddMandatoryConstraints() argument
449 constraints->SetInstructionLayout(instruction->shape(), instruction)); in AddMandatoryConstraints()
453 TF_RETURN_IF_ERROR(constraints->SetOperandLayout( in AddMandatoryConstraints()
463 TF_RETURN_IF_ERROR(constraints->SetInstructionLayout( in AddMandatoryConstraints()
471 constraints->SetInstructionLayout(custom_call->shape(), custom_call)); in AddMandatoryConstraints()
473 TF_RETURN_IF_ERROR(constraints->SetOperandLayout( in AddMandatoryConstraints()
493 TF_RETURN_IF_ERROR(constraints->SetInstructionLayout( in AddMandatoryConstraints()
501 constraints->points_to_analysis().GetBufferDefinedAt(instruction, in AddMandatoryConstraints()
507 constraints->SetBufferLayout(new_shape.layout(), *buffer)); in AddMandatoryConstraints()
524 constraints->SetInstructionLayout(new_buffer_shape, instruction)); in AddMandatoryConstraints()
[all …]
/external/tensorflow/tensorflow/python/keras/
Dconstraints_test.py46 fn = keras.constraints.get(name)
47 ref_fn = getattr(keras.constraints, name)()
49 config = keras.constraints.serialize(fn)
50 fn = keras.constraints.deserialize(config)
56 norm_instance = keras.constraints.max_norm(m)
61 norm_instance = keras.constraints.max_norm(2.0)
71 non_neg_instance = keras.constraints.non_neg()
76 unit_norm_instance = keras.constraints.unit_norm()
88 norm_instance = keras.constraints.min_max_norm(
/external/webrtc/talk/app/webrtc/objc/
DRTCPeerConnectionFactory.mm93 constraints:(RTCMediaConstraints *)constraints
97 constraints:constraints.constraints
103 constraints:(RTCMediaConstraints*)constraints
112 constraints:constraints.constraints];
124 constraints:(RTCMediaConstraints*)constraints {
130 constraints.constraints);
DRTCPeerConnection.mm173 constraints:(RTCMediaConstraints*)constraints {
177 self.peerConnection->CreateAnswer(observer, constraints.constraints);
181 constraints:(RTCMediaConstraints*)constraints {
185 self.peerConnection->CreateOffer(observer, constraints.constraints);
273 constraints:(const webrtc::MediaConstraintsInterface*)constraints {
280 config, constraints, nullptr, nullptr, _observer.get());
288 constraints:(const webrtc::MediaConstraintsInterface *)constraints
294 factory->CreatePeerConnection(config, constraints, nullptr, nullptr, _observer.get());
DRTCPeerConnection+Internal.h41 constraints:(const webrtc::MediaConstraintsInterface *)constraints;
45 constraints:(const webrtc::MediaConstraintsInterface *)constraints
/external/webrtc/talk/app/webrtc/objc/public/
DRTCPeerConnectionFactory.h53 constraints:(RTCMediaConstraints *)constraints
58 constraints:(RTCMediaConstraints *)constraints
67 constraints:(RTCMediaConstraints *)constraints;
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_decorations.cpp164 MemberConstraints& constraints, in getBaseAlignment() argument
179 componentId, roundUp, inherited, constraints, vstate); in getBaseAlignment()
188 constraints, vstate); in getBaseAlignment()
196 component_id, roundUp, inherited, constraints, vstate); in getBaseAlignment()
204 getBaseAlignment(words[2], roundUp, inherited, constraints, vstate); in getBaseAlignment()
213 constraints[std::make_pair(member_id, memberIdx)]; in getBaseAlignment()
216 getBaseAlignment(id, roundUp, constraint, constraints, vstate)); in getBaseAlignment()
268 MemberConstraints& constraints, ValidationState_t& vstate) { in getSize() argument
279 getSize(componentId, inherited, constraints, vstate); in getSize()
290 getSize(elem_type, inherited, constraints, vstate); in getSize()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_decorations.cpp164 MemberConstraints& constraints, in getBaseAlignment() argument
179 componentId, roundUp, inherited, constraints, vstate); in getBaseAlignment()
188 constraints, vstate); in getBaseAlignment()
196 component_id, roundUp, inherited, constraints, vstate); in getBaseAlignment()
204 getBaseAlignment(words[2], roundUp, inherited, constraints, vstate); in getBaseAlignment()
213 constraints[std::make_pair(member_id, memberIdx)]; in getBaseAlignment()
216 getBaseAlignment(id, roundUp, constraint, constraints, vstate)); in getBaseAlignment()
273 MemberConstraints& constraints, ValidationState_t& vstate) { in getSize() argument
284 getSize(componentId, inherited, constraints, vstate); in getSize()
295 getSize(elem_type, inherited, constraints, vstate); in getSize()
[all …]
/external/webrtc/talk/app/webrtc/test/
Dpeerconnectiontestwrapper.cc74 const MediaConstraintsInterface* constraints) { in CreatePc() argument
99 config, constraints, std::move(port_allocator), in CreatePc()
154 const MediaConstraintsInterface* constraints) { in CreateOffer() argument
157 peer_connection_->CreateOffer(this, constraints); in CreateOffer()
161 const MediaConstraintsInterface* constraints) { in CreateAnswer() argument
164 peer_connection_->CreateAnswer(this, constraints); in CreateAnswer()
270 FakeConstraints constraints = audio_constraints; in GetUserMedia() local
272 constraints.AddMandatory( in GetUserMedia()
275 peer_connection_factory_->CreateAudioSource(&constraints); in GetUserMedia()
284 FakeConstraints constraints = video_constraints; in GetUserMedia() local
[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->OperandBufferForwarded(instruction, operand_no)) { in AddBackendConstraints()
145 TF_RETURN_IF_ERROR(constraints->SetOperandLayout( in AddBackendConstraints()
/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/tensorflow/tensorflow/contrib/boosted_trees/estimator_batch/
Destimator_test.py147 learner_config.constraints.max_tree_depth = 1
166 learner_config.constraints.max_tree_depth = 1
188 learner_config.constraints.max_tree_depth = 1
213 learner_config.constraints.max_tree_depth = 1
233 learner_config.constraints.max_tree_depth = 1
253 learner_config.constraints.max_tree_depth = 1
281 learner_config.constraints.max_tree_depth = 2
301 learner_config.constraints.max_tree_depth = 2
321 learner_config.constraints.max_tree_depth = 1
347 learner_config.constraints.max_tree_depth = 1
[all …]
/external/perfetto/src/trace_processor/
Dprocess_table.cc59 const auto& constraints = qc.constraints(); in BestIndex() local
60 if (constraints.size() == 1 && constraints.front().iColumn == Column::kUpid) { in BestIndex()
61 info->estimated_cost = IsOpEq(constraints.front().op) ? 1 : 10; in BestIndex()
77 for (size_t j = 0; j < qc.constraints().size(); j++) { in Filter()
78 const auto& cs = qc.constraints()[j]; in Filter()
Dquery_constraints.cc38 if ((other.constraints().size() != constraints().size()) || in operator ==()
43 for (size_t i = 0; i < constraints().size(); ++i) { in operator ==()
44 if ((constraints()[i].iColumn != other.constraints()[i].iColumn) || in operator ==()
45 (constraints()[i].op != other.constraints()[i].op)) { in operator ==()
/external/webrtc/webrtc/api/objctests/
DRTCMediaConstraintsTest.mm29 RTCMediaConstraints *constraints = [[RTCMediaConstraints alloc]
33 [constraints nativeConstraints];
44 - (void)expectConstraints:(NSDictionary *)constraints
47 EXPECT_EQ(constraints.count, nativeConstraints.size());
49 for (NSString *key in constraints) {
50 NSString *value = constraints[key];
/external/harfbuzz_ng/src/
Dgen-vowel-constraints.py129 constraints = {} variable
140 if script in constraints:
141 constraints[script].add (constraint)
143 constraints[script] = ConstraintSet (constraint)
144 assert constraints, 'No constraints found'
195 for script, constraints in sorted (constraints.items (), key=lambda s_c: script_order[s_c[0]]):
200 write (str (constraints))
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/linear/
DSimplexTableau.java75 private final List<LinearConstraint> constraints; field in SimplexTableau
108 final Collection<LinearConstraint> constraints, in SimplexTableau() argument
112 this.constraints = normalizeConstraints(constraints); in SimplexTableau()
158 int height = constraints.size() + getNumObjectiveFunctions(); in createTableau()
181 for (int i = 0; i < constraints.size(); i++) { in createTableau()
182 LinearConstraint constraint = constraints.get(i); in createTableau()
259 for (final LinearConstraint constraint : constraints) { in getConstraintTypeCounts()
549 constraints.equals(rhs.constraints) && in equals()
564 constraints.hashCode() ^ in hashCode()

12345678910>>...21