MCPcopy Create free account

hub / github.com/OpenNMT/CTranslate2 / functions

Functions2,508 in github.com/OpenNMT/CTranslate2

↓ 12 callersMethodset_layer_norm
(self, spec, layer_norm)
python/ctranslate2/converters/transformers.py:4264
↓ 12 callersFunctionset_linear
(spec, module)
python/ctranslate2/converters/fairseq.py:287
↓ 12 callersFunctionset_linear
(spec, variables, scope)
python/ctranslate2/converters/opennmt_py.py:336
↓ 12 callersFunctionsynchronize_stream
src/devices.cc:113
↓ 11 callersFunction_get_model_path
()
python/tests/test_translator.py:15
↓ 11 callersFunctionadd
src/cpu/kernels.cc:265
↓ 11 callersFunctionexp
Exponential function. This function is exact to rounding for all rounding modes. See also:** Documentation for [std::exp](https://en.cppreference.com
include/half_float/half.hpp:2936
↓ 11 callersFunctionmake_sequence_inputs
src/layers/common.cc:12
↓ 11 callersFunctionpow
Power function. This function may be 1 ULP off the correctly rounded exact result for any rounding mode in ~0.00025% of inputs. See also:** Documenta
include/half_float/half.hpp:3427
↓ 11 callersFunctionset_linear
(spec, variables, scope)
python/ctranslate2/converters/eole_ct2.py:323
↓ 11 callersFunctionsub
src/cpu/kernels.cc:279
↓ 11 callersMethodupdate_output_layer
src/layers/decoder.cc:72
↓ 11 callersMethodvalidate
(self)
python/ctranslate2/converters/utils.py:125
↓ 10 callersMethodboolean
include/nlohmann/json.hpp:7234
↓ 10 callersMethodget
! @brief get next character from the input This function provides the interface to the used input adapter. It does not throw in case the
include/nlohmann/json.hpp:11826
↓ 10 callersFunctionlog2
Fixed point binary logarithm. This uses the BKM algorithm in L-mode. \param m mantissa in [1,2) as Q1.30 \param n number of iterations (at most 32) \r
include/half_float/half.hpp:1531
↓ 10 callersFunctionopen_file_read
src/filesystem.cc:37
↓ 10 callersFunctionparser
include/nlohmann/json.hpp:19306
↓ 10 callersFunctionreplicate_heads
src/layers/attention.cc:291
↓ 10 callersMethodset_layer_norm
(self, spec, module)
python/ctranslate2/converters/transformers.py:1225
↓ 10 callersFunctionset_parent
include/nlohmann/json.hpp:19921
↓ 10 callersFunctionsqrt
include/half_float/half.hpp:1480
↓ 10 callersMethodsync_copy
src/storage_view.cc:304
↓ 10 callersMethodto_id
src/vocabulary.cc:67
↓ 10 callersMethodtranslate_file
python/cpp/translator.cc:32
↓ 10 callersMethodvalidate
Verify that the required weights are set. Raises: ValueError: If a required weight is not set in the specification.
python/ctranslate2/specs/model_spec.py:101
↓ 9 callersMethodapply
src/decoding_utils.cc:19
↓ 9 callersMethodend_array
include/nlohmann/json.hpp:7284
↓ 9 callersFunctionfind
include/nlohmann/json.hpp:19166
↓ 9 callersMethodget_flag_with_default
src/models/model.cc:269
↓ 9 callersFunctionget_gemm_backend
src/cpu/backend.cc:50
↓ 9 callersFunctionis_binary
@brief return whether value is a binary array @sa https://json.nlohmann.me/api/basic_json/is_binary/
include/nlohmann/json.hpp:20543
↓ 9 callersMethodregister_source_vocabulary
Registers a source vocabulary of tokens. Arguments: tokens: List of source tokens.
python/ctranslate2/specs/model_spec.py:488
↓ 9 callersMethodregister_target_vocabulary
Registers a target vocabulary of tokens. Arguments: tokens: List of target tokens.
python/ctranslate2/specs/model_spec.py:496
↓ 9 callersMethodremove_padding
src/padder.cc:56
↓ 9 callersMethodscore_batch
python/cpp/generator.cc:81
↓ 9 callersFunctionsign_mask
Platform-independent sign mask. \param arg integer value in two's complement \retval -1 if \a arg negative \retval 0 if \a arg positive
include/half_float/half.hpp:591
↓ 9 callersMethodstart_array
include/nlohmann/json.hpp:7279
↓ 9 callersMethodstride
include/ctranslate2/storage_view.h:131
↓ 9 callersMethodstring
include/nlohmann/json.hpp:7254
↓ 9 callersMethodto_ids
src/vocabulary.cc:97
↓ 8 callersFunction_get_variable
(variables, name)
python/ctranslate2/converters/opennmt_py.py:351
↓ 8 callersFunction_get_variable
(variables, name)
python/ctranslate2/converters/eole_ct2.py:338
↓ 8 callersMethodconvert_from_args
Helper function to call :meth:`ctranslate2.converters.Converter.convert` with the parsed command line options. Arguments: a
python/ctranslate2/converters/converter.py:40
↓ 8 callersMethoddeclare_arguments
Adds common conversion options to the command line parser. Arguments: parser: Command line argument parser.
python/ctranslate2/converters/converter.py:15
↓ 8 callersFunctiondecode
src/decoding.cc:1306
↓ 8 callersMethoddevice
python/cpp/replica_pool.h:77
↓ 8 callersFunctiondivide64
64-bit division. \param x upper 32 bit of dividend \param y divisor \param s variable to store sticky bit for rounding \return (\a x << 32) / \a y
include/half_float/half.hpp:1380
↓ 8 callersFunctiondump_integer
include/nlohmann/json.hpp:18598
↓ 8 callersMethodeffective_compute_type
include/ctranslate2/models/model.h:79
↓ 8 callersMethodend_object
include/nlohmann/json.hpp:7274
↓ 8 callersFunctiongemm
include/ctranslate2/ops/flash-attention/utils.h:139
↓ 8 callersFunctionis_eos
include/ctranslate2/decoding_utils.h:31
↓ 8 callersFunctionldexp
Multiply by power of two. This function is exact to rounding for all rounding modes. See also:** Documentation for [std::ldexp](https://en.cppreferen
include/half_float/half.hpp:4211
↓ 8 callersFunctionload_vocabulary
src/models/model_reader.cc:79
↓ 8 callersFunctionmultiply64
64-bit multiplication. \param x first factor \param y second factor \return upper 32 bit of \a x * \a y rounded to nearest
include/half_float/half.hpp:1366
↓ 8 callersMethodoutput_layer_is_updated
include/ctranslate2/layers/decoder.h:59
↓ 8 callersMethodoutput_size
src/layers/common.cc:60
↓ 8 callersMethodpreferred_size_multiple
include/ctranslate2/models/model.h:83
↓ 8 callersFunctionrand_vector
tests/benchmark_utils.h:39
↓ 8 callersFunctionset_layer_norm
(spec, module)
python/ctranslate2/converters/fairseq.py:282
↓ 8 callersMethodstart_object
include/nlohmann/json.hpp:7264
↓ 7 callersFunction_create_vocab
(tmp_dir, name="vocab", size=10)
python/tests/test_opennmt_tf.py:103
↓ 7 callersMethodapply
src/layers/attention_layer.cc:213
↓ 7 callersFunctioncompares_unordered
include/nlohmann/json.hpp:22843
↓ 7 callersFunctiondefault_model_dir
tests/test_utils.cc:9
↓ 7 callersMethoddump
! @brief internal implementation of the serialization function This function is called by the public member function dump and organizes t
include/nlohmann/json.hpp:17991
↓ 7 callersMethodencode
python/cpp/whisper.cc:26
↓ 7 callersFunctionexp2
Fixed point binary exponential. This uses the BKM algorithm in E-mode. \param m exponent in [0,1) as Q0.31 \param n number of iterations (at most 32)
include/half_float/half.hpp:1504
↓ 7 callersMethodhas_attention
include/ctranslate2/translation.h:143
↓ 7 callersMethodhas_scores
include/ctranslate2/generation.h:90
↓ 7 callersFunctionif
include/nlohmann/json.hpp:22814
↓ 7 callersFunctionload_examples
src/batch_reader.cc:158
↓ 7 callersMethodoptimize
Recursively applies some optimizations to this layer: * Alias variables with the same shape and value. * Quantize weights. A
python/ctranslate2/specs/model_spec.py:262
↓ 7 callersMethodput
src/thread_pool.cc:37
↓ 7 callersFunctionset_layer_norm
(spec, variables, scope)
python/ctranslate2/converters/eole_ct2.py:310
↓ 7 callersMethodset_layer_norm
(self, spec, layer_norm)
python/ctranslate2/converters/transformers.py:1988
↓ 7 callersMethodset_layer_norm
(self, spec, layer_norm)
python/ctranslate2/converters/transformers.py:2260
↓ 7 callersFunctionset_linear
(spec, weights, scope, suffix="", reuse_weight=None)
python/ctranslate2/converters/marian.py:260
↓ 7 callersMethodset_linear
(self, spec, module)
python/ctranslate2/converters/opennmt_tf.py:305
↓ 7 callersMethodset_position_encodings
(self, spec, module)
python/ctranslate2/converters/transformers.py:253
↓ 7 callersFunctionstr_to_batch_type
src/batch_reader.cc:10
↓ 7 callersMethodto_original_word_id
include/ctranslate2/layers/decoder.h:71
↓ 7 callersFunctionunsupported_compute_type
src/types.cc:151
↓ 6 callersMethod__init__
(self, glu=False, rms_norm=False)
python/ctranslate2/specs/transformer_spec.py:444
↓ 6 callersFunction_get_model_path_with_vmap
(tmp_dir, tokens)
python/tests/test_translator.py:21
↓ 6 callersMethodallocate
src/cpu/allocator.cc:56
↓ 6 callersFunctionapply_bias_and_activation
activation_type(x + bias + residual)
src/ops/gemm.cc:11
↓ 6 callersFunctioncompsignal
Check and signal for any NaN. \param x first half-precision value to check \param y second half-precision value to check \retval true if either \a x o
include/half_float/half.hpp:679
↓ 6 callersMethodcontains
src/vocabulary.cc:56
↓ 6 callersFunctionconvert
can't use conversion operator because of ambiguity
include/nlohmann/json.hpp:14516
↓ 6 callersFunctiondevice_to_str
src/devices.cc:33
↓ 6 callersFunctioneprint
(*args, **kwargs)
tools/tune_inter_intra.py:8
↓ 6 callersMethodforward
src/models/language_model.cc:66
↓ 6 callersMethodforward_batch_async
src/encoder.cc:5
↓ 6 callersMethodfree
src/cpu/allocator.cc:63
↓ 6 callersFunctiongather_beam_flat
src/decoding.cc:15
↓ 6 callersFunctionget_cuda_stream
src/cuda/utils.cc:122
↓ 6 callersMethodget_next
src/batch_reader.cc:82
↓ 6 callersMethodinitialize
src/models/whisper.cc:25
← previousnext →101–200 of 2,508, ranked by callers