Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenNMT/CTranslate2
/ functions
Functions
2,508 in github.com/OpenNMT/CTranslate2
⨍
Functions
2,508
◇
Types & classes
601
↳
Endpoints
4
↓ 6 callers
Method
is_in_output
include/ctranslate2/layers/decoder.h:63
↓ 6 callers
Function
is_string
@brief return whether value is a string @sa https://json.nlohmann.me/api/basic_json/is_string/
include/nlohmann/json.hpp:20536
↓ 6 callers
Function
isfinite
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 callers
Function
json_pointer
@brief create JSON pointer @sa https://json.nlohmann.me/api/json_pointer/json_pointer/
include/nlohmann/json.hpp:13743
↓ 6 callers
Method
length
include/ctranslate2/batch_reader.h:44
↓ 6 callers
Function
mayiuse_int16
src/types.cc:126
↓ 6 callers
Function
mayiuse_int8
src/types.cc:135
↓ 6 callers
Method
null
include/nlohmann/json.hpp:7229
↓ 6 callers
Method
parse
! @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 callers
Function
push_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 callers
Function
read_string_from_env
src/env.cc:9
↓ 6 callers
Function
set_layer_norm
(spec, variables, scope)
python/ctranslate2/converters/opennmt_py.py:323
↓ 5 callers
Method
binary
include/nlohmann/json.hpp:7259
↓ 5 callers
Function
cend
@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 callers
Function
check_empty_result
tests/translator_test.cc:388
↓ 5 callers
Function
clear_transformers_cache_in_ci
()
python/tests/test_transformers.py:20
↓ 5 callers
Method
close
src/thread_pool.cc:66
↓ 5 callers
Function
compute_type_to_str
src/types.cc:68
↓ 5 callers
Method
device_index
include/ctranslate2/models/model.h:67
↓ 5 callers
Function
empty
@brief return whether pointer points to the root document @sa https://json.nlohmann.me/api/json_pointer/empty/
include/nlohmann/json.hpp:13878
↓ 5 callers
Function
escape
include/nlohmann/json.hpp:2974
↓ 5 callers
Method
forward_batch
python/cpp/encoder.cc:14
↓ 5 callers
Method
from_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 callers
Method
get_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 callers
Method
get_file
src/models/model_reader.cc:27
↓ 5 callers
Method
index
src/storage_view.cc:338
↓ 5 callers
Method
is_begin
return whether the iterator can be dereferenced
include/nlohmann/json.hpp:12680
↓ 5 callers
Function
is_float_type
src/types.cc:33
↓ 5 callers
Function
map_to_output_word_ids
src/decoding.cc:1295
↓ 5 callers
Function
maybe_wait_on_futures
python/cpp/utils.h:109
↓ 5 callers
Method
num_examples
src/batch_reader.cc:148
↓ 5 callers
Function
open_file_write
src/filesystem.cc:43
↓ 5 callers
Function
repeat_batch
include/ctranslate2/decoding_utils.h:25
↓ 5 callers
Method
score
src/models/language_model.cc:39
↓ 5 callers
Method
score_batch
src/translator.cc:75
↓ 5 callers
Method
set_conv1d
(self, spec, module)
python/ctranslate2/converters/transformers.py:1220
↓ 5 callers
Method
set_layer_norm
(self, spec, layer_norm)
python/ctranslate2/converters/transformers.py:1655
↓ 5 callers
Method
set_layer_norm
(self, spec, layer_norm)
python/ctranslate2/converters/transformers.py:2742
↓ 5 callers
Function
str_to_device
src/devices.cc:15
↓ 5 callers
Method
unk_id
include/ctranslate2/vocabulary.h:55
↓ 4 callers
Method
__init__
Initializes the model specification.
python/ctranslate2/specs/model_spec.py:326
↓ 4 callers
Function
_join_scope
(scope, name)
python/ctranslate2/specs/model_spec.py:41
↓ 4 callers
Function
_process_iterable
(process_func, iterables, max_batch_size, batch_type, **kwargs)
python/ctranslate2/extensions.py:527
↓ 4 callers
Function
_split_scope
(scope)
python/ctranslate2/specs/model_spec.py:47
↓ 4 callers
Method
accept
! @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 callers
Function
angle_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 callers
Function
arithmetic_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 callers
Method
as_sequence_to_sequence
src/models/model.cc:149
↓ 4 callers
Function
atan2
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 callers
Method
bos_id
include/ctranslate2/vocabulary.h:58
↓ 4 callers
Function
check_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 callers
Function
compute_type_to_data_type
src/types.cc:297
↓ 4 callers
Function
convert_layout_acc_rowcol
include/ctranslate2/ops/flash-attention/utils.h:188
↓ 4 callers
Function
destroy
include/nlohmann/json.hpp:19732
↓ 4 callers
Method
done
python/cpp/utils.h:87
↓ 4 callers
Function
gemm_rs
include/ctranslate2/ops/flash-attention/utils.h:166
↓ 4 callers
Method
get
src/cuda/utils.cc:92
↓ 4 callers
Function
get_arithmetic_value
include/nlohmann/json.hpp:4607
↓ 4 callers
Method
get_binary
include/nlohmann/json.hpp:11938
↓ 4 callers
Method
get_rotary_params
(self, config, default_rope_theta)
python/ctranslate2/converters/transformers.py:264
↓ 4 callers
Method
get_string
include/nlohmann/json.hpp:11905
↓ 4 callers
Function
insert_iterator
include/nlohmann/json.hpp:22436
↓ 4 callers
Function
is_boolean
@brief return whether value is a boolean @sa https://json.nlohmann.me/api/basic_json/is_boolean/
include/nlohmann/json.hpp:20487
↓ 4 callers
Method
layer_exists
src/models/model.cc:258
↓ 4 callers
Function
merge_batch_beam
include/ctranslate2/decoding_utils.h:18
↓ 4 callers
Function
pack_gemm_weights
src/cpu/backend.cc:101
↓ 4 callers
Function
read_bool_from_env
src/env.cc:16
↓ 4 callers
Function
rebatch_input
src/batch_reader.cc:174
↓ 4 callers
Function
replace_substring
include/nlohmann/json.hpp:2955
↓ 4 callers
Function
run_scoring
src/translator.cc:172
↓ 4 callers
Function
run_translation
src/translator.cc:182
↓ 4 callers
Method
save
Saves this model on disk. Arguments: output_dir: Output directory where the model is saved.
python/ctranslate2/specs/model_spec.py:364
↓ 4 callers
Method
set_decoder
(self, spec, module)
python/ctranslate2/converters/transformers.py:3137
↓ 4 callers
Function
set_device_index
src/devices.cc:97
↓ 4 callers
Method
set_end
set iterator to a defined past the end
include/nlohmann/json.hpp:12674
↓ 4 callers
Function
set_layer_norm
(spec, weights, scope, pre_norm=False)
python/ctranslate2/converters/marian.py:254
↓ 4 callers
Function
set_linear
(spec, weights, scope)
python/ctranslate2/converters/openai_gpt2.py:67
↓ 4 callers
Function
sincos
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 callers
Method
size
src/thread_pool.cc:28
↓ 4 callers
Function
split_batch_beam
include/ctranslate2/decoding_utils.h:11
↓ 4 callers
Function
split_variables
src/models/model.cc:441
↓ 4 callers
Function
str_to_compute_type
src/types.cc:44
↓ 4 callers
Function
tanh
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 callers
Method
tensor_parallel
include/ctranslate2/models/model.h:91
↓ 4 callers
Function
try_isa
src/cpu/cpu_isa.cc:11
↓ 4 callers
Method
write_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 callers
Function
_assert_same_array
(a, b)
python/tests/test_storage_view.py:10
↓ 3 callers
Function
_generate_tokens
(process_func, *args, **kwargs)
python/ctranslate2/extensions.py:473
↓ 3 callers
Function
_get_inputters
(inputter)
python/ctranslate2/converters/opennmt_tf.py:361
↓ 3 callers
Function
_get_vocab
(dictionary)
python/ctranslate2/converters/fairseq.py:100
↓ 3 callers
Function
_load_vocab
(vocab, unk_token="<unk>")
python/ctranslate2/converters/opennmt_tf.py:371
↓ 3 callers
Method
_visit
Recursively visits this layer and its children.
python/ctranslate2/specs/model_spec.py:275
↓ 3 callers
Method
add_attribute
(self, key, value)
python/ctranslate2/specs/model_spec.py:308
↓ 3 callers
Function
add_relative_representations
src/layers/attention.cc:148
↓ 3 callers
Method
amax
src/cpu/primitives.cc:108
↓ 3 callers
Function
at
@brief access specified array element with bounds checking @sa https://json.nlohmann.me/api/basic_json/at/
include/nlohmann/json.hpp:21104
↓ 3 callers
Function
build_logits
src/decoding.cc:160
↓ 3 callers
Function
cbegin
@brief returns a const iterator to the first element @sa https://json.nlohmann.me/api/basic_json/cbegin/
include/nlohmann/json.hpp:21952
↓ 3 callers
Function
ceil_divide
include/ctranslate2/utils.h:84
↓ 3 callers
Function
compute_copy_size
src/ops/concat_split_slide_cpu.cc:11
← previous
next →
201–300 of 2,508, ranked by callers