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
↓ 27 callers
Method
operation
Return pointer to IDimensionExp that represents the given operation applied to first and second. Returns nullptr if op is not a valid DimensionOperati
include/NvInferRuntime.h:292
↓ 27 callers
Method
pop
(self, i=-1)
tools/onnx-graphsurgeon/onnx_graphsurgeon/util/misc.py:124
↓ 27 callers
Method
save_model
(self, model, log_model=True)
tools/Polygraphy/polygraphy/tools/surgeon/subtool/base.py:42
↓ 26 callers
Method
getLogger
\brief get the logger with which the builder was created \return the logger
include/NvInfer.h:10212
↓ 26 callers
Method
getNbInputs
\brief Get the number of inputs of a layer.
include/NvInfer.h:582
↓ 26 callers
Function
inline
Marks a safe string as being inline when used with other Script APIs. Non-inlined strings will remain strings when used with any of these API
tools/Polygraphy/polygraphy/tools/script.py:78
↓ 26 callers
Method
setDimensions
\brief Set the dimensions of a tensor. For a network input, the dimensions are assigned by the application. For a network output, the dimensions are
include/NvInfer.h:222
↓ 25 callers
Method
getDimensions
\brief Get the dimensions of a tensor. \return The dimensions of the tensor. \warning getDimensions() returns a -1 for dimensions that are derived f
include/NvInfer.h:235
↓ 25 callers
Method
half
Copy constructor. \tparam T type of concrete half expression \param rhs half expression to copy from
samples/common/half.h:1409
↓ 25 callers
Function
validateRequiredAttributesExist
plugin/common/plugin.cpp:24
↓ 24 callers
Method
values
(self)
tools/onnx-graphsurgeon/onnx_graphsurgeon/ir/tensor.py:261
↓ 23 callers
Function
boolToEnabled
samples/common/sampleOptions.cpp:211
↓ 23 callers
Method
device
(self)
samples/python/common.py:163
↓ 23 callers
Function
locateFile
Locate path to file, given its filename or filepath suffix and possible dirs it might lie in. Function will also walk back MAX_DEPTH dirs from CWD to
samples/common/common.h:211
↓ 23 callers
Method
remove
(self, x)
tools/onnx-graphsurgeon/onnx_graphsurgeon/util/misc.py:120
↓ 23 callers
Method
start
Logs a message to stdout with START severity. Args: message (Union[str, Callable() -> str]): A strin
tools/Polygraphy/polygraphy/logger/logger.py:528
↓ 22 callers
Method
clear
Empty the errorStack.
samples/common/ErrorRecorder.h:68
↓ 22 callers
Function
is_file_non_empty
(path)
tools/Polygraphy/tests/helper.py:45
↓ 21 callers
Function
checkBlobs
parsers/caffe/caffeParser/opParsers/opParsers.h:33
↓ 21 callers
Method
getDimensions
parsers/caffe/binaryProtoBlob.h:37
↓ 21 callers
Function
getElementSize
plugin/common/bertCommon.h:132
↓ 21 callers
Method
keys
Creates a generator that yields runner names (str).
tools/Polygraphy/polygraphy/comparator/struct.py:208
↓ 21 callers
Method
serialize
plugin/fcPlugin/fcPlugin.cpp:670
↓ 21 callers
Method
setName
\brief Set the name of the loop. The name is used in error diagnostics. This method copies the name string. \warning The string name must be null-te
include/NvInfer.h:5725
↓ 21 callers
Function
splitToStringVec
samples/common/sampleUtils.cpp:101
↓ 20 callers
Method
add
Convenience function for adding entries. Args: name (str): The name of the input. dtype (numpy.dtype): The d
tools/Polygraphy/polygraphy/common/struct.py:96
↓ 20 callers
Method
compute_amax
Compute the amax from the collected histogram Args: method: A string. One of ['entropy', 'mse', 'percentile'] Keyword Ar
tools/pytorch-quantization/pytorch_quantization/calib/histogram.py:126
↓ 20 callers
Method
create_config
Creates a TensorRT BuilderConfig according to arguments provided on the command-line. Args: builder (trt.Builder):
tools/Polygraphy/polygraphy/tools/args/backend/trt/config.py:696
↓ 20 callers
Function
fieldTypeToDataType
plugin/common/bertCommon.h:463
↓ 20 callers
Method
get_names
(self)
demo/HuggingFace/NNDF/networks.py:106
↓ 20 callers
Method
get_torch_dynamic_axis_encoding
Returns a Pytorch "dynamic_axes" encoding for onnx.export. Returns: dict: Returns a 'dynamic' index with corresponding n
demo/HuggingFace/NNDF/networks.py:112
↓ 20 callers
Function
serFromDev
plugin/common/bertCommon.h:181
↓ 20 callers
Method
volume
quickstart/common/util.cpp:45
↓ 19 callers
Method
append_suffix
Append a line to the suffix of the script Args: line (str): The line to append.
tools/Polygraphy/polygraphy/tools/script.py:370
↓ 19 callers
Method
cast
samples/common/half.h:2623
↓ 19 callers
Method
hasImplicitBatchDimension
\brief Query whether the network was created with an implicit batch dimension. \return True if tensors have implicit batch dimension, false otherwise
include/NvInfer.h:7708
↓ 19 callers
Method
suppress
Returns a context manager that temporarily changes the severity of the logger for its duration. Args: severity (Logger.S
tools/onnx-graphsurgeon/onnx_graphsurgeon/logger/logger.py:138
↓ 18 callers
Method
add
A convenience function to add shapes for a single binding. Args: name (str): The name of the binding. min (T
tools/Polygraphy/polygraphy/backend/trt/profile.py:60
↓ 18 callers
Method
empty
()
tools/onnx-graphsurgeon/onnx_graphsurgeon/ir/tensor.py:155
↓ 18 callers
Method
get
samples/common/sampleDevice.h:125
↓ 18 callers
Method
getNbOutputs
samples/python/onnx_custom_plugin/plugin/customHardmaxPlugin.cpp:111
↓ 18 callers
Method
getType
\brief Return the type of a layer. \see LayerType
include/NvInfer.h:550
↓ 18 callers
Method
keys
(self)
tools/Polygraphy/polygraphy/tools/args/backend/runner_select.py:37
↓ 18 callers
Method
parse_args
(self, cli_args)
tools/polygraphy-extension-trtexec/tests/helper.py:62
↓ 18 callers
Method
shape
(self)
tools/onnx-graphsurgeon/onnx_graphsurgeon/ir/tensor.py:272
↓ 17 callers
Function
Calibrator
Supplies calibration data to TensorRT to calibrate the network for INT8 inference. Args: data_loader (Sequence[OrderedDict[str, Unio
tools/Polygraphy/polygraphy/backend/trt/calibrator.py:29
↓ 17 callers
Function
abs
Absolute value. \param arg operand \return absolute value of \a arg template<typename T> typename enable<T,T>::type abs(T arg) { return unary_speciali
samples/common/half.h:2858
↓ 17 callers
Method
add
parsers/caffe/blobNameToTensor.h:32
↓ 17 callers
Method
allocateWeights
parsers/caffe/caffeWeightFactory/caffeWeightFactory.cpp:200
↓ 17 callers
Method
convert_tokens_to_ids
(self, tokens)
demo/BERT/helpers/tokenization.py:194
↓ 17 callers
Method
copy_from
Copies from the provided host buffer into this device buffer. Args: host_buffer (numpy.ndarray): The
tools/Polygraphy/polygraphy/cuda/cuda.py:427
↓ 17 callers
Method
deserializeCudaEngine
\brief Deserialize an engine from a stream. If an error recorder has been set for the runtime, it will also be passed to the engine. \param blob The
include/NvInferRuntime.h:781
↓ 17 callers
Method
getBindingDimensions
\brief Get the dimensions of a binding. \param bindingIndex The binding index. \return The dimensions of the binding if the index is in range, otherw
include/NvInferRuntime.h:1652
↓ 17 callers
Method
init_quantizer
Helper function for __init__ of quantized module Create input and weight quantizer based on quant_desc passed by kwargs, or default of the cl
tools/pytorch-quantization/pytorch_quantization/nn/modules/_utils.py:57
↓ 17 callers
Method
show
(aspect)
tools/Polygraphy/polygraphy/tools/inspect/subtool/model.py:95
↓ 17 callers
Method
skip
Skips the batches
samples/common/BatchStream.h:238
↓ 16 callers
Function
convert_saved_model_to_onnx
Convert Keras saved model into ONNX format. Works directly with CreateAssetsFolder object path. Args: saved_model_dir (str): Path to
tools/tensorflow-quantization/tensorflow_quantization/utils.py:97
↓ 16 callers
Function
deprecate
python/include/utils.h:97
↓ 16 callers
Method
indent
Returns a context manager that indents all strings logged by the specified amount. Args: level (int): The indentation le
tools/Polygraphy/polygraphy/logger/logger.py:323
↓ 16 callers
Method
log
Logs a message to stdout. Args: message (Union[str, Callable() -> str]): A string or callable which
tools/Polygraphy/polygraphy/logger/logger.py:346
↓ 16 callers
Function
volume
samples/common/common.h:646
↓ 15 callers
Method
Logger
samples/common/logging.h:277
↓ 15 callers
Method
Logger
demo/BERT/infer_c/logging.h:32
↓ 15 callers
Method
backward
(ctx, grad_output)
tools/pytorch-quantization/pytorch_quantization/nn/functional.py:41
↓ 15 callers
Method
call
(self, inputs, training=None)
tools/tensorflow-quantization/tensorflow_quantization/quantize_wrappers.py:555
↓ 15 callers
Method
convert
parsers/caffe/caffeWeightFactory/caffeWeightFactory.cpp:161
↓ 15 callers
Method
create_network
Parse the ONNX graph and create the corresponding TensorRT network definition. :param onnx_path: The path to the ONNX graph to load.
samples/python/detectron2/build_engine.py:139
↓ 15 callers
Method
getAlgorithmIOInfoByIndex
\brief Returns the format of an Algorithm input or output. Algorithm inputs are incrementally numbered first, followed by algorithm outputs. \param in
include/NvInfer.h:8668
↓ 15 callers
Method
getLayer
\brief Get the layer specified by the given index. \param index The index of the layer. \return The layer, or nullptr if the index is out of range.
include/NvInfer.h:7226
↓ 15 callers
Method
getNbLayers
\brief Get the number of layers in the network. The number of layers in the network is not necessarily the number in the original network definition,
include/NvInferRuntime.h:1727
↓ 15 callers
Method
infer
Runs inference using the provided feed_dict. Must be called only after ``activate()`` and before ``deactivate()``. NOTE: So
tools/Polygraphy/polygraphy/backend/base/runner.py:125
↓ 14 callers
Method
create_new_sequence_dim
Returns a new sequence dimension. Return: str: Returns a sequence dimension which Dims.SEQUENCE appended by dim_type.
demo/HuggingFace/NNDF/networks.py:88
↓ 14 callers
Function
expand_inputs_for_beam_search
Interleave input tensor with `num_beams`, similar to HuggingFace's _expand_inputs_for_generation() in generation_utils.py
demo/HuggingFace/NNDF/torch_utils.py:84
↓ 14 callers
Method
infer
(self, feed_dict, stream, use_cuda_graph=False)
demo/Diffusion/utilities.py:244
↓ 14 callers
Method
verbosity
Returns a context manager that temporarily changes the severity of the logger for its duration. Args: severity (Union[in
tools/Polygraphy/polygraphy/logger/logger.py:332
↓ 13 callers
Method
check_calibrator_cleanup
(self, calibrator)
tools/Polygraphy/tests/backend/trt/test_calibrator.py:62
↓ 13 callers
Method
cleanup
( self, workspace: NNFolderWorkspace, keep_trt_engine: bool = False, keep_onnx
demo/HuggingFace/T5/trt.py:448
↓ 13 callers
Method
collect
Tracks the absolute max of all tensors Args: x: A tensor Raises: RuntimeError: If amax shape changes
tools/pytorch-quantization/pytorch_quantization/calib/max.py:51
↓ 13 callers
Method
createExecutionContext
\brief Create an execution context. The execution context created will call setOptimizationProfile(0) implicitly if there are no other execution cont
include/NvInferRuntime.h:1758
↓ 13 callers
Method
getBindingIndex
\brief Retrieve the binding index for a named tensor. IExecutionContext::enqueueV2() and IExecutionContext::executeV2() require an array of buffers.
include/NvInferRuntime.h:1587
↓ 13 callers
Method
getOperation
\brief Get the operation for the layer. \see setOperation(), TopKOperation
include/NvInfer.h:4451
↓ 13 callers
Function
get_trt_logger
Get the global TensorRT logger created by Polygraphy. Returns: trt.Logger: The TensorRT logger.
tools/Polygraphy/polygraphy/backend/trt/util.py:35
↓ 13 callers
Method
parse
samples/common/sampleOptions.cpp:701
↓ 13 callers
Function
quantize_model
Insert Q/DQ nodes in Keras model and return a copy. Weights are preserved unlike native keras clone. Args: model(tf.keras.Model): Ke
tools/tensorflow-quantization/tensorflow_quantization/quantize.py:386
↓ 13 callers
Function
save_json
Encode an object as JSON and save it to a file. NOTE: For Polygraphy objects, you should use the ``save()`` method instead. Args:
tools/Polygraphy/polygraphy/json/serde.py:285
↓ 13 callers
Method
sqrt
Square root implementation. \param arg function argument \return function value stored in single-preicision
samples/common/half.h:1840
↓ 13 callers
Function
to_gpu
(x)
demo/Tacotron2/common/utils.py:67
↓ 12 callers
Method
__init__
Creates a wrapper to emulate quantization for the Add keras layer. Args: layer (tf.keras.layers.Layer): The keras layer to
tools/tensorflow-quantization/tensorflow_quantization/quantize_wrappers.py:543
↓ 12 callers
Method
addActivation
\brief Add an activation layer to the network. \param input The input tensor to the layer. \param type The type of activation function to apply. Not
include/NvInfer.h:6984
↓ 12 callers
Method
addInput
\brief Add an If-conditional input. \param input An input to the conditional that can be used by either or both of the conditional’s subgraphs. \see
include/NvInfer.h:5462
↓ 12 callers
Function
arange
(shape)
tools/Polygraphy/tests/util/test_util.py:78
↓ 12 callers
Method
build
(self, input_shape)
tools/tensorflow-quantization/tensorflow_quantization/quantize_wrappers.py:552
↓ 12 callers
Method
check_dims
(self, batch_size, image_height, image_width)
demo/Diffusion/models.py:170
↓ 12 callers
Method
convert
(self, output_saved_model_dir, precision="FP32", max_workspace_size_bytes=8000000000, **kwargs)
quickstart/IntroNotebooks/helper.py:82
↓ 12 callers
Function
create_activations
(layer: pd.Series)
tools/experimental/trt-engine-explorer/trex/activations.py:103
↓ 12 callers
Method
getReportableSeverity
samples/common/logging.h:441
↓ 12 callers
Method
get_layers_by_type
(self, layer_type)
tools/experimental/trt-engine-explorer/trex/engine_plan.py:140
↓ 12 callers
Method
isInitialized
parsers/caffe/caffeWeightFactory/caffeWeightFactory.cpp:190
↓ 12 callers
Function
load_json
Loads a file and decodes the JSON contents. NOTE: For Polygraphy objects, you should use the ``load()`` method instead. Args: s
tools/Polygraphy/polygraphy/json/serde.py:300
↓ 12 callers
Method
set_default_quant_desc_input
Args: value: An instance of :class:`QuantDescriptor <pytorch_quantization.tensor_quant.QuantDescriptor>`
tools/pytorch-quantization/pytorch_quantization/nn/modules/_utils.py:38
← previous
next →
101–200 of 8,179, ranked by callers