Home
last modified time | relevance | path

Searched refs:context_size (Results 1 – 23 of 23) sorted by relevance

/external/libtextclassifier/native/annotator/
Dcached-features.cc44 num_extracted_tokens = 2 * options->context_size() + 1; in CalculateOutputFeaturesSize()
91 /*intended_span=*/TokenSpan(click_pos).Expand(options_->context_size(), in AppendClickContextFeaturesForClick()
92 options_->context_size()), in AppendClickContextFeaturesForClick()
Dfeature-processor.cc212 tokens[options_->context_size() - result_begin_token_index]; in LabelToSpan()
216 tokens[options_->context_size() + result_end_token_index]; in LabelToSpan()
266 options_->context_size(); // Click is always in the middle. in SpanToLabel()
267 const int padding = options_->context_size() - options_->max_selection_span(); in SpanToLabel()
740 void StripOrPadTokens(const TokenSpan& relative_click_span, int context_size, in StripOrPadTokens() argument
742 int right_context_needed = relative_click_span.second + context_size; in StripOrPadTokens()
746 context_size, static_cast<int>(*click_pos + right_context_needed + 1 - in StripOrPadTokens()
757 int left_context_needed = relative_click_span.first + context_size; in StripOrPadTokens()
761 std::min(context_size, left_context_needed - *click_pos); in StripOrPadTokens()
Dfeature-processor.h68 void StripOrPadTokens(const TokenSpan& relative_click_span, int context_size,
235 int GetNumContextTokens() const { return options_->context_size() * 2 + 1; } in GetNumContextTokens()
Dfeature-processor_test.cc368 options.context_size = 1; in TEST_F()
417 options.context_size = 2; in TEST_F()
442 options.context_size = 1; in TEST_F()
491 options.context_size = 2; in TEST_F()
581 options.context_size = 2; in TEST_F()
692 options.context_size = 2; in TEST_F()
728 options.context_size = 2; in TEST_F()
Dannotator.cc1328 const int context_size = in ModelSuggestSelection() local
1329 selection_feature_processor_->GetOptions()->context_size(); in ModelSuggestSelection()
1331 /*num_tokens_left=*/context_size, in ModelSuggestSelection()
1332 /*num_tokens_right=*/context_size); in ModelSuggestSelection()
1426 const int context_size = in ClassifyTextUpperBoundNeededTokens() local
1427 selection_feature_processor_->GetOptions()->context_size(); in ClassifyTextUpperBoundNeededTokens()
1428 return {context_size, context_size}; in ClassifyTextUpperBoundNeededTokens()
1538 const int context_size = in ModelClassifyText() local
1539 classification_feature_processor_->GetOptions()->context_size(); in ModelClassifyText()
1541 /*num_tokens_left=*/context_size, in ModelClassifyText()
[all …]
Dcached-features_test.cc68 options.context_size = 2; in TEST()
Dmodel.fbs685 context_size:int = -1;
/external/google-breakpad/src/client/linux/handler/
Dexception_handler.cc416 size_t context_size; member
435 thread_arg->context_size) == false; in ThreadEntry()
518 thread_arg.context_size = sizeof(*context); in GenerateDump()
602 size_t context_size) { in DoDump() argument
612 context_size, in DoDump()
624 context_size, in DoDump()
635 context_size, in DoDump()
Dexception_handler.h244 size_t context_size);
/external/mesa3d/src/intel/tools/
Daub_write.c524 uint32_t context_size; in write_engine_execlist_setup() local
526 get_context_init(&aub->devinfo, NULL, engine_class, NULL, &context_size); in write_engine_execlist_setup()
529 uint32_t total_size = RING_SIZE + PPHWSP_SIZE + context_size; in write_engine_execlist_setup()
549 PPHWSP_SIZE + context_size, in write_engine_execlist_setup()
561 uint32_t *context_data = calloc(1, context_size); in write_engine_execlist_setup()
562 get_context_init(&aub->devinfo, &params, engine_class, context_data, &context_size); in write_engine_execlist_setup()
563 data_out(aub, context_data, context_size); in write_engine_execlist_setup()
/external/openthread/third_party/mbedtls/repo/include/psa/
Dcrypto_se_driver.h326 size_t context_size; member
513 size_t context_size; member
1266 size_t context_size; member
/external/mbedtls/include/psa/
Dcrypto_se_driver.h327 size_t MBEDTLS_PRIVATE(context_size);
514 size_t MBEDTLS_PRIVATE(context_size);
1267 size_t MBEDTLS_PRIVATE(context_size);
/external/igt-gpu-tools/tests/i915/
Dgem_ctx_thrash.c45 static unsigned context_size(int fd) in context_size() function
73 size = context_size(fd); in get_num_contexts()
Dgem_ctx_create.c235 static unsigned context_size(int fd) in context_size() function
262 unsigned ctx_size = context_size(fd); in maximum()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_nettle.c60 ctx = os_malloc(alg->context_size); in nettle_digest_vector()
67 bin_clear_free(ctx, alg->context_size); in nettle_digest_vector()
/external/google-breakpad/src/processor/
Dminidump.cc79 bool IsContextSizeUnique(uint32_t context_size) { in IsContextSizeUnique() argument
81 if (context_size == sizeof(MDRawContextX86)) in IsContextSizeUnique()
83 if (context_size == sizeof(MDRawContextPPC)) in IsContextSizeUnique()
85 if (context_size == sizeof(MDRawContextPPC64)) in IsContextSizeUnique()
87 if (context_size == sizeof(MDRawContextAMD64)) in IsContextSizeUnique()
89 if (context_size == sizeof(MDRawContextSPARC)) in IsContextSizeUnique()
91 if (context_size == sizeof(MDRawContextARM)) in IsContextSizeUnique()
93 if (context_size == sizeof(MDRawContextARM64)) in IsContextSizeUnique()
95 if (context_size == sizeof(MDRawContextARM64_Old)) in IsContextSizeUnique()
97 if (context_size == sizeof(MDRawContextMIPS)) in IsContextSizeUnique()
[all …]
/external/google-breakpad/src/google_breakpad/common/
Dminidump_format.h772 uint32_t context_size; member
/external/libtextclassifier/native/annotator/duration/
Dduration_test.cc101 options.context_size = 1; in BuildFeatureProcessor()
/external/libvpx/vp9/encoder/
Dvp9_encodeframe.c3151 BLOCK_SIZE context_size; in ml_pruning_partition() local
3177 context_size = xd->above_mi->sb_type; in ml_pruning_partition()
3178 if (context_size < bsize) in ml_pruning_partition()
3180 else if (context_size == bsize) in ml_pruning_partition()
3185 context_size = xd->left_mi->sb_type; in ml_pruning_partition()
3186 if (context_size < bsize) in ml_pruning_partition()
3188 else if (context_size == bsize) in ml_pruning_partition()
3193 context_size = prev_mi[0]->sb_type; in ml_pruning_partition()
3194 if (context_size < bsize) in ml_pruning_partition()
3196 else if (context_size == bsize) in ml_pruning_partition()
/external/openthread/src/core/
DMakefile.am518 crypto/context_size.hpp \
DBUILD.gn459 "crypto/context_size.hpp",
/external/bcc/libbpf-tools/x86/
Dvmlinux_505.h76141 u32 context_size; member
Dvmlinux.h76141 u32 context_size; member