MCPcopy Create free account

hub / github.com/NVIDIA/TensorRT / functions

Functions8,179 in github.com/NVIDIA/TensorRT

↓ 27 callersMethodoperation
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 callersMethodpop
(self, i=-1)
tools/onnx-graphsurgeon/onnx_graphsurgeon/util/misc.py:124
↓ 27 callersMethodsave_model
(self, model, log_model=True)
tools/Polygraphy/polygraphy/tools/surgeon/subtool/base.py:42
↓ 26 callersMethodgetLogger
\brief get the logger with which the builder was created \return the logger
include/NvInfer.h:10212
↓ 26 callersMethodgetNbInputs
\brief Get the number of inputs of a layer.
include/NvInfer.h:582
↓ 26 callersFunctioninline
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 callersMethodsetDimensions
\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 callersMethodgetDimensions
\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 callersMethodhalf
Copy constructor. \tparam T type of concrete half expression \param rhs half expression to copy from
samples/common/half.h:1409
↓ 25 callersFunctionvalidateRequiredAttributesExist
plugin/common/plugin.cpp:24
↓ 24 callersMethodvalues
(self)
tools/onnx-graphsurgeon/onnx_graphsurgeon/ir/tensor.py:261
↓ 23 callersFunctionboolToEnabled
samples/common/sampleOptions.cpp:211
↓ 23 callersMethoddevice
(self)
samples/python/common.py:163
↓ 23 callersFunctionlocateFile
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 callersMethodremove
(self, x)
tools/onnx-graphsurgeon/onnx_graphsurgeon/util/misc.py:120
↓ 23 callersMethodstart
Logs a message to stdout with START severity. Args: message (Union[str, Callable() -> str]): A strin
tools/Polygraphy/polygraphy/logger/logger.py:528
↓ 22 callersMethodclear
Empty the errorStack.
samples/common/ErrorRecorder.h:68
↓ 22 callersFunctionis_file_non_empty
(path)
tools/Polygraphy/tests/helper.py:45
↓ 21 callersFunctioncheckBlobs
parsers/caffe/caffeParser/opParsers/opParsers.h:33
↓ 21 callersMethodgetDimensions
parsers/caffe/binaryProtoBlob.h:37
↓ 21 callersFunctiongetElementSize
plugin/common/bertCommon.h:132
↓ 21 callersMethodkeys
Creates a generator that yields runner names (str).
tools/Polygraphy/polygraphy/comparator/struct.py:208
↓ 21 callersMethodserialize
plugin/fcPlugin/fcPlugin.cpp:670
↓ 21 callersMethodsetName
\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 callersFunctionsplitToStringVec
samples/common/sampleUtils.cpp:101
↓ 20 callersMethodadd
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 callersMethodcompute_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 callersMethodcreate_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 callersFunctionfieldTypeToDataType
plugin/common/bertCommon.h:463
↓ 20 callersMethodget_names
(self)
demo/HuggingFace/NNDF/networks.py:106
↓ 20 callersMethodget_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 callersFunctionserFromDev
plugin/common/bertCommon.h:181
↓ 20 callersMethodvolume
quickstart/common/util.cpp:45
↓ 19 callersMethodappend_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 callersMethodcast
samples/common/half.h:2623
↓ 19 callersMethodhasImplicitBatchDimension
\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 callersMethodsuppress
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 callersMethodadd
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 callersMethodempty
()
tools/onnx-graphsurgeon/onnx_graphsurgeon/ir/tensor.py:155
↓ 18 callersMethodget
samples/common/sampleDevice.h:125
↓ 18 callersMethodgetNbOutputs
samples/python/onnx_custom_plugin/plugin/customHardmaxPlugin.cpp:111
↓ 18 callersMethodgetType
\brief Return the type of a layer. \see LayerType
include/NvInfer.h:550
↓ 18 callersMethodkeys
(self)
tools/Polygraphy/polygraphy/tools/args/backend/runner_select.py:37
↓ 18 callersMethodparse_args
(self, cli_args)
tools/polygraphy-extension-trtexec/tests/helper.py:62
↓ 18 callersMethodshape
(self)
tools/onnx-graphsurgeon/onnx_graphsurgeon/ir/tensor.py:272
↓ 17 callersFunctionCalibrator
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 callersFunctionabs
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 callersMethodadd
parsers/caffe/blobNameToTensor.h:32
↓ 17 callersMethodallocateWeights
parsers/caffe/caffeWeightFactory/caffeWeightFactory.cpp:200
↓ 17 callersMethodconvert_tokens_to_ids
(self, tokens)
demo/BERT/helpers/tokenization.py:194
↓ 17 callersMethodcopy_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 callersMethoddeserializeCudaEngine
\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 callersMethodgetBindingDimensions
\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 callersMethodinit_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 callersMethodshow
(aspect)
tools/Polygraphy/polygraphy/tools/inspect/subtool/model.py:95
↓ 17 callersMethodskip
Skips the batches
samples/common/BatchStream.h:238
↓ 16 callersFunctionconvert_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 callersFunctiondeprecate
python/include/utils.h:97
↓ 16 callersMethodindent
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 callersMethodlog
Logs a message to stdout. Args: message (Union[str, Callable() -> str]): A string or callable which
tools/Polygraphy/polygraphy/logger/logger.py:346
↓ 16 callersFunctionvolume
samples/common/common.h:646
↓ 15 callersMethodLogger
samples/common/logging.h:277
↓ 15 callersMethodLogger
demo/BERT/infer_c/logging.h:32
↓ 15 callersMethodbackward
(ctx, grad_output)
tools/pytorch-quantization/pytorch_quantization/nn/functional.py:41
↓ 15 callersMethodcall
(self, inputs, training=None)
tools/tensorflow-quantization/tensorflow_quantization/quantize_wrappers.py:555
↓ 15 callersMethodconvert
parsers/caffe/caffeWeightFactory/caffeWeightFactory.cpp:161
↓ 15 callersMethodcreate_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 callersMethodgetAlgorithmIOInfoByIndex
\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 callersMethodgetLayer
\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 callersMethodgetNbLayers
\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 callersMethodinfer
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 callersMethodcreate_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 callersFunctionexpand_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 callersMethodinfer
(self, feed_dict, stream, use_cuda_graph=False)
demo/Diffusion/utilities.py:244
↓ 14 callersMethodverbosity
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 callersMethodcheck_calibrator_cleanup
(self, calibrator)
tools/Polygraphy/tests/backend/trt/test_calibrator.py:62
↓ 13 callersMethodcleanup
( self, workspace: NNFolderWorkspace, keep_trt_engine: bool = False, keep_onnx
demo/HuggingFace/T5/trt.py:448
↓ 13 callersMethodcollect
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 callersMethodcreateExecutionContext
\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 callersMethodgetBindingIndex
\brief Retrieve the binding index for a named tensor. IExecutionContext::enqueueV2() and IExecutionContext::executeV2() require an array of buffers.
include/NvInferRuntime.h:1587
↓ 13 callersMethodgetOperation
\brief Get the operation for the layer. \see setOperation(), TopKOperation
include/NvInfer.h:4451
↓ 13 callersFunctionget_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 callersMethodparse
samples/common/sampleOptions.cpp:701
↓ 13 callersFunctionquantize_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 callersFunctionsave_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 callersMethodsqrt
Square root implementation. \param arg function argument \return function value stored in single-preicision
samples/common/half.h:1840
↓ 13 callersFunctionto_gpu
(x)
demo/Tacotron2/common/utils.py:67
↓ 12 callersMethod__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 callersMethodaddActivation
\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 callersMethodaddInput
\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 callersFunctionarange
(shape)
tools/Polygraphy/tests/util/test_util.py:78
↓ 12 callersMethodbuild
(self, input_shape)
tools/tensorflow-quantization/tensorflow_quantization/quantize_wrappers.py:552
↓ 12 callersMethodcheck_dims
(self, batch_size, image_height, image_width)
demo/Diffusion/models.py:170
↓ 12 callersMethodconvert
(self, output_saved_model_dir, precision="FP32", max_workspace_size_bytes=8000000000, **kwargs)
quickstart/IntroNotebooks/helper.py:82
↓ 12 callersFunctioncreate_activations
(layer: pd.Series)
tools/experimental/trt-engine-explorer/trex/activations.py:103
↓ 12 callersMethodgetReportableSeverity
samples/common/logging.h:441
↓ 12 callersMethodget_layers_by_type
(self, layer_type)
tools/experimental/trt-engine-explorer/trex/engine_plan.py:140
↓ 12 callersMethodisInitialized
parsers/caffe/caffeWeightFactory/caffeWeightFactory.cpp:190
↓ 12 callersFunctionload_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 callersMethodset_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
← previousnext →101–200 of 8,179, ranked by callers