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
↓ 2 callers
Function
copy_state
src/models/language_model.cc:135
↓ 2 callers
Method
copy_to
src/models/model.cc:786
↓ 2 callers
Function
cpu_supports_avx512
src/cpu/cpu_info.cc:34
↓ 2 callers
Function
crend
@brief returns a const reverse iterator to one before the first @sa https://json.nlohmann.me/api/basic_json/crend/
include/nlohmann/json.hpp:22021
↓ 2 callers
Function
csv_print
(*args)
tools/tune_inter_intra.py:11
↓ 2 callers
Method
detect_language
python/cpp/whisper.cc:83
↓ 2 callers
Function
emplace_back
include/nlohmann/json.hpp:22379
↓ 2 callers
Function
ends_with
src/utils.cc:109
↓ 2 callers
Method
equal
(self, other)
python/ctranslate2/specs/model_spec.py:652
↓ 2 callers
Function
erase_internal
include/nlohmann/json.hpp:21733
↓ 2 callers
Function
erf
include/half_float/half.hpp:1918
↓ 2 callers
Function
expect_array_eq
tests/test_utils.h:26
↓ 2 callers
Function
extract_features
src/utils.cc:159
↓ 2 callers
Function
file_input_adapter
include/nlohmann/json.hpp:6120
↓ 2 callers
Function
finalize_result
src/decoding.cc:237
↓ 2 callers
Function
flatten
@brief return flattened JSON value @sa https://json.nlohmann.me/api/basic_json/flatten/
include/nlohmann/json.hpp:23821
↓ 2 callers
Method
forward_merged
src/layers/attention.cc:625
↓ 2 callers
Method
forward_prompt
src/layers/whisper.cc:64
↓ 2 callers
Function
from_json_array_impl
include/nlohmann/json.hpp:4750
↓ 2 callers
Function
from_json_inplace_array_impl
include/nlohmann/json.hpp:4833
↓ 2 callers
Function
from_json_tuple_impl
include/nlohmann/json.hpp:4939
↓ 2 callers
Method
from_numpy
(cls, array)
python/ctranslate2/specs/model_spec.py:728
↓ 2 callers
Method
generate
python/cpp/whisper.cc:30
↓ 2 callers
Function
generate_sinusoidal_position_encoding
src/layers/common.cc:204
↓ 2 callers
Method
getCurRank
src/devices.cc:223
↓ 2 callers
Function
get_allocator
@brief returns the allocator associated with the container @sa https://json.nlohmann.me/api/basic_json/get_allocator/
include/nlohmann/json.hpp:19416
↓ 2 callers
Function
get_array_interface
python/cpp/storage_view.cc:87
↓ 2 callers
Function
get_batch_size_increment
src/batch_reader.cc:18
↓ 2 callers
Function
get_gpu_count
src/utils.cc:73
↓ 2 callers
Function
get_gpu_count
src/cuda/utils.cc:175
↓ 2 callers
Function
get_max_candidates
src/decoding.cc:355
↓ 2 callers
Function
get_max_step
src/decoding.cc:359
↓ 2 callers
Method
get_model_spec
(self, model)
python/ctranslate2/converters/transformers.py:1237
↓ 2 callers
Function
get_no_speech_probs_from_logits
src/models/whisper.cc:129
↓ 2 callers
Function
get_results_from_futures
src/translator.cc:54
↓ 2 callers
Function
get_so_handle
src/cuda/mpi_stub.cc:22
↓ 2 callers
Function
get_sot_index
src/models/whisper.cc:146
↓ 2 callers
Method
get_vocabulary_map
src/models/sequence_to_sequence.cc:91
↓ 2 callers
Function
grisu2
include/nlohmann/json.hpp:17611
↓ 2 callers
Function
grisu2_round
include/nlohmann/json.hpp:17329
↓ 2 callers
Function
has_gemm_backend
src/cpu/backend.cc:92
↓ 2 callers
Method
has_merged_encoder_attention
include/ctranslate2/layers/attention.h:51
↓ 2 callers
Method
has_positional_embeddings
include/ctranslate2/layers/attention.h:47
↓ 2 callers
Function
hex_bytes
! * @brief convert a byte to a uppercase hex representation * @param[in] byte byte to represent * @return representation ("00".."FF")
include/nlohmann/json.hpp:18561
↓ 2 callers
Method
is_encoded
include/ctranslate2/layers/whisper.h:34
↓ 2 callers
Method
is_end
return whether the iterator is at end
include/nlohmann/json.hpp:12686
↓ 2 callers
Method
is_errored
include/nlohmann/json.hpp:7114
↓ 2 callers
Function
is_last_step
src/decoding.cc:377
↓ 2 callers
Function
is_number_unsigned
@brief return whether value is an unsigned integer number @sa https://json.nlohmann.me/api/basic_json/is_number_unsigned/
include/nlohmann/json.hpp:20508
↓ 2 callers
Method
is_scalar
(self)
python/ctranslate2/specs/model_spec.py:635
↓ 2 callers
Function
isinf
Check for infinity. See also:** Documentation for [std::isinf](https://en.cppreference.com/w/cpp/numeric/math/isinf). \param arg number to check \retv
include/half_float/half.hpp:4378
↓ 2 callers
Method
item_size
src/storage_view.cc:177
↓ 2 callers
Function
join_string
src/utils.cc:141
↓ 2 callers
Function
little_endianness
! @brief determine system byte order @return true if and only if system's byte order is little endian @note from https://stackoverflow.com/a/1001328
include/nlohmann/json.hpp:9127
↓ 2 callers
Method
load_model
python/cpp/replica_pool.h:141
↓ 2 callers
Method
load_model
(self, model_class, model_name_or_path, **kwargs)
python/ctranslate2/converters/transformers.py:173
↓ 2 callers
Function
make_asymmetric_relative_positions
src/layers/attention.cc:34
↓ 2 callers
Function
make_logits_processors
src/decoding.cc:1090
↓ 2 callers
Function
make_sampler
src/decoding.cc:1066
↓ 2 callers
Function
make_search_strategy
src/decoding.cc:1076
↓ 2 callers
Function
module_is_public
(module)
docs/generate.py:50
↓ 2 callers
Function
move_variables_to_device
src/models/model.cc:92
↓ 2 callers
Method
num_source_vocabularies
src/models/sequence_to_sequence.cc:79
↓ 2 callers
Function
operator++
! @brief post-increment (it++) @pre The iterator is initialized; i.e. `m_object != nullptr`. */
include/nlohmann/json.hpp:13152
↓ 2 callers
Function
operator--
! @brief post-decrement (it--) @pre The iterator is initialized; i.e. `m_object != nullptr`. */
include/nlohmann/json.hpp:13203
↓ 2 callers
Method
output_size
src/layers/attention_layer.cc:148
↓ 2 callers
Method
output_size
include/ctranslate2/layers/wav2vec2bert.h:27
↓ 2 callers
Method
output_size
include/ctranslate2/layers/wav2vec2.h:70
↓ 2 callers
Method
output_type
include/ctranslate2/layers/wav2vec2bert.h:23
↓ 2 callers
Method
output_type
include/ctranslate2/layers/wav2vec2.h:61
↓ 2 callers
Function
parallel_unary_transform
src/cpu/parallel.h:97
↓ 2 callers
Function
performance_with_parameters
(inter_threads, intra_threads)
tools/tune_inter_intra.py:35
↓ 2 callers
Function
permute
src/cuda/helpers.h:103
↓ 2 callers
Function
pop_back
@brief remove last reference token @sa https://json.nlohmann.me/api/json_pointer/pop_back/
include/nlohmann/json.hpp:13840
↓ 2 callers
Function
quad_allreduce_
include/ctranslate2/ops/flash-attention/softmax.h:41
↓ 2 callers
Method
quant_method
include/ctranslate2/models/model.h:99
↓ 2 callers
Function
quantize_s16_kernel
src/ops/quantize_cpu.cc:28
↓ 2 callers
Function
quantize_s8_batch
src/cpu/kernels.cc:622
↓ 2 callers
Function
read_int_from_env
src/env.cc:20
↓ 2 callers
Function
reduce_m256
src/cpu/vec_avx.h:27
↓ 2 callers
Function
repeat_vector
include/ctranslate2/utils.h:46
↓ 2 callers
Function
replicate_batches
Expand a 4-D tensor [batch, heads, time, d_head] along the batch dimension by `repeats`, producing [batch*repeats, heads, time, d_head].
src/layers/attention.cc:619
↓ 2 callers
Function
report_stream_error
src/models/model.cc:43
↓ 2 callers
Method
reserved_memory
src/storage_view.cc:141
↓ 2 callers
Function
reset
reset token_buffer; current character is beginning of token
include/nlohmann/json.hpp:8621
↓ 2 callers
Function
restore_batch_ids_in_callback
include/ctranslate2/generation.h:120
↓ 2 callers
Method
save
src/layers/decoder.cc:142
↓ 2 callers
Function
save_attention
src/layers/attention.cc:169
↓ 2 callers
Function
scalbln
Multiply by power of two. This function is exact to rounding for all rounding modes. See also:** Documentation for [std::scalbln](https://en.cpprefer
include/half_float/half.hpp:4174
↓ 2 callers
Function
scale_apply_exp2
include/ctranslate2/ops/flash-attention/softmax.h:69
↓ 2 callers
Method
score_batch_async
src/generator.cc:26
↓ 2 callers
Function
score_sequences
src/scoring.cc:5
↓ 2 callers
Method
score_text_file
src/translator.cc:129
↓ 2 callers
Method
select_weights
src/layers/common.cc:313
↓ 2 callers
Method
set_attention
( self, spec, attention, left_max_position=None, right_max_position=None )
python/ctranslate2/converters/transformers.py:1144
↓ 2 callers
Method
set_attention
(self, spec, attention, self_attention=False)
python/ctranslate2/converters/transformers.py:1330
↓ 2 callers
Function
set_common_layers
(spec, weights, scope)
python/ctranslate2/converters/marian.py:189
↓ 2 callers
Method
set_common_layers
(self, spec, module)
python/ctranslate2/converters/transformers.py:393
↓ 2 callers
Method
set_compute_type
src/models/model.cc:178
↓ 2 callers
Method
set_conv1d
(self, spec, module)
python/ctranslate2/converters/transformers.py:1030
← previous
next →
401–500 of 2,508, ranked by callers