Home
last modified time | relevance | path

Searched refs:options_ (Results 1 – 25 of 143) sorted by relevance

123456

/external/tensorflow/tensorflow/core/kernels/batching_util/
Dperiodic_function.cc41 options_(options) {
42 thread_.reset(options_.env->StartThread(
43 options_.thread_options, options_.thread_name_prefix, [this]() { in __anonf47c13610202()
50 RunLoop(options_.env->NowMicros()); in __anonf47c13610202()
69 if (options_.startup_delay_micros > 0) { in RunLoop()
70 const int64 deadline = start + options_.startup_delay_micros; in RunLoop()
71 options_.env->SleepForMicroseconds(deadline - start); in RunLoop()
76 const int64 begin = options_.env->NowMicros(); in RunLoop()
82 std::max(static_cast<int64>(options_.env->NowMicros()), begin); in RunLoop()
93 options_.env->SleepForMicroseconds(deadline - end); in RunLoop()
Dadaptive_shared_batch_scheduler.h193 Env* GetEnv() const { return options_.env; } in GetEnv()
195 const Options options_; variable
302 size_t max_task_size() const override { return options_.max_batch_size; } in max_task_size()
306 const QueueOptions options_; variable
403 : options_(options), in AdaptiveSharedBatchScheduler()
446 if (options_.use_in_flight_batches_implementation) { in AddBatch()
493 if (batch_count_ == options_.batches_to_average_over) { in CallbackWrapper()
516 static_cast<double>(options_.num_batch_threads)); in CallbackWrapper()
541 double feedback = options_.scheduling_period_feedback(); in ProcessOneBatch()
542 const int64 N = options_.feedback_smoothing_batches; in ProcessOneBatch()
[all …]
Dshared_batch_scheduler.h175 const Options options_; variable
252 size_t max_task_size() const { return options_.max_batch_size; } in max_task_size()
287 const typename SharedBatchScheduler<TaskType>::QueueOptions options_; variable
383 options_.env->SleepForMicroseconds(kSleepTimeMicros); in ~SharedBatchScheduler()
417 options, options_.env, process_batch_callback, in AddQueue()
435 : options_(options), next_queue_to_schedule_(queues_.end()) { in SharedBatchScheduler()
509 : options_(options), in Queue()
528 if ((*task)->size() > options_.max_batch_size) { in Schedule()
531 options_.max_batch_size); in Schedule()
540 if (batches_.back()->size() + (*task)->size() > options_.max_batch_size) { in Schedule()
[all …]
/external/libtextclassifier/
Dtoken-feature-extractor.cc74 : options_(options), unilib_(unilib) { in TokenFeatureExtractor()
97 if (options_.unicode_aware_features) { in ExtractCharactergramFeatures()
108 if (options_.extract_case_feature) { in ExtractDenseFeatures()
109 if (options_.unicode_aware_features) { in ExtractDenseFeatures()
127 if (options_.extract_selection_mask_feature) { in ExtractDenseFeatures()
131 if (options_.unicode_aware_features) { in ExtractDenseFeatures()
162 if (options_.allowed_chargrams.empty()) { in HashToken()
163 return tc2farmhash::Fingerprint64(token) % options_.num_buckets; in HashToken()
173 } else if (options_.allowed_chargrams.find(token_string) == in HashToken()
174 options_.allowed_chargrams.end()) { in HashToken()
[all …]
Dfeature-processor.cc168 if (options_->default_collection() < 0 || in GetDefaultCollection()
169 options_->collections() == nullptr || in GetDefaultCollection()
170 options_->default_collection() >= options_->collections()->size()) { in GetDefaultCollection()
175 return (*options_->collections())[options_->default_collection()]->str(); in GetDefaultCollection()
185 if (options_->tokenization_type() == in Tokenize()
188 } else if (options_->tokenization_type() == in Tokenize()
190 options_->tokenization_type() == in Tokenize()
196 if (options_->tokenization_type() == in Tokenize()
222 tokens[options_->context_size() - result_begin_token_index]; in LabelToSpan()
226 tokens[options_->context_size() + result_end_token_index]; in LabelToSpan()
[all …]
/external/webrtc/webrtc/video/
Doveruse_frame_detector_unittest.cc57 options_.min_process_count = 0; in SetUp()
62 overuse_detector_.reset(new OveruseFrameDetector(clock_.get(), options_, in ReinitializeOveruseDetector()
71 return ((options_.low_encode_usage_threshold_percent + in InitialUsage()
72 options_.high_encode_usage_threshold_percent) / 2.0f) + 0.5; in InitialUsage()
107 CpuOveruseOptions options_; member in webrtc::OveruseFrameDetectorTest
120 TriggerOveruse(options_.high_threshold_consecutive_count); in TEST_F()
126 TriggerOveruse(options_.high_threshold_consecutive_count); in TEST_F()
134 new OveruseFrameDetector(clock_.get(), options_, nullptr, this)); in TEST_F()
136 TriggerOveruse(options_.high_threshold_consecutive_count); in TEST_F()
143 TriggerOveruse(options_.high_threshold_consecutive_count); in TEST_F()
[all …]
Doveruse_frame_detector.cc58 options_(options), in SendProcessingUsage()
87 if (count_ < static_cast<uint32_t>(options_.min_frame_samples)) { in Value()
100 return (options_.low_encode_usage_threshold_percent + in InitialUsageInPercent()
101 options_.high_encode_usage_threshold_percent) / 2.0f; in InitialUsageInPercent()
113 const CpuOveruseOptions options_; member in webrtc::OveruseFrameDetector::SendProcessingUsage
171 : options_(options), in OveruseFrameDetector()
231 return (now - last_capture_time_) > options_.frame_timeout_interval_ms; in FrameTimeoutDetected()
297 if (num_process_times_ <= options_.min_process_count) in Process()
347 options_.high_encode_usage_threshold_percent) { in IsOverusing()
352 return checks_above_threshold_ >= options_.high_threshold_consecutive_count; in IsOverusing()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DType.cs118 options_ = other.options_.Clone(); in Type()
168 …private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> options_ = new … field in Google.Protobuf.WellKnownTypes.Type
173 get { return options_; }
216 if(!options_.Equals(other.options_)) return false; in Equals()
227 hash ^= options_.GetHashCode(); in GetHashCode()
244 options_.WriteTo(output, _repeated_options_codec); in WriteTo()
262 size += options_.CalculateSize(_repeated_options_codec); in CalculateSize()
281 options_.Add(other.options_); in MergeFrom()
313 options_.AddEntriesFrom(input, _repeated_options_codec); in MergeFrom()
363 options_ = other.options_.Clone(); in Field()
[all …]
DApi.cs79 options_ = other.options_.Clone(); in Api()
120 …private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> options_ = new … field in Google.Protobuf.WellKnownTypes.Api
125 get { return options_; }
212 if(!options_.Equals(other.options_)) return false; in Equals()
224 hash ^= options_.GetHashCode(); in GetHashCode()
242 options_.WriteTo(output, _repeated_options_codec); in WriteTo()
264 size += options_.CalculateSize(_repeated_options_codec); in CalculateSize()
286 options_.Add(other.options_); in MergeFrom()
318 options_.AddEntriesFrom(input, _repeated_options_codec); in MergeFrom()
374 options_ = other.options_.Clone(); in Method()
[all …]
/external/protobuf/src/google/protobuf/
Darena.cc65 if (options_.initial_block != NULL && options_.initial_block_size > 0) { in Init()
66 GOOGLE_CHECK_GE(options_.initial_block_size, sizeof(Block)) in Init()
70 Block* first_block = reinterpret_cast<Block*>(options_.initial_block); in Init()
71 first_block->size = options_.initial_block_size; in Init()
84 if (options_.on_arena_init != NULL) { in Init()
85 hooks_cookie_ = options_.on_arena_init(this); in Init()
95 if (options_.on_arena_destruction != NULL) { in ~Arena()
96 options_.on_arena_destruction(this, hooks_cookie_, space_allocated); in ~Arena()
111 if (options_.on_arena_reset != NULL) { in ResetInternal()
112 options_.on_arena_reset(this, hooks_cookie_, space_allocated); in ResetInternal()
[all …]
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_file.cc62 options_(options), in FileGenerator()
99 if (!options_.proto_h) { in GenerateProtoHeader()
176 FilenameIdentifier(file_->name() + (options_.proto_h ? ".pb.h" : "")); in GeneratePBHeader()
179 if (options_.proto_h) { in GeneratePBHeader()
196 if (!options_.proto_h) { in GeneratePBHeader()
231 if (!options_.proto_h) { in GeneratePBHeader()
247 StripProto(file_->name()) + (options_.proto_h ? ".proto.h" : ".pb.h"); in GenerateSource()
270 if (!UseUnknownFieldSet(file_, options_) && file_->message_type_count() > 0) { in GenerateSource()
275 if (HasDescriptorMethods(file_, options_)) { in GenerateSource()
283 if (options_.proto_h) { in GenerateSource()
[all …]
Dcpp_enum.cc66 options_(options), in EnumGenerator()
74 if (!options_.proto_h) { in FillForwardDeclaration()
84 vars["enumbase"] = classname_ + (options_.proto_h ? " : int" : ""); in GenerateDefinition()
130 if (options_.dllexport_decl.empty()) { in GenerateDefinition()
133 vars["dllexport"] = options_.dllexport_decl + " "; in GenerateDefinition()
147 if (HasDescriptorMethods(descriptor_->file(), options_)) { in GenerateDefinition()
172 if (HasDescriptorMethods(descriptor_->file(), options_)) { in GenerateGetEnumDescriptorSpecializations()
186 vars["constexpr"] = options_.proto_h ? "constexpr " : ""; in GenerateSymbolImports()
212 if (HasDescriptorMethods(descriptor_->file(), options_)) { in GenerateSymbolImports()
251 vars["constexpr"] = options_.proto_h ? "constexpr " : ""; in GenerateMethods()
[all …]
Dcpp_message.cc382 options_(options), in MessageGenerator()
476 SetCommonFieldVariables(field, &vars, options_); in GenerateDependentFieldAccessorDeclarations()
498 SetCommonFieldVariables(field, &vars, options_); in GenerateFieldAccessorDeclarations()
579 SetCommonFieldVariables(field, &vars, options_); in GenerateDependentFieldAccessorDefinitions()
753 SetCommonFieldVariables(field, &vars, options_); in GenerateFieldAccessorDefinitions()
841 vars["superclass"] = SuperClassName(descriptor_, options_); in GenerateDependentBaseClassDefinition()
883 if (options_.dllexport_decl.empty()) { in GenerateClassDefinition()
886 vars["dllexport"] = options_.dllexport_decl + " "; in GenerateClassDefinition()
892 vars["superclass"] = SuperClassName(descriptor_, options_); in GenerateClassDefinition()
916 if (UseUnknownFieldSet(descriptor_->file(), options_)) { in GenerateClassDefinition()
[all …]
Dcpp_map_field.cc174 if (HasDescriptorMethods(descriptor_->file(), options_)) { in GenerateConstructorCode()
221 if (HasDescriptorMethods(descriptor_->file(), options_)) { in GenerateMergeFromCodedStream()
242 key_field, options_, true, variables_, in GenerateMergeFromCodedStream()
246 GenerateUtf8CheckCodeForString(value_field, options_, true, variables_, in GenerateMergeFromCodedStream()
289 GenerateUtf8CheckCodeForString(key_field, options_, false, variables_, in GenerateSerializeWithCachedSizes()
294 GenerateUtf8CheckCodeForString(value_field, options_, false, variables_, in GenerateSerializeWithCachedSizes()
347 GenerateUtf8CheckCodeForString(key_field, options_, false, variables_, in GenerateSerializeWithCachedSizesToArray()
352 GenerateUtf8CheckCodeForString(value_field, options_, false, variables_, in GenerateSerializeWithCachedSizesToArray()
/external/tensorflow/tensorflow/core/grappler/clusters/
Dcluster.cc29 options_.config.set_allow_soft_placement(soft_placement_state); in AllowSoftPlacement()
33 options_.config.mutable_graph_options()->set_build_cost_model_after( in SetNumWarmupSteps()
38 return options_.config.graph_options().build_cost_model_after(); in NumWarmupSteps()
43 options_.config.mutable_graph_options()->set_build_cost_model(0); in DisableDetailedStats()
46 options_.config.mutable_graph_options()->set_build_cost_model(1); in DisableDetailedStats()
52 return options_.config.graph_options().build_cost_model() != 0; in DetailedStatsEnabled()
57 options_.config.mutable_graph_options()->mutable_optimizer_options(); in DisableOptimizer()
62 options_.config.mutable_graph_options()->mutable_rewrite_options(); in DisableOptimizer()
72 options_.config.mutable_graph_options()->mutable_rewrite_options(); in DisableOptimizer()
/external/webrtc/webrtc/base/
Doptionsfile.cc27 options_.clear(); in Load()
54 options_[key] = value; in Load()
76 for (OptionsMap::const_iterator i = options_.begin(); i != options_.end(); in Save()
134 OptionsMap::const_iterator i = options_.find(option); in GetStringValue()
135 if (i == options_.end()) { in GetStringValue()
149 OptionsMap::const_iterator i = options_.find(option); in GetIntValue()
150 if (i == options_.end()) { in GetIntValue()
163 options_[option] = value; in SetStringValue()
174 return ToString(value, &options_[option]); in SetIntValue()
182 options_.erase(option); in RemoveValue()
/external/v8/tools/clang/plugins/
DFindBadConstructsAction.cpp39 return llvm::make_unique<PluginConsumer>(&instance, options_); in CreateASTConsumer()
49 options_.check_base_classes = true; in ParseArgs()
51 options_.enforce_in_thirdparty_webkit = true; in ParseArgs()
55 options_.check_enum_last_value = true; in ParseArgs()
57 options_.no_realpath = true; in ParseArgs()
59 options_.check_ipc = true; in ParseArgs()
61 options_.check_auto_raw_pointer = true; in ParseArgs()
/external/webrtc/webrtc/modules/remote_bitrate_estimator/
Doveruse_estimator.cc29 : options_(options), in OveruseEstimator()
31 slope_(options_.initial_slope), in OveruseEstimator()
32 offset_(options_.initial_offset), in OveruseEstimator()
33 prev_offset_(options_.initial_offset), in OveruseEstimator()
36 avg_noise_(options_.initial_avg_noise), in OveruseEstimator()
37 var_noise_(options_.initial_var_noise), in OveruseEstimator()
39 memcpy(E_, options_.initial_e, sizeof(E_)); in OveruseEstimator()
40 memcpy(process_noise_, options_.initial_process_noise, in OveruseEstimator()
/external/v8/tools/clang/blink_gc_plugin/
DBlinkGCPlugin.cpp28 return llvm::make_unique<BlinkGCPluginConsumer>(instance, options_); in CreateASTConsumer()
35 options_.dump_graph = true; in ParseArgs()
37 options_.warn_unneeded_finalizer = true; in ParseArgs()
39 options_.use_chromium_style_naming = true; in ParseArgs()
49 BlinkGCPluginOptions options_; member in BlinkGCPluginAction
/external/libchrome/base/threading/
Dsimple_thread.cc20 options_(options), in SimpleThread()
26 DCHECK(!options_.joinable || HasBeenJoined()) in ~SimpleThread()
33 options_.joinable in Start()
34 ? PlatformThread::CreateWithPriority(options_.stack_size, this, in Start()
35 &thread_, options_.priority) in Start()
37 options_.stack_size, this, options_.priority); in Start()
44 DCHECK(options_.joinable) << "A non-joinable thread can't be joined."; in Join()
/external/webrtc/webrtc/
Dcommon.h74 for (OptionMap::iterator it = options_.begin(); in ~Config()
75 it != options_.end(); ++it) { in ~Config()
109 OptionMap options_; variable
118 OptionMap::const_iterator it = options_.find(identifier<T>()); in Get()
119 if (it != options_.end()) { in Get()
130 BaseOption*& it = options_[identifier<T>()]; in Set()
/external/libmojo/mojo/edk/system/
Ddata_pipe_producer_dispatcher.cc78 : options_(options), in DataPipeProducerDispatcher()
83 available_capacity_(options_.capacity_num_bytes) { in DataPipeProducerDispatcher()
135 if (*num_bytes % options_.element_num_bytes != 0) in WriteData()
147 DCHECK_LE(available_capacity_, options_.capacity_num_bytes); in WriteData()
163 DCHECK_LE(write_offset_, options_.capacity_num_bytes); in WriteData()
165 std::min(options_.capacity_num_bytes - write_offset_, in WriteData()
177 options_.capacity_num_bytes; in WriteData()
207 *buffer_num_bytes = std::min(options_.capacity_num_bytes - write_offset_, in BeginWriteData()
234 num_bytes_written % options_.element_num_bytes != 0 || in EndWriteData()
235 write_offset_ + num_bytes_written > options_.capacity_num_bytes) { in EndWriteData()
[all …]
Doptions_validation.h36 options_ = GetSizeForReader(options) == 0 ? nullptr : options; in UserOptionsReader()
45 bool is_valid() const { return !!options_; } in is_valid()
49 return *options_; in options()
77 const Options* options_; variable
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DDescriptor.cs301 Options = other.options_ != null ? other.Options.Clone() : null; in FileDescriptorProto()
414 private global::Google.Protobuf.Reflection.FileOptions options_; field in Google.Protobuf.Reflection.FileDescriptorProto
416 get { return options_; }
418 options_ = value;
489 if (options_ != null) hash ^= Options.GetHashCode(); in GetHashCode()
513 if (options_ != null) { in WriteTo()
544 if (options_ != null) { in CalculateSize()
573 if (other.options_ != null) { in MergeFrom()
574 if (options_ == null) { in MergeFrom()
575 options_ = new global::Google.Protobuf.Reflection.FileOptions(); in MergeFrom()
[all …]
/external/webrtc/webrtc/modules/desktop_capture/
Dscreen_capturer_x11.cc54 Display* display() { return options_.x_display()->display(); } in display()
80 DesktopCaptureOptions options_; member in webrtc::__anon46b5d1b00111::ScreenCapturerLinux
136 options_.x_display()->RemoveEventHandler(ConfigureNotify, this); in ~ScreenCapturerLinux()
138 options_.x_display()->RemoveEventHandler( in ~ScreenCapturerLinux()
145 options_ = options; in Init()
161 options_.x_display()->AddEventHandler(ConfigureNotify, this); in Init()
180 if (options_.use_update_notifications()) { in Init()
221 options_.x_display()->AddEventHandler( in InitXDamage()
241 options_.x_display()->ProcessPendingXEvents(); in Capture()

123456