MCPcopy Create free account

hub / github.com/OpenNMT/CTranslate2 / functions

Functions2,508 in github.com/OpenNMT/CTranslate2

↓ 3 callersFunctioncompute_iter_size
src/ops/concat_split_slide_cpu.cc:18
↓ 3 callersFunctionconvert_to_original_word_ids
src/decoding.cc:69
↓ 3 callersFunctioncos
Cosine function. This function is exact to rounding for all rounding modes. See also:** Documentation for [std::cos](https://en.cppreference.com/w/cp
include/half_float/half.hpp:3589
↓ 3 callersFunctioncount_tokens
(generated_token)
tools/benchmark_tensor_parallel/benchmark.py:37
↓ 3 callersFunctioncpu_supports_avx
src/cpu/cpu_info.cc:26
↓ 3 callersFunctioncpu_supports_avx2
src/cpu/cpu_info.cc:30
↓ 3 callersFunctioncpu_supports_neon
src/cpu/cpu_info.cc:54
↓ 3 callersFunctioncpu_vendor
src/cpu/cpu_info.cc:14
↓ 3 callersFunctioncrbegin
@brief returns a const reverse iterator to the last element @sa https://json.nlohmann.me/api/basic_json/crbegin/
include/nlohmann/json.hpp:22014
↓ 3 callersMethoddecoder_start_token
include/ctranslate2/models/sequence_to_sequence.h:28
↓ 3 callersFunctiondequantize_kernel
src/ops/dequantize_cpu.cc:12
↓ 3 callersMethoddump
src/profiler.cc:81
↓ 3 callersFunctionemplace
include/nlohmann/json.hpp:18934
↓ 3 callersMethodeos_id
include/ctranslate2/vocabulary.h:61
↓ 3 callersFunctiongemm_backend_to_str
src/cpu/backend.cc:33
↓ 3 callersFunctionget_default_float_type
src/types.cc:341
↓ 3 callersFunctionget_ruy_context
src/cpu/backend.cc:109
↓ 3 callersFunctiongpu_has_fp16_tensor_cores
src/cuda/utils.cc:217
↓ 3 callersMethodhas_bias
(self)
python/ctranslate2/specs/common_spec.py:51
↓ 3 callersFunctionhyperbolic_args
Get exponentials for hyperbolic computation \param abs half-precision floating-point value \param exp variable to take unbiased exponent of larger res
include/half_float/half.hpp:1650
↓ 3 callersFunctionindex_spec
(spec, index)
python/ctranslate2/specs/model_spec.py:71
↓ 3 callersFunctioninit_logger
src/logging.cc:64
↓ 3 callersFunctionis_number_float
@brief return whether value is a floating-point number @sa https://json.nlohmann.me/api/basic_json/is_number_float/
include/nlohmann/json.hpp:20515
↓ 3 callersFunctionis_number_integer
@brief return whether value is an integer number @sa https://json.nlohmann.me/api/basic_json/is_number_integer/
include/nlohmann/json.hpp:20501
↓ 3 callersFunctionmake_relative_positions
src/layers/attention.cc:16
↓ 3 callersFunctionmayiuse_bfloat16
src/types.cc:94
↓ 3 callersFunctionmayiuse_float16
src/types.cc:110
↓ 3 callersMethodmoved_or_copied
include/nlohmann/json.hpp:14726
↓ 3 callersMethodnum_input_features
include/ctranslate2/layers/encoder.h:12
↓ 3 callersMethodoutput_size
include/ctranslate2/layers/transformer.h:27
↓ 3 callersMethodoutput_type
include/ctranslate2/layers/transformer.h:23
↓ 3 callersFunctionparse
include/nlohmann/json.hpp:23213
↓ 3 callersFunctionprefer_u8s8s32_gemm
src/cpu/backend.cc:96
↓ 3 callersFunctionprint_as_percentage
src/profiler.cc:30
↓ 3 callersMethodprocess_cross_attention
src/layers/attention.cc:371
↓ 3 callersMethodregister_file
Registers a file to be saved in the model directory.
python/ctranslate2/specs/model_spec.py:354
↓ 3 callersMethodregister_variable_alias
src/models/model.cc:277
↓ 3 callersFunctionremove_padding
src/models/whisper.cc:373
↓ 3 callersMethodreplicate_state
src/layers/decoder.cc:57
↓ 3 callersMethodrun
(self)
tools/benchmark/benchmark_all.py:54
↓ 3 callersMethodsaved_compute_type
include/ctranslate2/models/model.h:71
↓ 3 callersMethodsearch
src/decoding.cc:424
↓ 3 callersMethodset_attention
(self, spec, attention, self_attention=False)
python/ctranslate2/converters/transformers.py:379
↓ 3 callersMethodset_begin
set iterator to a defined beginning
include/nlohmann/json.hpp:12668
↓ 3 callersMethodset_encoder
(self, spec, encoder)
python/ctranslate2/converters/transformers.py:332
↓ 3 callersFunctionset_layer_norm
(spec, weights, scope)
python/ctranslate2/converters/openai_gpt2.py:62
↓ 3 callersMethodset_layer_norm
(self, spec, module)
python/ctranslate2/converters/opennmt_tf.py:301
↓ 3 callersMethodset_layer_norm
(self, spec, module)
python/ctranslate2/converters/transformers.py:1492
↓ 3 callersMethodset_layer_norm
(self, spec, layer_norm)
python/ctranslate2/converters/transformers.py:1558
↓ 3 callersMethodset_layer_norm
(self, spec, layer_norm)
python/ctranslate2/converters/transformers.py:1791
↓ 3 callersMethodset_layer_norm
(self, spec, layer_norm)
python/ctranslate2/converters/transformers.py:2459
↓ 3 callersMethodset_layer_norm
(self, spec, layer_norm)
python/ctranslate2/converters/transformers.py:2598
↓ 3 callersMethodset_layer_norm
(self, spec, layer_norm)
python/ctranslate2/converters/transformers.py:3005
↓ 3 callersFunctionset_multi_head_attention
(spec, weights, scope, self_attention=False)
python/ctranslate2/converters/marian.py:224
↓ 3 callersFunctionset_multi_head_attention
(spec, module, self_attention=False)
python/ctranslate2/converters/fairseq.py:266
↓ 3 callersFunctionset_multi_head_attention
(spec, variables, scope, self_attention=False)
python/ctranslate2/converters/opennmt_py.py:302
↓ 3 callersFunctionset_multi_head_attention
(spec, variables, scope, self_attention=False)
python/ctranslate2/converters/eole_ct2.py:289
↓ 3 callersMethodset_multi_head_attention
(self, spec, module, self_attention=False)
python/ctranslate2/converters/opennmt_tf.py:269
↓ 3 callersFunctionsin
Sine function. This function is exact to rounding for all rounding modes. See also:** Documentation for [std::sin](https://en.cppreference.com/w/cpp/
include/half_float/half.hpp:3556
↓ 3 callersFunctionsplit_string
src/utils.cc:119
↓ 3 callersMethodsum
src/cpu/primitives.cc:86
↓ 3 callersMethodto_tokens
src/vocabulary.cc:81
↓ 3 callersFunctiontype
@brief return the type of the JSON value (explicit) @sa https://json.nlohmann.me/api/basic_json/type/
include/nlohmann/json.hpp:20459
↓ 3 callersFunctionunget
! @brief unget current character (read it again on next get) We implement unget by setting variable next_unget to true. The input is not
include/nlohmann/json.hpp:8675
↓ 3 callersMethodunload_model
python/cpp/replica_pool.h:110
↓ 3 callersFunctionuse_true_fp16_gemm
src/cuda/utils.cc:262
↓ 3 callersMethodvariables
Recursively returns the weights from this layer and its children. Arguments: prefix: Prefix to prepend to all variable names.
python/ctranslate2/specs/model_spec.py:143
↓ 3 callersFunctionwait_on_futures
python/cpp/utils.h:100
↓ 3 callersMethodwith_source_bos
include/ctranslate2/models/sequence_to_sequence.h:20
↓ 3 callersMethodwith_source_eos
include/ctranslate2/models/sequence_to_sequence.h:24
↓ 2 callersMethod_apply_layer_types
(self, side_config, spec_layers)
python/ctranslate2/converters/transformers.py:4104
↓ 2 callersFunction_callback
(step_result)
python/tests/test_translator.py:217
↓ 2 callersFunction_list_members
(category, predicate)
docs/generate.py:26
↓ 2 callersFunction_process_file
(image_name, script, input_file, output_file)
tools/benchmark/benchmark.py:61
↓ 2 callersFunction_reformat_typehints
(content)
docs/conf.py:53
↓ 2 callersFunction_save_vocabulary
(output_dir, name, tokens)
python/ctranslate2/specs/model_spec.py:620
↓ 2 callersMethod_set_self_attention
( self, attn_spec, layer, quant_type=common_spec.Quantization.CT2 )
python/ctranslate2/converters/transformers.py:4248
↓ 2 callersFunction_shorten_file
(path, num_lines=64)
tools/benchmark/benchmark_all.py:147
↓ 2 callersMethod_side_kwargs
(self, side_config)
python/ctranslate2/converters/transformers.py:4075
↓ 2 callersFunction_start_translation
( image_name, source_file, output_file, environment, num_cpus, use_gpu, )
tools/benchmark/benchmark.py:87
↓ 2 callersFunction_to_numpy
(storage, device)
python/tests/test_transformers.py:368
↓ 2 callersFunction_translate
()
python/tests/test_translator.py:792
↓ 2 callersMethodadd
include/ctranslate2/primitives.h:48
↓ 2 callersFunctionappend_step_output
src/decoding.cc:117
↓ 2 callersMethodapply_first
src/models/whisper.cc:209
↓ 2 callersFunctionapply_min_length
src/decoding.cc:384
↓ 2 callersFunctionatan2_args
Get arguments for atan2 function. \param abs half-precision floating-point value \return \a abs and sqrt(1 - \a abs^2) as Q0.30
include/half_float/half.hpp:1627
↓ 2 callersFunctionbenchmark_image
( image_name, source_file, target_file, num_samples=1, environment=None, num_cpus=4,
tools/benchmark/benchmark.py:190
↓ 2 callersFunctionbuild_embeddings_scale
src/layers/transformer.cc:381
↓ 2 callersFunctionbuild_position_encoder
src/layers/transformer.cc:369
↓ 2 callersFunctionbuiltin_isnan
include/half_float/half.hpp:562
↓ 2 callersFunctionbuiltin_signbit
include/half_float/half.hpp:578
↓ 2 callersFunctioncheck_normalized_score
tests/translator_test.cc:343
↓ 2 callersFunctioncheck_version
src/models/model.cc:458
↓ 2 callersFunctioncompute_alignments
src/models/whisper.cc:387
↓ 2 callersFunctioncompute_boundaries
include/nlohmann/json.hpp:16972
↓ 2 callersFunctioncompute_output_shape
src/ops/gather.cc:10
↓ 2 callersFunctioncompute_size
include/ctranslate2/storage_view.h:31
↓ 2 callersMethodconvert
src/cpu/primitives.cc:73
↓ 2 callersMethodcopy
src/cpu/primitives.cc:67
← previousnext →301–400 of 2,508, ranked by callers