MCPcopy Create free account

hub / github.com/NVIDIA/TensorRT / functions

Functions8,179 in github.com/NVIDIA/TensorRT

↓ 3 callersFunctiondecoder_inference
( t5_decoder, input_ids, encoder_last_hidden_state, timing_profile, use_cuda=True, use_cache=False, past_k
demo/HuggingFace/T5/measurements.py:33
↓ 3 callersFunctiondecoder_inference
( BART_decoder, input_ids, encoder_last_hidden_state, timing_profile, use_cuda=True, use_cache=False, past
demo/HuggingFace/BART/measurements.py:50
↓ 3 callersMethoddenoise_latent
(self, latents, text_embeddings, timesteps=None, step_offset=0, mask=None, masked_image_latents=None)
demo/Diffusion/stable_diffusion_pipeline.py:395
↓ 3 callersMethoddetermine_format
Guesses the data format of a given shape. Args: shape (Tuple[int]): The shape, including batch dimension. Retur
tools/Polygraphy/polygraphy/util/format.py:68
↓ 3 callersMethoddisable_calib
(self)
tools/pytorch-quantization/pytorch_quantization/nn/modules/tensor_quantizer.py:173
↓ 3 callersFunctiondownload_image
(url)
demo/Diffusion/utilities.py:1173
↓ 3 callersFunctiondrop_columns
(df: pd.DataFrame, columns: list)
tools/experimental/trt-engine-explorer/trex/df_preprocessing.py:241
↓ 3 callersMethoddtype
(self)
tools/onnx-graphsurgeon/onnx_graphsurgeon/ir/tensor.py:276
↓ 3 callersFunctiondtype_to_onnx
(dtype: np.dtype)
tools/onnx-graphsurgeon/onnx_graphsurgeon/exporters/onnx_exporter.py:28
↓ 3 callersMethodenable
(self)
tools/pytorch-quantization/pytorch_quantization/nn/modules/tensor_quantizer.py:155
↓ 3 callersMethodencode_prompt
(self, prompt, negative_prompt)
demo/Diffusion/stable_diffusion_pipeline.py:357
↓ 3 callersFunctionencoder_inference
(t5_encoder, input_ids, timing_profile, use_cuda=True)
demo/HuggingFace/T5/measurements.py:54
↓ 3 callersFunctionencoder_inference
(BART_encoder, input_ids, timing_profile, use_cuda=True)
demo/HuggingFace/BART/measurements.py:72
↓ 3 callersMethodenqueueV3
\brief Enqueue inference on a stream. \param stream A cuda stream on which the inference kernels will be enqueued. \return True if the kernels were
include/NvInferRuntime.h:3460
↓ 3 callersFunctionensure_and_clean_dir
Create a directory to save test logs Args: dir_path (str): directory to create / clean. do_clean_dir (bool): boolean indicating w
tools/tensorflow-quantization/tensorflow_quantization/utils.py:28
↓ 3 callersFunctionerf
Error function. \param arg function argument \return error function value of \a arg template<typename T> typename enable<expr,T>::type erf(T arg) { re
samples/common/half.h:3430
↓ 3 callersFunctionerf
Error function. \param arg function argument \return error function value of \a arg template<typename T> typename enable<expr,T>::type erf(T arg) { re
parsers/common/ieee_half.h:2536
↓ 3 callersMethodexport_graph
Export an onnx-graphsurgeon Graph to an ONNX GraphProto. Args: graph (Graph): The graph to export. do_type_
tools/onnx-graphsurgeon/onnx_graphsurgeon/exporters/onnx_exporter.py:87
↓ 3 callersMethodfake_add
(self, a, b)
tools/onnx-graphsurgeon/tests/ir/test_graph.py:213
↓ 3 callersMethodfallback_inference
Run inference with ONNX-Runtime. This can be used to retrieve values/shapes/data types for all tensors in the model when oth
tools/Polygraphy/polygraphy/tools/args/backend/onnx/loader.py:160
↓ 3 callersMethodforward
(self, input_ids, *args, **kwargs)
demo/HuggingFace/T5/trt.py:154
↓ 3 callersMethodfree
Frees the GPU memory associated with this array. You can also use a context manager to ensure that memory is freed. For example:
tools/Polygraphy/polygraphy/cuda/cuda.py:412
↓ 3 callersFunctionfull_inference
( t5_encoder, t5_decoder, input_ids, tokenizer, timing_profile, max_length, min_le
demo/HuggingFace/T5/measurements.py:61
↓ 3 callersFunctionfull_inference_beam
( BART_encoder, BART_decoder, input_ids, tokenizer, timing_profile, num_beams, max
demo/HuggingFace/BART/measurements.py:150
↓ 3 callersFunctionfull_inference_greedy
( BART_encoder, BART_decoder, input_ids, tokenizer, timing_profile, max_length, mi
demo/HuggingFace/BART/measurements.py:81
↓ 3 callersMethodgenerate_and_download_framework
( self, metadata: NetworkMetadata, workspace: NNFolderWorkspace )
demo/HuggingFace/T5/frameworks.py:67
↓ 3 callersFunctiongenerate_data
(num_batches)
tools/Polygraphy/tests/backend/trt/test_calibrator.py:56
↓ 3 callersMethodgetBuffer
samples/common/buffers.h:385
↓ 3 callersMethodgetComponentsPerElement
\brief Return the number of components per element. This is always 1 for non-vectorized formats. \return the number of components per element.
include/NvInfer.h:8512
↓ 3 callersFunctiongetCurrentTime
samples/common/sampleInference.cpp:468
↓ 3 callersMethodgetDataType
\brief Return DataType of the input/output of algorithm. \return the data type.
include/NvInfer.h:8480
↓ 3 callersFunctiongetElementSize
samples/common/common.h:631
↓ 3 callersMethodgetEnqueueEmitsProfile
\brief Get the enqueueEmitsProfile state. \return The enqueueEmitsProfile state. \see IExecutionContext::setEnqueueEmitsProfile()
include/NvInferRuntime.h:3174
↓ 3 callersMethodgetImplementation
\brief Return implementation of the algorithm.
include/NvInfer.h:8539
↓ 3 callersFunctiongetMHAMaskPackedSize
plugin/common/bertCommon.h:103
↓ 3 callersMethodgetMode
\brief Get the scale mode. \see setMode()
include/NvInfer.h:2240
↓ 3 callersMethodgetNbOptimizationProfiles
\brief Get number of optimization profiles. This is one higher than the index of the last optimization profile that has be defined (or zero, if none
include/NvInfer.h:9461
↓ 3 callersMethodgetPostPadding
\brief Get the padding. \see setPostPadding()
include/NvInfer.h:1956
↓ 3 callersMethodgetPrePadding
\brief Get the pre-padding. \see setPrePadding()
include/NvInfer.h:1928
↓ 3 callersMethodgetProfileShape
\brief Get the minimum / optimum / maximum dimensions for an input tensor given its name under an optimization profile. \param tensorName The name of
include/NvInferRuntime.h:2221
↓ 3 callersMethodgetProfiler
\brief Get the profiler. \see IProfiler setProfiler()
include/NvInferRuntime.h:2640
↓ 3 callersMethodgetShapeValues
\brief Get the minimum / optimum / maximum values for an input shape tensor. If the shape values have not been set previously with setShapeValues(),
include/NvInferRuntime.h:1406
↓ 3 callersMethodgetShouldLog
samples/common/logging.h:181
↓ 3 callersMethodgetStride
\brief Get the stride for the output slice. \return The slicing stride, or an invalid Dims structure. If the fourth input is present and non-null, t
include/NvInfer.h:4326
↓ 3 callersMethodgetTactic
\brief Return tactic of the algorithm.
include/NvInfer.h:8547
↓ 3 callersMethodgetVectorizedDim
\brief Return the index of the vectorized dimension or -1 for non-vectorized formats. \return the index of the vectorized dimension.
include/NvInfer.h:8501
↓ 3 callersMethodgetWorkspaceSize
plugin/bertQKVToContextPlugin/qkvToContextPlugin.cpp:344
↓ 3 callersMethodget_batch
(self, names)
tools/Polygraphy/polygraphy/backend/trt/calibrator.py:203
↓ 3 callersMethodget_batch
Retrieve the batches. This is a generator object, so you can use it within a loop as: for batch, images in batcher.get_batch():
samples/python/efficientdet/image_batcher.py:154
↓ 3 callersMethodget_batch
Retrieve the batches. This is a generator object, so you can use it within a loop as: for batch, images in batcher.get_batch():
samples/python/efficientnet/image_batcher.py:162
↓ 3 callersMethodget_batch
Retrieve the batches. This is a generator object, so you can use it within a loop as: for batch, images in batcher.get_batch():
samples/python/tensorflow_object_detection_api/image_batcher.py:156
↓ 3 callersMethodget_bindings
Return a list of the inputs bindings and a list of the output bindings
tools/experimental/trt-engine-explorer/trex/engine_plan.py:148
↓ 3 callersFunctionget_dot_id
(layer_name: str)
tools/experimental/trt-engine-explorer/trex/graphing.py:640
↓ 3 callersFunctionget_dtype
(tensor)
tools/Polygraphy/polygraphy/backend/onnx/util.py:115
↓ 3 callersFunctionget_enabled_enum_vals
(EnumType, is_enabled)
tools/Polygraphy/polygraphy/backend/trt/util.py:401
↓ 3 callersFunctionget_finetuned_weights_dirname
Generates the directory name to save all files relevant to the model's quantization. Args: hyperparams (Dict): dictionary with neces
tools/tensorflow-quantization/examples/utils_finetuning.py:46
↓ 3 callersMethodget_go_frame
Gets all zeros frames to use as first decoder input PARAMS ------ memory: decoder outputs RETURNS -------
demo/Tacotron2/tacotron2/model.py:287
↓ 3 callersMethodget_model
(self)
demo/Diffusion/models.py:339
↓ 3 callersMethodget_optimization_profile
Provided helper function to obtain a profile optimization.
demo/HuggingFace/NNDF/tensorrt_utils.py:248
↓ 3 callersFunctionget_shape
(tensor)
tools/Polygraphy/polygraphy/backend/onnx/util.py:100
↓ 3 callersFunctionget_shapes
(lst, idx)
tools/Polygraphy/polygraphy/tools/args/backend/trt/config.py:44
↓ 3 callersFunctionget_version_range
()
python/packaging/libs_wheel/setup.py:26
↓ 3 callersFunctiongetopt_internal
* getopt_internal -- * Parse argc/argv argument vector. Called by user level routines. */
samples/common/getopt.c:323
↓ 3 callersFunctionhas_default
(param)
tools/Polygraphy/polygraphy/mod/exporter.py:129
↓ 3 callersFunctionidentity_block_plain
Identity block with no shortcut convolution
tools/tensorflow-quantization/tests/network_pool.py:60
↓ 3 callersFunctionimport_graph_file
(graph_file: str, profile_id: int=None)
tools/experimental/trt-engine-explorer/trex/parser.py:108
↓ 3 callersFunctionindent_block
Indents the provided block of text. Args: block (str): The text to indent. level (int): The number of tabs to indent with.
tools/Polygraphy/polygraphy/util/util.py:917
↓ 3 callersMethodinfer
Execute inference on a batch of images. :param batch: A numpy array holding the image batch. :return A list of outputs as num
samples/python/efficientdet/infer.py:116
↓ 3 callersMethodinfer
(self, batch)
samples/python/efficientdet/infer_tf.py:71
↓ 3 callersMethodinfer
Execute inference on a batch of images. The images should already be batched and preprocessed, as prepared by the ImageBatcher class.
samples/python/efficientnet/infer.py:99
↓ 3 callersMethodinfer
\brief Runs the TensorRT inference engine for this sample. \details This function is the main execution function of the sample. It allocates the buff
samples/sampleAlgorithmSelector/sampleAlgorithmSelector.cpp:631
↓ 3 callersFunctioninference
(features, tokens)
demo/BERT/inference_varseqlen.py:150
↓ 3 callersFunctioninference
(features, tokens)
demo/BERT/inference_c.py:132
↓ 3 callersFunctioninference
(features, tokens)
demo/BERT/inference.py:167
↓ 3 callersMethodinfo
(self, message, mode=LogMode.EACH)
tools/onnx-graphsurgeon/onnx_graphsurgeon/logger/logger.py:221
↓ 3 callersFunctioninitLibrary
samples/trtexec/trtexec.cpp:108
↓ 3 callersFunctioninitNvinfer
samples/trtexec/trtexec.cpp:136
↓ 3 callersMethodinitialize_decoder_states
Initializes attention rnn states, decoder rnn states, attention weights, attention cumulative weights, attention context, stores memory
demo/Tacotron2/tacotron2/model.py:305
↓ 3 callersMethodinput_spec
Get the specs for the input tensor of the network. Useful to prepare memory allocations. :return: Two items, the shape of the input t
samples/python/tensorflow_object_detection_api/infer.py:88
↓ 3 callersMethodinputs
(self)
demo/HuggingFace/NNDF/checkpoints.py:137
↓ 3 callersMethodisValid
plugin/bertQKVToContextPlugin/fused_multihead_attention/include/fused_multihead_attention.h:428
↓ 3 callersFunctionis_file_like
(obj)
tools/Polygraphy/polygraphy/util/util.py:443
↓ 3 callersFunctionis_parent_pattern
Checks if parent heritage follows a specific 'pattern'. Args: parent_info (dict): dictionary with parent's information. pattern (
tools/tensorflow-quantization/tensorflow_quantization/custom_qdq_cases.py:33
↓ 3 callersFunctionis_parent_type
Checks if 'parent_class' is of type 'type'. Examples of types: Conv, BatchNorm, Dropout, Activation.
tools/tensorflow-quantization/tensorflow_quantization/custom_qdq_cases.py:25
↓ 3 callersFunctionis_rank_same
(arr, shape)
tools/Polygraphy/polygraphy/util/util.py:760
↓ 3 callersMethodis_using_random_data
Whether this data loader will randomly generate data rather than use real data. Returns: bool
tools/Polygraphy/polygraphy/tools/args/comparator/data_loader.py:276
↓ 3 callersFunctionis_variadic
(param)
tools/Polygraphy/polygraphy/mod/exporter.py:126
↓ 3 callersFunctionissueDeprecationWarning
python/src/utils.cpp:25
↓ 3 callersMethoditerate
This method provides the overall functionality for iteratively debugging. It essentially does: :: while True:
tools/Polygraphy/polygraphy/tools/debug/subtool/iterative_debug_args.py:523
↓ 3 callersMethodlatency
ideal latency
samples/common/sampleReporting.h:64
↓ 3 callersFunctionload
(mode="base64")
tools/Polygraphy/polygraphy/json/serde.py:216
↓ 3 callersFunctionloadEngineToBuildEnv
samples/common/sampleEngines.cpp:1324
↓ 3 callersMethodloadEngines
Build and load engines for TensorRT accelerated inference. Export ONNX models first, if applicable. Args: engine
demo/Diffusion/stable_diffusion_pipeline.py:184
↓ 3 callersMethodloadResources
(self, image_height, image_width, batch_size, seed)
demo/Diffusion/stable_diffusion_pipeline.py:141
↓ 3 callersMethodload_graph
Loads a TensorFlow graph according to arguments provided on the command-line. Returns: tf.Graph
tools/Polygraphy/polygraphy/tools/args/backend/tf/loader.py:245
↓ 3 callersMethodload_nn_semantic_checkpoint
Loads the NNSemanticCheckpoint instance from checkpoint.toml file.
demo/HuggingFace/NNDF/interface.py:208
↓ 3 callersFunctionload_tfrecord_mean_min_max
Loads `tfrecord` dataset and calculates the data's mean, min, and max values. Args: model_name (str): model name for data pre-proces
tools/tensorflow-quantization/examples/data/test_data_loader.py:40
↓ 3 callersFunctionlowercase
(text)
demo/Tacotron2/tacotron2/text/cleaners.py:72
↓ 3 callersFunctionlround
Nearest integer. \param arg half to round \return nearest integer, rounded away from zero in half-way cases template<typename T> typename enable<long,
parsers/common/ieee_half.h:2596
↓ 3 callersFunctionmake_eval_dict
(exact_scores, f1_scores, qid_list=None)
demo/BERT/squad/evaluate-v2.0.py:132
← previousnext →701–800 of 8,179, ranked by callers