MCPcopy Create free account

hub / github.com/OpenNMT/CTranslate2 / functions

Functions2,508 in github.com/OpenNMT/CTranslate2

↓ 6 callersMethodis_in_output
include/ctranslate2/layers/decoder.h:63
↓ 6 callersFunctionis_string
@brief return whether value is a string @sa https://json.nlohmann.me/api/basic_json/is_string/
include/nlohmann/json.hpp:20536
↓ 6 callersFunctionisfinite
Check if finite number. See also:** Documentation for [std::isfinite](https://en.cppreference.com/w/cpp/numeric/math/isfinite). \param arg number to c
include/half_float/half.hpp:4371
↓ 6 callersFunctionjson_pointer
@brief create JSON pointer @sa https://json.nlohmann.me/api/json_pointer/json_pointer/
include/nlohmann/json.hpp:13743
↓ 6 callersMethodlength
include/ctranslate2/batch_reader.h:44
↓ 6 callersFunctionmayiuse_int16
src/types.cc:126
↓ 6 callersFunctionmayiuse_int8
src/types.cc:135
↓ 6 callersMethodnull
include/nlohmann/json.hpp:7229
↓ 6 callersMethodparse
! @brief public parser interface @param[in] strict whether to expect the last token to be EOF @param[in,out] result parsed JSON val
include/nlohmann/json.hpp:12191
↓ 6 callersFunctionpush_back
@brief append an unescaped token at the end of the reference pointer @sa https://json.nlohmann.me/api/json_pointer/push_back/
include/nlohmann/json.hpp:13864
↓ 6 callersFunctionread_string_from_env
src/env.cc:9
↓ 6 callersFunctionset_layer_norm
(spec, variables, scope)
python/ctranslate2/converters/opennmt_py.py:323
↓ 5 callersMethodbinary
include/nlohmann/json.hpp:7259
↓ 5 callersFunctioncend
@brief returns an iterator to one past the last element @sa https://json.nlohmann.me/api/basic_json/cend/
include/nlohmann/json.hpp:21977
↓ 5 callersFunctioncheck_empty_result
tests/translator_test.cc:388
↓ 5 callersFunctionclear_transformers_cache_in_ci
()
python/tests/test_transformers.py:20
↓ 5 callersMethodclose
src/thread_pool.cc:66
↓ 5 callersFunctioncompute_type_to_str
src/types.cc:68
↓ 5 callersMethoddevice_index
include/ctranslate2/models/model.h:67
↓ 5 callersFunctionempty
@brief return whether pointer points to the root document @sa https://json.nlohmann.me/api/json_pointer/empty/
include/nlohmann/json.hpp:13878
↓ 5 callersFunctionescape
include/nlohmann/json.hpp:2974
↓ 5 callersMethodforward_batch
python/cpp/encoder.cc:14
↓ 5 callersMethodfrom_config
Creates a Transformer model specification. Args: num_layers: Number of encoder and decoder layers, or a 2-tuple if the
python/ctranslate2/specs/transformer_spec.py:499
↓ 5 callersMethodget_character
std::istream/std::streambuf use std::char_traits<char>::to_int_type, to ensure that std::char_traits<char>::eof() and the character 0xFF do not end up
include/nlohmann/json.hpp:6187
↓ 5 callersMethodget_file
src/models/model_reader.cc:27
↓ 5 callersMethodindex
src/storage_view.cc:338
↓ 5 callersMethodis_begin
return whether the iterator can be dereferenced
include/nlohmann/json.hpp:12680
↓ 5 callersFunctionis_float_type
src/types.cc:33
↓ 5 callersFunctionmap_to_output_word_ids
src/decoding.cc:1295
↓ 5 callersFunctionmaybe_wait_on_futures
python/cpp/utils.h:109
↓ 5 callersMethodnum_examples
src/batch_reader.cc:148
↓ 5 callersFunctionopen_file_write
src/filesystem.cc:43
↓ 5 callersFunctionrepeat_batch
include/ctranslate2/decoding_utils.h:25
↓ 5 callersMethodscore
src/models/language_model.cc:39
↓ 5 callersMethodscore_batch
src/translator.cc:75
↓ 5 callersMethodset_conv1d
(self, spec, module)
python/ctranslate2/converters/transformers.py:1220
↓ 5 callersMethodset_layer_norm
(self, spec, layer_norm)
python/ctranslate2/converters/transformers.py:1655
↓ 5 callersMethodset_layer_norm
(self, spec, layer_norm)
python/ctranslate2/converters/transformers.py:2742
↓ 5 callersFunctionstr_to_device
src/devices.cc:15
↓ 5 callersMethodunk_id
include/ctranslate2/vocabulary.h:55
↓ 4 callersMethod__init__
Initializes the model specification.
python/ctranslate2/specs/model_spec.py:326
↓ 4 callersFunction_join_scope
(scope, name)
python/ctranslate2/specs/model_spec.py:41
↓ 4 callersFunction_process_iterable
(process_func, iterables, max_batch_size, batch_type, **kwargs)
python/ctranslate2/extensions.py:527
↓ 4 callersFunction_split_scope
(scope)
python/ctranslate2/specs/model_spec.py:47
↓ 4 callersMethodaccept
! @brief public accept interface @param[in] strict whether to expect the last token to be EOF @return whether the input is a proper JSON
include/nlohmann/json.hpp:12251
↓ 4 callersFunctionangle_arg
Reduce argument for trigonometric functions. \param abs half-precision floating-point value \param k value to take quarter period \return \a abs reduc
include/half_float/half.hpp:1604
↓ 4 callersFunctionarithmetic_shift
Platform-independent arithmetic right shift. \param arg integer value in two's complement \param i shift amount (at most 31) \return \a arg right shif
include/half_float/half.hpp:605
↓ 4 callersMethodas_sequence_to_sequence
src/models/model.cc:149
↓ 4 callersFunctionatan2
Fixed point arc tangent. This uses the CORDIC algorithm in vectoring mode. \param my y coordinate as Q0.30 \param mx x coordinate as Q0.30 \param n nu
include/half_float/half.hpp:1582
↓ 4 callersMethodbos_id
include/ctranslate2/vocabulary.h:58
↓ 4 callersFunctioncheck_underflow
Check value for underflow. \param arg non-zero half-precision value to check \return \a arg \exception FE_UNDERFLOW if arg is subnormal
include/half_float/half.hpp:767
↓ 4 callersFunctioncompute_type_to_data_type
src/types.cc:297
↓ 4 callersFunctionconvert_layout_acc_rowcol
include/ctranslate2/ops/flash-attention/utils.h:188
↓ 4 callersFunctiondestroy
include/nlohmann/json.hpp:19732
↓ 4 callersMethoddone
python/cpp/utils.h:87
↓ 4 callersFunctiongemm_rs
include/ctranslate2/ops/flash-attention/utils.h:166
↓ 4 callersMethodget
src/cuda/utils.cc:92
↓ 4 callersFunctionget_arithmetic_value
include/nlohmann/json.hpp:4607
↓ 4 callersMethodget_binary
include/nlohmann/json.hpp:11938
↓ 4 callersMethodget_rotary_params
(self, config, default_rope_theta)
python/ctranslate2/converters/transformers.py:264
↓ 4 callersMethodget_string
include/nlohmann/json.hpp:11905
↓ 4 callersFunctioninsert_iterator
include/nlohmann/json.hpp:22436
↓ 4 callersFunctionis_boolean
@brief return whether value is a boolean @sa https://json.nlohmann.me/api/basic_json/is_boolean/
include/nlohmann/json.hpp:20487
↓ 4 callersMethodlayer_exists
src/models/model.cc:258
↓ 4 callersFunctionmerge_batch_beam
include/ctranslate2/decoding_utils.h:18
↓ 4 callersFunctionpack_gemm_weights
src/cpu/backend.cc:101
↓ 4 callersFunctionread_bool_from_env
src/env.cc:16
↓ 4 callersFunctionrebatch_input
src/batch_reader.cc:174
↓ 4 callersFunctionreplace_substring
include/nlohmann/json.hpp:2955
↓ 4 callersFunctionrun_scoring
src/translator.cc:172
↓ 4 callersFunctionrun_translation
src/translator.cc:182
↓ 4 callersMethodsave
Saves this model on disk. Arguments: output_dir: Output directory where the model is saved.
python/ctranslate2/specs/model_spec.py:364
↓ 4 callersMethodset_decoder
(self, spec, module)
python/ctranslate2/converters/transformers.py:3137
↓ 4 callersFunctionset_device_index
src/devices.cc:97
↓ 4 callersMethodset_end
set iterator to a defined past the end
include/nlohmann/json.hpp:12674
↓ 4 callersFunctionset_layer_norm
(spec, weights, scope, pre_norm=False)
python/ctranslate2/converters/marian.py:254
↓ 4 callersFunctionset_linear
(spec, weights, scope)
python/ctranslate2/converters/openai_gpt2.py:67
↓ 4 callersFunctionsincos
Fixed point sine and cosine. This uses the CORDIC algorithm in rotation mode. \param mz angle in [-pi/2,pi/2] as Q1.30 \param n number of iterations (
include/half_float/half.hpp:1558
↓ 4 callersMethodsize
src/thread_pool.cc:28
↓ 4 callersFunctionsplit_batch_beam
include/ctranslate2/decoding_utils.h:11
↓ 4 callersFunctionsplit_variables
src/models/model.cc:441
↓ 4 callersFunctionstr_to_compute_type
src/types.cc:44
↓ 4 callersFunctiontanh
Hyperbolic tangent. This function is exact to rounding for all rounding modes. See also:** Documentation for [std::tanh](https://en.cppreference.com/
include/half_float/half.hpp:3848
↓ 4 callersMethodtensor_parallel
include/ctranslate2/models/model.h:91
↓ 4 callersFunctiontry_isa
src/cpu/cpu_isa.cc:11
↓ 4 callersMethodwrite_ubjson
! @param[in] j JSON value to serialize @param[in] use_count whether to use '#' prefixes (optimized format) @param[in] use_type wheth
include/nlohmann/json.hpp:15654
↓ 3 callersFunction_assert_same_array
(a, b)
python/tests/test_storage_view.py:10
↓ 3 callersFunction_generate_tokens
(process_func, *args, **kwargs)
python/ctranslate2/extensions.py:473
↓ 3 callersFunction_get_inputters
(inputter)
python/ctranslate2/converters/opennmt_tf.py:361
↓ 3 callersFunction_get_vocab
(dictionary)
python/ctranslate2/converters/fairseq.py:100
↓ 3 callersFunction_load_vocab
(vocab, unk_token="<unk>")
python/ctranslate2/converters/opennmt_tf.py:371
↓ 3 callersMethod_visit
Recursively visits this layer and its children.
python/ctranslate2/specs/model_spec.py:275
↓ 3 callersMethodadd_attribute
(self, key, value)
python/ctranslate2/specs/model_spec.py:308
↓ 3 callersFunctionadd_relative_representations
src/layers/attention.cc:148
↓ 3 callersMethodamax
src/cpu/primitives.cc:108
↓ 3 callersFunctionat
@brief access specified array element with bounds checking @sa https://json.nlohmann.me/api/basic_json/at/
include/nlohmann/json.hpp:21104
↓ 3 callersFunctionbuild_logits
src/decoding.cc:160
↓ 3 callersFunctioncbegin
@brief returns a const iterator to the first element @sa https://json.nlohmann.me/api/basic_json/cbegin/
include/nlohmann/json.hpp:21952
↓ 3 callersFunctionceil_divide
include/ctranslate2/utils.h:84
↓ 3 callersFunctioncompute_copy_size
src/ops/concat_split_slide_cpu.cc:11
← previousnext →201–300 of 2,508, ranked by callers