Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/TensorRT
/ functions
Functions
8,179 in github.com/NVIDIA/TensorRT
⨍
Functions
8,179
◇
Types & classes
1,602
↳
Endpoints
43
↓ 4 callers
Function
pow
Power function. \param base first argument \param exp second argument \return \a base raised to \a exp template<typename T,typename U> typename enable
parsers/common/ieee_half.h:2421
↓ 4 callers
Method
prepare_state
Prepare the internal variables that would used in the monkey patching mechanism later. 1. Set up the list of quantized modules that a
tools/pytorch-quantization/pytorch_quantization/quant_modules.py:72
↓ 4 callers
Function
print_dict
(d: Dict)
tools/experimental/trt-engine-explorer/trex/engine_plan.py:181
↓ 4 callers
Method
process
Execute inference on a batch of images. The images should already be batched and preprocessed, as prepared by the ImageBatcher class.
samples/python/efficientdet/infer.py:129
↓ 4 callers
Method
raw
samples/common/common.h:338
↓ 4 callers
Function
readPGMFile
samples/common/common.h:270
↓ 4 callers
Function
read_perf_metadata_file
(metadata_file: str, section: str)
tools/experimental/trt-engine-explorer/trex/parser.py:79
↓ 4 callers
Method
record
samples/common/sampleDevice.h:130
↓ 4 callers
Function
reduce_tensor
(tensor, num_gpus)
demo/Tacotron2/train.py:152
↓ 4 callers
Method
register_callback
Registers a callback with the logger, which will be invoked when the logging severity is modified. The callback is guaranteed to be c
tools/Polygraphy/polygraphy/logger/logger.py:311
↓ 4 callers
Method
reset
Reset this calibrator for reuse. The calibrator will clear any dynamic ranges cached from previous calibration runs, and wil
tools/Polygraphy/polygraphy/backend/trt/calibrator.py:118
↓ 4 callers
Method
reset
You should always call this function after a use case because T5TRTDecoder does not clear the cached encoder_hidden_states or cross_attention
demo/HuggingFace/T5/trt.py:429
↓ 4 callers
Function
resnet18
r"""ResNet-18 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_. Args: pretrained (
tools/experimental/trt-engine-explorer/examples/pytorch/resnet/qat_model.py:386
↓ 4 callers
Method
restore_float_modules
Reverse the effect of monkey patch by using the orginal_func_map to replace back the original modules.
tools/pytorch-quantization/pytorch_quantization/quant_modules.py:109
↓ 4 callers
Method
save
Save the ONNX model to the given location. :param output_path: Path pointing to the location where to write out the updated ONNX mode
samples/python/tensorflow_object_detection_api/create_onnx.py:171
↓ 4 callers
Function
scalbln
Multiply by power of two. \param arg number to modify \param exp power of two to multiply with \return \a arg multplied by 2 raised to \a exp template
samples/common/half.h:3683
↓ 4 callers
Function
scalbln
Multiply by power of two. \param arg number to modify \param exp power of two to multiply with \return \a arg multplied by 2 raised to \a exp template
parsers/common/ieee_half.h:2676
↓ 4 callers
Method
setCaffeSemantics
plugin/batchedNMSPlugin/batchedNMSPlugin.cpp:606
↓ 4 callers
Method
setClipParam
plugin/batchedNMSPlugin/batchedNMSPlugin.cpp:586
↓ 4 callers
Method
setErrorRecorder
\brief Set the ErrorRecorder for this interface Assigns the ErrorRecorder to this interface. The ErrorRecorder will track all errors during execution
include/NvInferRuntime.h:751
↓ 4 callers
Method
setInt8Calibrator
\brief Set Int8 Calibration interface. The calibrator is to minimize the information loss during the INT8 quantization process.
include/NvInfer.h:9181
↓ 4 callers
Method
setKernelWeights
\brief Set the kernel weights for the convolution. The weights are specified as a contiguous array in \p GKCRS order, where \p G is the number of gro
include/NvInfer.h:1217
↓ 4 callers
Method
setMemoryPoolLimit
\brief Set the memory size for the memory pool. TensorRT layers access different memory pools depending on the operation. This function sets in the I
include/NvInfer.h:9714
↓ 4 callers
Method
setNbGroups
\brief Set the number of groups for a convolution. The input tensor channels are divided into \p nbGroups groups, and a convolution is executed for
include/NvInfer.h:1193
↓ 4 callers
Method
setScoreBits
plugin/batchedNMSPlugin/batchedNMSPlugin.cpp:596
↓ 4 callers
Method
setScoreBits
plugin/nmsPlugin/nmsPlugin.cpp:367
↓ 4 callers
Function
set_kv_data
Set the types and shapes dict for kv-cache based on the provided inputs: kv_dict: Dict[str, tuple/torch.dtype], the dict to modify within
demo/HuggingFace/NNDF/tensorrt_utils.py:69
↓ 4 callers
Method
set_return_device
Sets the return device of the return via to(). Device name should be the same as torch devices: cuda, cpu, etc. This is used in our m
demo/HuggingFace/BART/trt.py:377
↓ 4 callers
Function
sparsify
samples/common/sampleUtils.cpp:329
↓ 4 callers
Method
stop_iteration
Indicate that ``iterate()`` should stop. This may be invoked from any of the callbacks provided to ``iterate()``.
tools/Polygraphy/polygraphy/tools/debug/subtool/iterative_debug_args.py:516
↓ 4 callers
Function
str_from_list
(lst)
tools/Polygraphy/polygraphy/backend/trt/util.py:395
↓ 4 callers
Method
tokenize
(self, text)
demo/BERT/helpers/tokenization.py:186
↓ 4 callers
Method
ultra_verbose
(self, message, mode=LogMode.EACH)
tools/onnx-graphsurgeon/onnx_graphsurgeon/logger/logger.py:212
↓ 4 callers
Function
version
(version_str)
tools/Polygraphy/polygraphy/mod/util.py:19
↓ 4 callers
Function
visualize_detections
(image_path, output_path, detections, labels=[])
samples/python/efficientdet/visualize.py:154
↓ 4 callers
Function
visualize_detections
(image_path, output_path, detections, labels=[])
samples/python/tensorflow_object_detection_api/visualize.py:55
↓ 4 callers
Method
wait
samples/common/sampleDevice.h:152
↓ 4 callers
Function
warn_deprecated
(name, use_instead, remove_in, module_name=None, always_show_warning=False)
tools/Polygraphy/polygraphy/mod/exporter.py:212
↓ 4 callers
Function
was_shape_inference_run
(status, model)
tools/Polygraphy/tests/tools/test_surgeon.py:37
↓ 4 callers
Function
writeToBuffer
samples/python/onnx_custom_plugin/plugin/customHardmaxPlugin.cpp:61
↓ 3 callers
Method
Dims2
\brief Construct an empty Dims2 object.
include/NvInferLegacyDims.h:42
↓ 3 callers
Function
TypedList
Returns a class (not an instance) that will provide a list-like interface with runtime type checks. Note: The types are provided lazily
tools/Polygraphy/polygraphy/common/interface.py:117
↓ 3 callers
Method
__connect_writer_to_all_readers
( self, writer_desc: PortDesc, generation: RegionGeneration)
tools/experimental/trt-engine-explorer/trex/graphing.py:346
↓ 3 callers
Method
__init__
Args: implementation (int): The implementation for this Algorithm. tactic (int):
tools/Polygraphy/polygraphy/backend/trt/algorithm_selector.py:156
↓ 3 callers
Method
__init__
(self)
tools/tensorflow-quantization/tensorflow_quantization/quantize_config.py:47
↓ 3 callers
Method
__init__
(self, rank, with_r=False)
samples/sampleOnnxMnistCoordConvAC/coord_conv.py:24
↓ 3 callers
Method
__init__
(self)
demo/HuggingFace/T5/trt.py:439
↓ 3 callers
Method
__init__
(self)
demo/HuggingFace/BART/trt.py:569
↓ 3 callers
Function
__to_float
Scan the input string and extract the first float instance.
tools/experimental/trt-engine-explorer/utils/parse_trtexec_log.py:31
↓ 3 callers
Method
__update_shape
(self, tensor: Activation, generation: int)
tools/experimental/trt-engine-explorer/trex/graphing.py:91
↓ 3 callers
Function
_checkMD5
(path, refMD5)
samples/python/downloader.py:65
↓ 3 callers
Method
_cleanup_onnx_folder
(self, folder_dir)
demo/HuggingFace/NNDF/models.py:426
↓ 3 callers
Method
_download_models
( self, workspace: NNFolderWorkspace, metadata: NetworkMetadata, )
demo/HuggingFace/NNDF/interface.py:331
↓ 3 callers
Method
_foreign_tensors
(self)
tools/onnx-graphsurgeon/onnx_graphsurgeon/ir/graph.py:202
↓ 3 callers
Method
_get_learning_rate
Compute learning rate at given step.
tools/tensorflow-quantization/examples/utils_finetuning.py:241
↓ 3 callers
Method
_iterate_data
Helper for child classes to iterate through a slice of data. Return: (Union[Dict[str, str], List[str]]): Returns a list
demo/HuggingFace/NNDF/checkpoints.py:95
↓ 3 callers
Method
_output_padding_nd
(self, input, output_size, st
tools/pytorch-quantization/pytorch_quantization/nn/modules/quant_conv.py:270
↓ 3 callers
Function
_send_args_to_device
(caller_kwargs, device)
demo/HuggingFace/NNDF/torch_utils.py:40
↓ 3 callers
Method
_setup_workspace
(self, metadata: NetworkMetadata, working_directory: str)
demo/HuggingFace/NNDF/interface.py:326
↓ 3 callers
Function
_symbols_to_sequence
(symbols)
demo/Tacotron2/tacotron2/text/__init__.py:65
↓ 3 callers
Function
_tensor_quant
Shared function body between TensorQuantFunction and FakeTensorQuantFunction
tools/pytorch-quantization/pytorch_quantization/tensor_quant.py:357
↓ 3 callers
Method
activate
(self, reuse_device_memory=None)
demo/Diffusion/utilities.py:224
↓ 3 callers
Function
add
(self, a, b, **kwargs)
tools/Polygraphy/tests/models/make_models.py:36
↓ 3 callers
Method
add
(key, val)
tools/Polygraphy/polygraphy/json/serde.py:105
↓ 3 callers
Method
addConcatenation
\brief Add a concatenation layer to the network. \param inputs The input tensors to the layer. \param nbInputs The number of input tensors. \see ICo
include/NvInfer.h:7079
↓ 3 callers
Method
addLoopOutput
\brief Make an output for this loop, based on the given tensor. axis is the axis for concatenation (if using outputKind of kCONCATENATE or kREVERSE).
include/NvInfer.h:5710
↓ 3 callers
Method
addMatrixMultiply
\brief Add a MatrixMultiply layer to the network. \param input0 The first input tensor (commonly A). \param op0 The operation to apply to input0. \pa
include/NvInfer.h:7429
↓ 3 callers
Method
addPluginV2
\brief Add a plugin layer to the network using the IPluginV2 interface. \param inputs The input tensors to the layer. \param nbInputs The number of i
include/NvInfer.h:7617
↓ 3 callers
Method
addShuffle
\brief Add a shuffle layer to the network. \param input The input tensor to the layer. \see IShuffleLayer \return The new shuffle layer, or nullptr
include/NvInfer.h:7183
↓ 3 callers
Function
add_arguments
(parser)
demo/Diffusion/utilities.py:1177
↓ 3 callers
Method
add_benchmarking_args
Add args needed for perf benchmarking mode.
demo/HuggingFace/NNDF/interface.py:78
↓ 3 callers
Method
add_quantization_spec_object
This method parses object of QuantizationSpec class and fill in `layerwise_config` dictionary holding information about layers that n
tools/tensorflow-quantization/tensorflow_quantization/quantize_config.py:92
↓ 3 callers
Function
argMagnitudeSort
samples/common/common.h:399
↓ 3 callers
Function
bilbo_28_28
Network with VGG like architecture.
tools/tensorflow-quantization/tests/network_pool.py:29
↓ 3 callers
Function
bn
(input)
tools/tensorflow-quantization/tests/network_pool.py:145
↓ 3 callers
Method
build
\brief Creates the network, configures the builder and creates the network engine. \details This function creates the MNIST network by parsing the ON
samples/sampleAlgorithmSelector/sampleAlgorithmSelector.cpp:431
↓ 3 callers
Function
build_arg_list
(should_include)
tools/Polygraphy/polygraphy/mod/exporter.py:153
↓ 3 callers
Method
case
( self, keras_model: tf.keras.Model, qspec: QuantizationSpec )
tools/tensorflow-quantization/tensorflow_quantization/custom_qdq_cases.py:93
↓ 3 callers
Method
check_engine
(self, path)
tools/Polygraphy/tests/tools/test_convert.py:53
↓ 3 callers
Method
check_forward_input
(self, input)
tools/pytorch-quantization/pytorch_quantization/nn/modules/quant_rnn.py:327
↓ 3 callers
Function
check_lines_match
(actual, expected, should_check_line=lambda x: True)
tools/Polygraphy/tests/tools/test_inspect.py:66
↓ 3 callers
Function
collapse_whitespace
(text)
demo/Tacotron2/tacotron2/text/cleaners.py:76
↓ 3 callers
Method
compare_accuracy
Args: run_results (RunResults): The result of Comparator.run() fail_fast (bool): Whether to exit after the first fa
tools/Polygraphy/polygraphy/comparator/comparator.py:245
↓ 3 callers
Function
compute_amax
(model, **kwargs)
tools/pytorch-quantization/examples/torchvision/classification_flow.py:438
↓ 3 callers
Function
confirm_folder_delete
Confirms whether or not user wants to delete given folder path. Args: fpath (str): Path to folder. prompt (str): Prompt to d
demo/HuggingFace/NNDF/general_utils.py:107
↓ 3 callers
Function
conv1x1
1x1 convolution
tools/pytorch-quantization/examples/torchvision/models/classification/resnet.py:101
↓ 3 callers
Function
conv1x1
1x1 convolution
tools/experimental/trt-engine-explorer/examples/pytorch/resnet/qat_model.py:82
↓ 3 callers
Function
conv3x3
3x3 convolution with padding
tools/pytorch-quantization/examples/torchvision/models/classification/resnet.py:74
↓ 3 callers
Function
conv3x3
3x3 convolution with padding
tools/experimental/trt-engine-explorer/examples/pytorch/resnet/qat_model.py:54
↓ 3 callers
Function
convert_to_unicode
Converts `text` to Unicode (if it's not already), assuming utf-8 input.
demo/BERT/helpers/tokenization.py:94
↓ 3 callers
Function
coord_str_from_img_idx
(img_idx)
tools/Polygraphy/polygraphy/comparator/util.py:204
↓ 3 callers
Method
copyInputToDevice
\brief Copy the contents of input host buffers to input device buffers synchronously.
samples/common/buffers.h:353
↓ 3 callers
Method
copyInputToDeviceAsync
\brief Copy the contents of input host buffers to input device buffers asynchronously.
samples/common/buffers.h:369
↓ 3 callers
Method
copyOutputToHost
\brief Copy the contents of output device buffers to output host buffers synchronously.
samples/common/buffers.h:361
↓ 3 callers
Method
copyOutputToHostAsync
\brief Copy the contents of output device buffers to output host buffers asynchronously.
samples/common/buffers.h:377
↓ 3 callers
Function
createBuilder
samples/common/sampleEntrypoints.h:71
↓ 3 callers
Function
create_int_feature
(values)
demo/BERT/helpers/data_processing.py:171
↓ 3 callers
Method
cuLaunchKernel
plugin/common/cudaDriverWrapper.cpp:133
↓ 3 callers
Function
cublasLtMatmul
plugin/fcPlugin/fcPlugin.h:303
↓ 3 callers
Method
decode_latent
(self, latents)
demo/Diffusion/stable_diffusion_pipeline.py:453
← previous
next →
601–700 of 8,179, ranked by callers