164 static constexpr int32_t kVALUE = 14;
204 mImpl->setName(name);
216 return mImpl->getName();
235 mImpl->setDimensions(dimensions);
249 return mImpl->getDimensions();
264 mImpl->setType(type);
276 return mImpl->getType();
293 return mImpl->setDynamicRange(min, max);
301 return mImpl->isNetworkInput();
309 return mImpl->isNetworkOutput();
326 mImpl->setBroadcastAcrossBatch(broadcastAcrossBatch);
340 return mImpl->getBroadcastAcrossBatch();
352 return mImpl->getLocation();
371 mImpl->setLocation(location);
383 return mImpl->dynamicRangeIsSet();
391 mImpl->resetDynamicRange();
401 return mImpl->getDynamicRangeMin();
411 return mImpl->getDynamicRangeMax();
433 mImpl->setAllowedFormats(formats);
446 return mImpl->getAllowedFormats();
477 return mImpl->isShapeTensor();
498 return mImpl->isExecutionTensor();
524 mImpl->setDimensionName(index, name);
539 return mImpl->getDimensionName(index);
564 return mLayer->getType();
578 mLayer->setName(name);
588 return mLayer->getName();
596 return mLayer->getNbInputs();
609 return mLayer->getInput(index);
617 return mLayer->getNbOutputs();
627 return mLayer->getOutput(index);
644 return mLayer->setInput(index, tensor);
675 mLayer->setPrecision(dataType);
687 return mLayer->getPrecision();
699 return mLayer->precisionIsSet();
709 mLayer->resetPrecision();
756 mLayer->setOutputType(index, dataType);
771 return mLayer->getOutputType(index);
785 return mLayer->outputTypeIsSet(index);
797 return mLayer->resetOutputType(index);
815 mLayer->setMetadata(metadata);
828 return mLayer->getMetadata();
833 apiv::VLayer* mLayer;
1010 static constexpr int32_t kVALUE = 4;
1038 mImpl->setNbOutputMaps(nbOutputMaps);
1048 return mImpl->getNbOutputMaps();
1068 mImpl->setNbGroups(nbGroups);
1078 return mImpl->getNbGroups();
1092 mImpl->setKernelWeights(weights);
1102 return mImpl->getKernelWeights();
1117 mImpl->setBiasWeights(weights);
1127 return mImpl->getBiasWeights();
1144 mImpl->setPrePadding(padding);
1154 return mImpl->getPrePadding();
1171 mImpl->setPostPadding(padding);
1181 return mImpl->getPostPadding();
1195 mImpl->setPaddingMode(paddingMode);
1207 return mImpl->getPaddingMode();
1220 mImpl->setKernelSizeNd(kernelSize);
1230 return mImpl->getKernelSizeNd();
1245 mImpl->setStrideNd(stride);
1255 return mImpl->getStrideNd();
1273 mImpl->setPaddingNd(padding);
1285 return mImpl->getPaddingNd();
1299 mImpl->setDilationNd(dilation);
1309 return mImpl->getDilationNd();
1358 mImpl->setActivationType(type);
1368 return mImpl->getActivationType();
1383 mImpl->setAlpha(alpha);
1397 mImpl->setBeta(beta);
1406 return mImpl->getAlpha();
1415 return mImpl->getBeta();
1445 static constexpr int32_t kVALUE = 3;
1472 mImpl->setPoolingType(type);
1482 return mImpl->getPoolingType();
1497 mImpl->setBlendFactor(blendFactor);
1510 return mImpl->getBlendFactor();
1524 mImpl->setAverageCountExcludesPadding(exclusive);
1535 return mImpl->getAverageCountExcludesPadding();
1553 mImpl->setPrePadding(padding);
1563 return mImpl->getPrePadding();
1581 mImpl->setPostPadding(padding);
1591 return mImpl->getPostPadding();
1604 mImpl->setPaddingMode(paddingMode);
1615 return mImpl->getPaddingMode();
1628 mImpl->setWindowSizeNd(windowSize);
1638 return mImpl->getWindowSizeNd();
1653 mImpl->setStrideNd(stride);
1663 return mImpl->getStrideNd();
1682 mImpl->setPaddingNd(padding);
1694 return mImpl->getPaddingNd();
1725 mImpl->setWindowSize(windowSize);
1735 return mImpl->getWindowSize();
1747 mImpl->setAlpha(alpha);
1757 return mImpl->getAlpha();
1769 mImpl->setBeta(beta);
1779 return mImpl->getBeta();
1801 return mImpl->getK();
1867 mImpl->setMode(mode);
1877 return mImpl->getMode();
1887 mImpl->setShift(shift);
1897 return mImpl->getShift();
1907 mImpl->setScale(scale);
1917 return mImpl->getScale();
1927 mImpl->setPower(power);
1937 return mImpl->getPower();
1952 return mImpl->getChannelAxis();
1973 mImpl->setChannelAxis(channelAxis);
2026 mImpl->setAxes(axes);
2036 return mImpl->getAxes();
2072 mImpl->setAxis(axis);
2082 return mImpl->getAxis();
2109 mImpl->setNbOutputMaps(nbOutputMaps);
2119 return mImpl->getNbOutputMaps();
2139 mImpl->setNbGroups(nbGroups);
2149 return mImpl->getNbGroups();
2163 mImpl->setKernelWeights(weights);
2173 return mImpl->getKernelWeights();
2188 mImpl->setBiasWeights(weights);
2198 return mImpl->getBiasWeights();
2215 mImpl->setPrePadding(padding);
2225 return mImpl->getPrePadding();
2242 mImpl->setPostPadding(padding);
2252 return mImpl->getPostPadding();
2266 mImpl->setPaddingMode(paddingMode);
2278 return mImpl->getPaddingMode();
2293 mImpl->setKernelSizeNd(kernelSize);
2303 return mImpl->getKernelSizeNd();
2320 mImpl->setStrideNd(stride);
2330 return mImpl->getStrideNd();
2348 mImpl->setPaddingNd(padding);
2360 return mImpl->getPaddingNd();
2386 mImpl->setDilationNd(dilation);
2396 return mImpl->getDilationNd();
2446 static constexpr int32_t kVALUE = 14;
2483 return mImpl->setOperation(op);
2495 return mImpl->getOperation();
2616 mImpl->setGatherAxis(axis);
2628 return mImpl->getGatherAxis();
2651 mImpl->setNbElementWiseDims(elementWiseDims);
2661 return mImpl->getNbElementWiseDims();
2671 mImpl->setMode(mode);
2681 return mImpl->getMode();
2710 return mImpl->getPlugin();
2737 return mImpl->getPlugin();
2820 mImpl->setOperation(op);
2830 return mImpl->getOperation();
2893 mImpl->setOperation(op);
2903 return mImpl->getOperation();
2913 mImpl->setReduceAxes(reduceAxes);
2923 return mImpl->getReduceAxes();
2933 mImpl->setKeepDimensions(keepDimensions);
2943 return mImpl->getKeepDimensions();
2977 mImpl->setPrePaddingNd(padding);
2989 return mImpl->getPrePaddingNd();
3003 mImpl->setPostPaddingNd(padding);
3015 return mImpl->getPostPaddingNd();
3065 mImpl->setFirstTranspose(permutation);
3077 return mImpl->getFirstTranspose();
3105 mImpl->setReshapeDimensions(dimensions);
3118 return mImpl->getReshapeDimensions();
3165 mImpl->setSecondTranspose(permutation);
3177 return mImpl->getSecondTranspose();
3193 return mImpl->setZeroIsPlaceholder(zeroIsPlaceholder);
3206 return mImpl->getZeroIsPlaceholder();
3317 mImpl->setStart(start);
3332 return mImpl->getStart();
3346 return mImpl->setSize(size);
3361 return mImpl->getSize();
3375 mImpl->setStride(stride);
3390 return mImpl->getStride();
3400 mImpl->setMode(mode);
3410 return mImpl->getMode();
3453 mImpl->setAxes(axes);
3468 return mImpl->getAxes();
返回 2;
3538 mImpl->setOperation(op);
返回
mImpl->getOperation();
3586 mImpl->setReduceAxes(reduceAxes);
返回
mImpl->getReduceAxes();
返回 3;
3698 mImpl->setOperation(index, op);
返回
mImpl->getOperation(index);
3818 mImpl->setToType(toType);
3858 mImpl->setWeights(weights);
3880 mImpl->setDimensions(dimensions);
返回
mImpl->getDimensions();
3938 static constexpr int32_t kVALUE = 3;
3992 static constexpr int32_t kVALUE = 3;
4022 static constexpr int32_t kVALUE = 2;
4058 static constexpr int32_t kVALUE = 4;
返回
mImpl->setOutputDimensions(dimensions);
返回
mImpl->getOutputDimensions();
4159 void setScales(
float const* scales, int32_t nbScales)
noexcept
4161 mImpl->setScales(scales, nbScales);
4178 int32_t
getScales(int32_t size,
float* scales)
const noexcept
返回
mImpl->getScales(size, scales);
4192 mImpl->setResizeMode(interpolationMode);
返回
mImpl->getResizeMode();
4237 mImpl->setCoordinateTransformation(coordTransform);
返回
mImpl->getCoordinateTransformation();
4262 mImpl->setSelectorForSinglePixel(selector);
返回
mImpl->getSelectorForSinglePixel();
4286 mImpl->setNearestRounding(value);
返回
mImpl->getNearestRounding();
4318 mImpl->setCubicCoeff(A);
返回
mImpl->getCubicCoeff();
4341 mImpl->setExcludeOutside(excludeFlag);
返回
mImpl->getExcludeOutside();
返回 3;
返回 2;
返回 mBoundary->getLoop();
4434 apiv::VLoopBoundaryLayer* mBoundary;
返回 mBoundary->getConditional();
4457 apiv::VConditionalBoundaryLayer* mBoundary;
4540 return mImpl->setCondition(condition);
4558 return mImpl->addOutput(trueSubgraphOutput, falseSubgraphOutput);
4570 return mImpl->addInput(input);
4585 mImpl->setName(name);
4595 return mImpl->getName();
4665 return mImpl->getLoopOutput();
4682 mImpl->setAxis(axis);
4690 return mImpl->getAxis();
4739 return mImpl->getTripLimit();
4765 mImpl->setAxis(axis);
4773 return mImpl->getAxis();
4787 mImpl->setReverse(reverse);
4797 return mImpl->getReverse();
4825 return mImpl->addRecurrence(initialValue);
4846 return mImpl->addTripLimit(tensor, limit);
4859 return mImpl->addIterator(tensor, axis, reverse);
4872 return mImpl->addLoopOutput(tensor, outputKind, axis);
4887 mImpl->setName(name);
4897 return mImpl->getName();
4952 mImpl->setMessage(message);
4962 return mImpl->getMessage();
5064 mImpl->setDimensions(dimensions);
5079 return mImpl->getDimensions();
5089 mImpl->setOperation(op);
5099 return mImpl->getOperation();
5118 mImpl->setAlpha(alpha);
5133 return mImpl->getAlpha();
5152 mImpl->setBeta(beta);
5167 return mImpl->getBeta();
5228 mImpl->setAlphaInt64(alpha);
5243 return mImpl->getAlphaInt64();
5262 mImpl->setBetaInt64(beta);
5277 return mImpl->getBetaInt64();
5285 return mImpl->isAlphaBetaInt64();
5302 mImpl->setToType(toType);
5314 return mImpl->getToType();
5409 return mImpl->getAxis();
5420 mImpl->setAxis(axis);
5436 mImpl->setToType(toType);
5448 return mImpl->getToType();
5540 return mImpl->getAxis();
5551 mImpl->setAxis(axis);
5567 mImpl->setToType(toType);
5579 return mImpl->getToType();
5634 mImpl->setToType(toType);
5647 return mImpl->getToType();
5659 mImpl->setScaleType(scaleType);
5672 return mImpl->getScaleType();
5685 mImpl->setAxis(axis);
5695 return mImpl->getAxis();
5708 mImpl->setBlockSize(size);
5718 return mImpl->getBlockSize();
5776 return mImpl->setEquation(equation);
5786 return mImpl->getEquation();
5885 mImpl->setMode(mode);
5895 return mImpl->getMode();
5905 mImpl->setAxis(axis);
5913 return mImpl->getAxis();
5957 mImpl->setAxis(axis);
5965 return mImpl->getAxis();
5993 mImpl->setInterpolationMode(mode);
6005 return mImpl->getInterpolationMode();
6015 mImpl->setAlignCorners(alignCorners);
6027 return mImpl->getAlignCorners();
6039 return mImpl->setSampleMode(mode);
6051 return mImpl->getSampleMode();
6145 mImpl->setBoundingBoxFormat(fmt);
6157 return mImpl->getBoundingBoxFormat();
6171 mImpl->setTopKBoxLimit(limit);
6181 return mImpl->getTopKBoxLimit();
6234 mImpl->setBatchAxis(batchAxis);
6244 return mImpl->getBatchAxis();
6257 mImpl->setSequenceAxis(sequenceAxis);
6267 return mImpl->getSequenceAxis();
6305 return mImpl->setEpsilon(eps);
6315 return mImpl->getEpsilon();
6325 return mImpl->setAxes(axesMask);
6335 return mImpl->getAxes();
6356 return mImpl->setNbGroups(nbGroups);
6366 return mImpl->getNbGroups();
6392 return mImpl->setComputePrecision(type);
6402 return mImpl->getComputePrecision();
6496 static constexpr int32_t kVALUE = 1;
6542 return mImpl->setOperation(op);
6554 return mImpl->getOperation();
6566 mImpl->setExclusive(exclusive);
6578 return mImpl->getExclusive();
6590 mImpl->setReverse(reverse);
6602 return mImpl->getReverse();
6670 return mImpl->addInput(name, type, dimensions);
6684 mImpl->markOutput(tensor);
6702 return mImpl->markDebug(tensor);
6718 return mImpl->unmarkDebug(tensor);
6728 return mImpl->isDebugTensor(tensor);
6748 return mImpl->addActivation(input, type);
6767 return mImpl->addLRN(input, window, alpha, beta, k);
6793 return mImpl->addScale(input, mode, shift, scale, power);
6806 return mImpl->addSoftMax(input);
6823 return mImpl->addConcatenation(inputs, nbInputs);
6850 return mImpl->addElementWise(input1, input2, op);
6872 return mImpl->addUnary(input, operation);
6886 return mImpl->addShuffle(input);
6903 return mImpl->addOneHot(indices, values, depth, axis);
6915 return mImpl->getNbLayers();
6929 return mImpl->getLayer(index);
6941 return mImpl->getNbInputs();
6957 return mImpl->getInput(index);
6971 return mImpl->getNbOutputs();
6987 return mImpl->getOutput(index);
7014 return mImpl->addReduce(input, operation, reduceAxes, keepDimensions);
7046 return mImpl->addTopK(input, op, k, reduceAxes);
7062 return mImpl->addGather(data, indices, axis);
7078 return mImpl->addGatherV2(data, indices, mode);
7097 return mImpl->addRaggedSoftMax(input, bounds);
7119 return mImpl->addMatrixMultiply(input0, op0, input1, op1);
7133 return mImpl->addNonZero(input);
7157 return mImpl->addConstant(dimensions, weights);
7171 return mImpl->addIdentity(input);
7186 return mImpl->addCast(input, toType);
7201 mImpl->removeTensor(tensor);
7213 mImpl->unmarkOutput(tensor);
7234 return mImpl->addPluginV2(inputs, nbInputs, plugin);
7251 int32_t nbShapeInputs,
IPluginV3& plugin)
noexcept
7253 return mImpl->addPluginV3(inputs, nbInputs, shapeInputs, nbShapeInputs, plugin);
7272 return mImpl->addSlice(input, start, size, stride);
7296 mImpl->setName(name);
7310 return mImpl->getName();
7326 return mImpl->addShape(input);
7340 return mImpl->hasImplicitBatchDimension();
7350 return mImpl->getFlags();
7362 return mImpl->getFlag(networkDefinitionCreationFlag);
7379 return mImpl->markOutputForShapes(tensor);
7391 return mImpl->unmarkOutputForShapes(tensor);
7409 return mImpl->addParametricReLU(input, slope);
7432 return mImpl->addConvolutionNd(input, nbOutputMaps, kernelSize, kernelWeights, biasWeights);
7451 return mImpl->addPoolingNd(input, type, windowSize);
7474 return mImpl->addDeconvolutionNd(input, nbOutputMaps, kernelSize, kernelWeights, biasWeights);
7511 return mImpl->addScaleNd(input, mode, shift, scale, power, channelAxis);
7527 return mImpl->addResize(input);
7541 return mImpl->addLoop();
7556 return mImpl->addIfConditional();
7595 return mImpl->addSelect(condition, thenInput, elseInput);
7612 return mImpl->addAssertion(condition, message);
7637
return mImpl->addFill(dimensions, op);
7663
return mImpl->addFillV2(dimensions, op, outputType);
7679
return mImpl->addPaddingNd(input, prePadding, postPadding);
7703
return mImpl->setWeightsName(weights, name);
7722
mImpl->setErrorRecorder(recorder);
7737
return mImpl->getErrorRecorder();
7758
return mImpl->addDequantize(input, scale);
7779
return mImpl->addDequantizeV2(input, scale, outputType);
7799
return mImpl->addScatter(data, indices, updates, mode);
7820
return mImpl->addQuantize(input, scale);
7841
return mImpl->addQuantizeV2(input, scale, outputType);
7868
return mImpl->addDynamicQuantize(input, axis, blockSize, outputType, scaleType);
7883
return mImpl->addEinsum(inputs, nbInputs, equation);
7901
return mImpl->addGridSample(input, grid);
7919
return mImpl->addNMS(boxes, scores, maxOutputBoxesPerClass);
7936
return mImpl->addReverseSequence(input, sequenceLens);
7962
return mImpl->addNormalization(input, scale, bias, axesMask);
7984
return mImpl->addCumulative(input, axis, operation, exclusive, reverse);
7995
return mImpl->getBuilder();
8008
return mImpl->markWeightsRefittable(name);
8020
return mImpl->unmarkWeightsRefittable(name);
8033
return mImpl->areWeightsMarkedRefittable(name);
8052
return mImpl->addSqueeze(input, axes);
8073
return mImpl->addUnsqueeze(input, axes);
8103 return 4;
8145 virtual
bool getBatch(
void* bindings[],
char const* names[], int32_t nbBindings) noexcept = 0;
8161 virtual
void const* readCalibrationCache(std::
size_t& length) noexcept = 0;
8171 virtual
void writeCalibrationCache(
void const* ptr, std::
size_t length) noexcept = 0;
8206 }
8246 }
8286 }
8337 virtual
double getRegressionCutoff() const noexcept = 0;
8351 virtual
void const* readHistogramCache(std::
size_t& length) noexcept = 0;
8361 virtual
void writeHistogramCache(
void const* ptr, std::
size_t length) noexcept = 0;
8365 }
8404 return mImpl->getDataType();
8415 return mImpl->getStrides();
8425 return mImpl->getVectorizedDim();
8436 return mImpl->getComponentsPerElement();
8465 return mImpl->getImplementation();
8473 return mImpl->getTactic();
8501 return mImpl->getName();
8513 return mImpl->getDimensions(index, select);
8521 return mImpl->getNbInputs();
8529 return mImpl->getNbOutputs();
8558 return mImpl->getAlgorithmVariant();
8566 return mImpl->getTimingMSec();
8574 return mImpl->getWorkspaceSize();
8588 return mImpl->getAlgorithmIOInfoByIndex(index);
8623 int32_t nbChoices, int32_t* selection)
noexcept = 0;
8636 int32_t nbAlgorithms)
noexcept = 0;
8730 static constexpr int32_t kVALUE = 2;
8949 static constexpr uint64_t kINVALID_TACTIC_HASH = UINT64_MAX;
8982 return mImpl->serialize();
9006 return mImpl->combine(inputCache, ignoreMismatch);
9016 return mImpl->reset();
9033 int64_t
queryKeys(TimingCacheKey* keyBuffer, int64_t capacity)
const noexcept
9035 return mImpl->queryKeys(keyBuffer, capacity);
9050 TimingCacheValue
query(TimingCacheKey
const& key)
const noexcept
9052 return mImpl->query(key);
9072 bool update(TimingCacheKey
const& key, TimingCacheValue
const& value)
noexcept
9074 return mImpl->update(key, value);
9188 static constexpr int32_t kVALUE = 2;
9230 static constexpr int32_t kVALUE = 2;
9269 static constexpr int32_t kVALUE = 4;
9308 virtual void phaseStart(
char const* phaseName,
char const* parentPhase, int32_t nbSteps)
noexcept
9381 virtual
void setAvgTimingIterations(int32_t avgTiming) noexcept
9383 mImpl->setAvgTimingIterations(avgTiming);
9395 return mImpl->getAvgTimingIterations();
9408 mImpl->setEngineCapability(capability);
9420 return mImpl->getEngineCapability();
9432 mImpl->setInt8Calibrator(calibrator);
9442 return mImpl->getInt8Calibrator();
9459 mImpl->setFlags(builderFlags);
9471 return mImpl->getFlags();
9483 mImpl->clearFlag(builderFlag);
9495 mImpl->setFlag(builderFlag);
9507 return mImpl->getFlag(builderFlag);
9524 mImpl->setDeviceType(layer, deviceType);
9534 return mImpl->getDeviceType(layer);
9546 return mImpl->isDeviceTypeSet(layer);
9556 mImpl->resetDeviceType(layer);
9566 return mImpl->canRunOnDLA(layer);
9582 mImpl->setDLACore(dlaCore);
9592 return mImpl->getDLACore();
9603 mImpl->setDefaultDeviceType(deviceType);
9613 return mImpl->getDefaultDeviceType();
9635 return mImpl->setProfileStream(stream);
9647 return mImpl->getProfileStream();
9664 return mImpl->addOptimizationProfile(profile);
9677 return mImpl->getNbOptimizationProfiles();
9689 mImpl->setProfilingVerbosity(verbosity);
9702 return mImpl->getProfilingVerbosity();
9714 mImpl->setAlgorithmSelector(selector);
9724 return mImpl->getAlgorithmSelector();
9742 return mImpl->setCalibrationProfile(profile);
9754 return mImpl->getCalibrationProfile();
9771 mImpl->setQuantizationFlags(flags);
9783 return mImpl->getQuantizationFlags();
9795 mImpl->clearQuantizationFlag(flag);
9807 mImpl->setQuantizationFlag(flag);
9819 return mImpl->getQuantizationFlag(flag);
9841 return mImpl->setTacticSources(tacticSources);
9856 return mImpl->getTacticSources();
9875 return mImpl->createTimingCache(blob, size);
9898 return mImpl->setTimingCache(cache, ignoreMismatch);
9908 return mImpl->getTimingCache();
9940 mImpl->setMemoryPoolLimit(pool, poolSize);
9959 return mImpl->getMemoryPoolLimit(pool);
9977 mImpl->setPreviewFeature(feature, enable);
9991 return mImpl->getPreviewFeature(feature);
10024 mImpl->setBuilderOptimizationLevel(level);
10036 return mImpl->getBuilderOptimizationLevel();
10053 mImpl->setHardwareCompatibilityLevel(hardwareCompatibilityLevel);
10066 return mImpl->getHardwareCompatibilityLevel();
10079 mImpl->setPluginsToSerialize(paths, nbPaths);
10092 return mImpl->getPluginToSerialize(index);
10102 return mImpl->getNbPluginsToSerialize();
10131 mImpl->setMaxAuxStreams(nbStreams);
10141 return mImpl->getMaxAuxStreams();
10157 return mImpl->setProgressMonitor(monitor);
10167 return mImpl->getProgressMonitor();
10183 mImpl->setRuntimePlatform(runtimePlatform);
10195 return mImpl->getRuntimePlatform();
10207 mImpl->setMaxNbTactics(maxNbTactics);
10219 return mImpl->getMaxNbTactics();
10235 return mImpl->setTilingOptimizationLevel(level);
10247 return mImpl->getTilingOptimizationLevel();
10263 return mImpl->setL2LimitForTiling(size);
10275 return mImpl->getL2LimitForTiling();
10343 return mImpl->platformHasFastFp16();
10353 return mImpl->platformHasFastInt8();
10365 return mImpl->getMaxDLABatchSize();
10373 return mImpl->getNbDLACores();
10390 mImpl->setGpuAllocator(allocator);
10400 return mImpl->createBuilderConfig();
10422 return mImpl->createNetworkV2(flags);
10437 return mImpl->createOptimizationProfile();
10456 mImpl->setErrorRecorder(recorder);
10471 return mImpl->getErrorRecorder();
10489 return mImpl->platformHasTf32();
10508 return mImpl->buildSerializedNetwork(network, config);
10528 return mImpl->buildEngineWithConfig(network, config);
10550 return mImpl->isNetworkSupported(network, config);
10560 return mImpl->getLogger();
10576 return mImpl->setMaxThreads(maxThreads);
10590 return mImpl->getMaxThreads();
10600 return mImpl->getPluginRegistry();
10603protected
10607}
10613extern "C" TENSORRTAPI void* createInferBuilder_INTERNAL(
void* logger, int32_t version)
noexcept;
10632}
10653}
10665}
10667#endif
#define TENSORRTAPI
Definition: NvInferRuntimeBase.h:59
#define NV_TENSORRT_VERSION
Definition: NvInferRuntimeBase.h:91
#define TRT_DEPRECATED
Definition: NvInferRuntimeBase.h:45
#define TRT_DEPRECATED_ENUM
Definition: NvInferRuntimeBase.h:46
Definition: NvInferRuntimeBase.h:203
static constexpr int32_t MAX_DIMS
张量支持的最大秩(维度数量)。
Definition: NvInferRuntimeBase.h:206
网络定义中的激活层。
Definition: NvInfer.h:1347
void setBeta(float beta) noexcept
设置 beta 参数(必须为有限值)。
Definition: NvInfer.h:1395
void setActivationType(ActivationType type) noexcept
设置要执行的激活类型。
Definition: NvInfer.h:1356
ActivationType getActivationType() const noexcept
获取要执行的激活类型。
Definition: NvInfer.h:1366
float getAlpha() const noexcept
获取 alpha 参数。
Definition: NvInfer.h:1404
virtual ~IActivationLayer() noexcept=default
float getBeta() const noexcept
获取 beta 参数。
Definition: NvInfer.h:1413
void setAlpha(float alpha) noexcept
设置 alpha 参数(必须为有限值)。
Definition: NvInfer.h:1381
描述上下文和需求,这些上下文和需求可以由一个或多个 IAlgorithm... 实例来实现。
Definition: NvInfer.h:8492
int32_t getNbOutputs() const noexcept
返回算法的输出数量。
Definition: NvInfer.h:8527
int32_t getNbInputs() const noexcept
返回算法的输入数量。
Definition: NvInfer.h:8519
char const * getName() const noexcept
返回算法节点的名称。
Definition: NvInfer.h:8499
virtual ~IAlgorithmContext() noexcept=default
Dims getDimensions(int32_t index, OptProfileSelector select) const noexcept
获取输入或输出张量的最小/最佳/最大维度。
Definition: NvInfer.h:8511
描述层的执行变体。算法由 IAlgorithmVariant 和 ... 表示
Definition: NvInfer.h:8551
std::size_t getWorkspaceSize() const noexcept
算法在执行时使用的 GPU 临时内存大小(以字节为单位)。
Definition: NvInfer.h:8572
float getTimingMSec() const noexcept
执行算法的时间(以毫秒为单位)。
Definition: NvInfer.h:8564
IAlgorithmIOInfo const * getAlgorithmIOInfoByIndex(int32_t index) const noexcept
返回算法输入或输出的格式。算法输入首先按增量编号...
Definition: NvInfer.h:8586
virtual ~IAlgorithm() noexcept=default
IAlgorithmVariant const & getAlgorithmVariant() const noexcept
返回算法变体。
Definition: NvInfer.h:8556
携带有关算法输入或输出的信息。所有输入和输出的 IAlgorithmIOInfo...
Definition: NvInfer.h:8395
virtual ~IAlgorithmIOInfo() noexcept=default
int64_t getVectorizedDim() const noexcept
返回向量化维度的索引;对于非向量化格式,则返回 -1。
Definition: NvInfer.h:8423
Dims getStrides() const noexcept
返回算法的输入/输出张量的步幅。对于向量化格式,步幅以 ... 为单位给出
Definition: NvInfer.h:8413
DataType getDataType() const noexcept
返回算法的输入/输出的数据类型。
Definition: NvInfer.h:8402
int64_t getComponentsPerElement() const noexcept
返回每个元素的组件数。对于非向量化格式,这始终为 1。
Definition: NvInfer.h:8434
提供唯一的 128 位标识符,该标识符与输入和输出信息一起表示 v...
Definition: NvInfer.h:8458
virtual ~IAlgorithmVariant() noexcept=default
int64_t getTactic() const noexcept
返回算法的策略。
Definition: NvInfer.h:8471
int64_t getImplementation() const noexcept
返回算法的实现。
Definition: NvInfer.h:8463
网络中的断言层。
Definition: NvInfer.h:4940
void setMessage(char const *message) noexcept
设置断言失败时要打印的消息。
Definition: NvInfer.h:4950
char const * getMessage() const noexcept
返回断言消息。
Definition: NvInfer.h:4960
virtual ~IAssertionLayer() noexcept=default
保存用于配置构建器以生成引擎的属性。
Definition: NvInfer.h:9369
void setMemoryPoolLimit(MemoryPoolType pool, std::size_t poolSize) noexcept
设置内存池的内存大小。
Definition: NvInfer.h:9938
void setQuantizationFlag(QuantizationFlag flag) noexcept
设置单个量化标志。
Definition: NvInfer.h:9805
nvinfer1::ITimingCache * createTimingCache(void const *blob, std::size_t size) const noexcept
创建时序缓存。
Definition: NvInfer.h:9873
void setPreviewFeature(PreviewFeature feature, bool enable) noexcept
启用或禁用特定的预览功能。
Definition: NvInfer.h:9975
TRT_DEPRECATED void setAlgorithmSelector(IAlgorithmSelector *selector) noexcept
设置算法选择器。
Definition: NvInfer.h:9712
TRT_DEPRECATED void setInt8Calibrator(IInt8Calibrator *calibrator) noexcept
设置 Int8 校准接口。
Definition: NvInfer.h:9430
bool getPreviewFeature(PreviewFeature feature) const noexcept
获取预览功能的状态。
Definition: NvInfer.h:9989
void clearQuantizationFlag(QuantizationFlag flag) noexcept
清除量化标志。
Definition: NvInfer.h:9793
int32_t getBuilderOptimizationLevel() noexcept
获取构建器优化级别。
Definition: NvInfer.h:10034
bool setTacticSources(TacticSources tacticSources) noexcept
设置策略源。
Definition: NvInfer.h:9839
void setPluginsToSerialize(char const *const *paths, int32_t nbPaths) noexcept
设置要与版本兼容引擎一起序列化的插件库。
Definition: NvInfer.h:10077
bool setTilingOptimizationLevel(TilingOptimizationLevel level) noexcept
设置平铺优化级别。
Definition: NvInfer.h:10233
bool setL2LimitForTiling(int64_t size) noexcept
设置平铺优化的 L2 缓存使用限制。
Definition: NvInfer.h:10261
bool getQuantizationFlag(QuantizationFlag flag) const noexcept
如果设置了量化标志,则返回 true。
Definition: NvInfer.h:9817
TRT_DEPRECATED IInt8Calibrator * getInt8Calibrator() const noexcept
获取 Int8 校准接口。
Definition: NvInfer.h:9440
std::size_t getMemoryPoolLimit(MemoryPoolType pool) const noexcept
获取内存池的内存大小限制。
Definition: NvInfer.h:9957
int32_t getDLACore() const noexcept
获取引擎在其上执行的 DLA 核心。
Definition: NvInfer.h:9590
int32_t getNbPluginsToSerialize() const noexcept
获取要与版本兼容引擎一起序列化的插件库路径的数量。
Definition: NvInfer.h:10100
void setDeviceType(ILayer const *layer, DeviceType deviceType) noexcept
设置此层必须在其上执行的设备。
Definition: NvInfer.h:9522
void setEngineCapability(EngineCapability capability) noexcept
配置构建器以面向指定的 EngineCapability 流程。
Definition: NvInfer.h:9406
int32_t getMaxAuxStreams() const noexcept
获取 TRT 允许使用的最大辅助流数量。
Definition: NvInfer.h:10139
bool getFlag(BuilderFlag builderFlag) const noexcept
如果设置了构建模式标志,则返回 true。
Definition: NvInfer.h:9505
void setQuantizationFlags(QuantizationFlags flags) noexcept
设置量化标志。
Definition: NvInfer.h:9769
void setMaxNbTactics(int32_t maxNbTactics) noexcept
当有策略选择时,设置要计时的最大策略数量。
Definition: NvInfer.h:10205
int64_t getL2LimitForTiling() const noexcept
获取平铺优化的 L2 缓存使用限制。
Definition: NvInfer.h:10273
void setProgressMonitor(IProgressMonitor *monitor) noexcept
为构建网络设置进度监视器。
Definition: NvInfer.h:10155
void setProfilingVerbosity(ProfilingVerbosity verbosity) noexcept
设置 NVTX 注释和 IEngineInspector 中公开的图层信息的详细程度。
Definition: NvInfer.h:9687
int32_t getNbOptimizationProfiles() const noexcept
获取优化配置文件的数量。
Definition: NvInfer.h:9675
QuantizationFlags getQuantizationFlags() const noexcept
获取量化标志。
Definition: NvInfer.h:9781
nvinfer1::ITimingCache const * getTimingCache() const noexcept
从当前的 IBuilderConfig 获取指向时序缓存的指针。
Definition: NvInfer.h:9906
void reset() noexcept
将构建器配置重置为默认值。
Definition: NvInfer.h:9621
bool setTimingCache(ITimingCache const &cache, bool ignoreMismatch) noexcept
将时序缓存附加到 IBuilderConfig。
Definition: NvInfer.h:9896
char const * getPluginToSerialize(int32_t index) const noexcept
获取要与版本兼容引擎一起序列化的插件库路径。
Definition: NvInfer.h:10090
EngineCapability getEngineCapability() const noexcept
查询为构建器配置的 EngineCapability 流程。
Definition: NvInfer.h:9418
RuntimePlatform getRuntimePlatform() const noexcept
获取运行时执行的目标平台。
Definition: NvInfer.h:10193
DeviceType getDefaultDeviceType() const noexcept
获取由 setDefaultDeviceType 设置的默认 DeviceType。
Definition: NvInfer.h:9611
void setRuntimePlatform(RuntimePlatform runtimePlatform) noexcept
设置运行时执行的目标平台。
Definition: NvInfer.h:10181
int32_t getMaxNbTactics() const noexcept
查询在有选择时计时的最大策略数量。
Definition: NvInfer.h:10217
BuilderFlags getFlags() const noexcept
获取此构建器配置的构建模式标志。默认为 0。
Definition: NvInfer.h:9469
void setFlags(BuilderFlags builderFlags) noexcept
设置构建模式标志以为此网络启用构建器选项。
Definition: NvInfer.h:9457
TacticSources getTacticSources() const noexcept
获取策略源。
Definition: NvInfer.h:9854
void resetDeviceType(ILayer const *layer) noexcept
重置此图层的 DeviceType
Definition: NvInfer.h:9554
void setDLACore(int32_t dlaCore) noexcept
设置网络使用的 DLA 核心。默认为 -1。
Definition: NvInfer.h:9580
HardwareCompatibilityLevel getHardwareCompatibilityLevel() const noexcept
获取硬件兼容性级别。
Definition: NvInfer.h:10064
void clearFlag(BuilderFlag builderFlag) noexcept
清除单个构建模式标志。
Definition: NvInfer.h:9481
int32_t addOptimizationProfile(IOptimizationProfile const *profile) noexcept
添加优化配置文件。
Definition: NvInfer.h:9662
IProgressMonitor * getProgressMonitor() const noexcept
Definition: NvInfer.h:10165
apiv::VBuilderConfig * mImpl
Definition: NvInfer.h:10279
TRT_DEPRECATED IOptimizationProfile const * getCalibrationProfile() noexcept
获取当前的校准配置文件。
Definition: NvInfer.h:9752
int32_t getAvgTimingIterations() const noexcept
查询平均迭代次数。
Definition: NvInfer.h:9393
void setDefaultDeviceType(DeviceType deviceType) noexcept
设置构建器要使用的默认 DeviceType。它确保所有可以在 ... 上运行的图层
Definition: NvInfer.h:9601
void setFlag(BuilderFlag builderFlag) noexcept
设置单个构建模式标志。
Definition: NvInfer.h:9493
TRT_DEPRECATED bool setCalibrationProfile(IOptimizationProfile const *profile) noexcept
添加校准配置文件。
Definition: NvInfer.h:9740
virtual ~IBuilderConfig() noexcept=default
DeviceType getDeviceType(ILayer const *layer) const noexcept
获取此图层在其上执行的设备。
Definition: NvInfer.h:9532
bool canRunOnDLA(ILayer const *layer) const noexcept
检查图层是否可以在 DLA 上运行。
Definition: NvInfer.h:9564
cudaStream_t getProfileStream() const noexcept
获取用于分析此网络的 CUDA 流。
Definition: NvInfer.h:9645
void setHardwareCompatibilityLevel(HardwareCompatibilityLevel hardwareCompatibilityLevel) noexcept
设置硬件兼容性级别。
Definition: NvInfer.h:10051
TilingOptimizationLevel getTilingOptimizationLevel() const noexcept
获取平铺优化级别。
Definition: NvInfer.h:10245
void setMaxAuxStreams(int32_t nbStreams) noexcept
设置 TRT 允许使用的最大辅助流数量。
Definition: NvInfer.h:10129
ProfilingVerbosity getProfilingVerbosity() const noexcept
获取 NVTX 注释和 IEngineInspector 中公开的图层信息的详细程度。
Definition: NvInfer.h:9700
bool isDeviceTypeSet(ILayer const *layer) const noexcept
是否为此图层显式设置了 DeviceType
Definition: NvInfer.h:9544
void setBuilderOptimizationLevel(int32_t level) noexcept
设置构建器优化级别。
Definition: NvInfer.h:10022
void setProfileStream(const cudaStream_t stream) noexcept
设置用于分析此网络的 CUDA 流。
Definition: NvInfer.h:9633
TRT_DEPRECATED IAlgorithmSelector * getAlgorithmSelector() const noexcept
获取算法选择器。
Definition: NvInfer.h:9722
从网络定义构建引擎。
Definition: NvInfer.h:10332
int32_t getMaxDLABatchSize() const noexcept
获取 DLA 可以支持的最大批大小。对于任何张量,索引维度的总体积组合...
Definition: NvInfer.h:10363
int32_t getNbDLACores() const noexcept
返回此构建器可用的 DLA 引擎数量。
Definition: NvInfer.h:10371
IErrorRecorder * getErrorRecorder() const noexcept
获取分配给此接口的 ErrorRecorder。
Definition: NvInfer.h:10469
apiv::VBuilder * mImpl
Definition: NvInfer.h:10604
ILogger * getLogger() const noexcept
获取创建构建器时使用的记录器。
Definition: NvInfer.h:10558
bool isNetworkSupported(INetworkDefinition const &network, IBuilderConfig const &config) const noexcept
检查网络是否在 IBuilderConfig 设置的范围内。
Definition: NvInfer.h:10548
int32_t getMaxThreads() const noexcept
获取构建器可以使用的最大线程数。
Definition: NvInfer.h:10588
IPluginRegistry & getPluginRegistry() noexcept
获取构建器可以使用的本地插件注册表。
Definition: NvInfer.h:10598
TRT_DEPRECATED bool platformHasFastInt8() const noexcept
确定平台是否具有快速原生 int8 支持。
Definition: NvInfer.h:10351
nvinfer1::IOptimizationProfile * createOptimizationProfile() noexcept
创建一个新的优化配置文件。
Definition: NvInfer.h:10435
void setGpuAllocator(IGpuAllocator *allocator) noexcept
设置 GPU 分配器。
Definition: NvInfer.h:10388
nvinfer1::INetworkDefinition * createNetworkV2(NetworkDefinitionCreationFlags flags) noexcept
创建网络定义对象。
Definition: NvInfer.h:10420
nvinfer1::IBuilderConfig * createBuilderConfig() noexcept
创建构建器配置对象。
Definition: NvInfer.h:10398
void reset() noexcept
将构建器状态重置为默认值。
Definition: NvInfer.h:10477
bool setMaxThreads(int32_t maxThreads) noexcept
设置最大线程数。
Definition: NvInfer.h:10574
void setErrorRecorder(IErrorRecorder *recorder) noexcept
为此接口设置 ErrorRecorder。
Definition: NvInfer.h:10454
nvinfer1::IHostMemory * buildSerializedNetwork(INetworkDefinition &network, IBuilderConfig &config) noexcept
为给定的 INetworkDefinition 和 IBuilderConfig 构建和序列化网络。
Definition: NvInfer.h:10506
virtual ~IBuilder() noexcept=default
TRT_DEPRECATED bool platformHasTf32() const noexcept
确定平台是否具有 TF32 支持。
Definition: NvInfer.h:10487
nvinfer1::ICudaEngine * buildEngineWithConfig(INetworkDefinition &network, IBuilderConfig &config) noexcept
为给定的 INetworkDefinition 和 IBuilderConfig 构建网络。
Definition: NvInfer.h:10526
网络中的类型转换层。
Definition: NvInfer.h:3807
virtual ~ICastLayer() noexcept=default
apiv::VCastLayer * mImpl
Definition: NvInfer.h:3833
DataType getToType() const noexcept
返回类型转换层的输出类型。
Definition: NvInfer.h:3827
void setToType(DataType toType) noexcept
设置类型转换层的输出类型。
Definition: NvInfer.h:3816
网络定义中的连接层。
Definition: NvInfer.h:2057
void setAxis(int32_t axis) noexcept
设置发生连接的轴。
Definition: NvInfer.h:2070
int32_t getAxis() const noexcept
获取串联发生的轴。
定义: NvInfer.h:2080
virtual ~IConcatenationLayer() noexcept=default
此层表示 IIfConditional 的条件输入。
定义: NvInfer.h:4466
virtual ~IConditionLayer() noexcept=default
表示常量值的层。
定义: NvInfer.h:3846
void setWeights(Weights weights) noexcept
设置层的权重。
定义: NvInfer.h:3856
Weights getWeights() const noexcept
获取层的权重。
定义: NvInfer.h:3866
void setDimensions(Dims const &dimensions) noexcept
设置层的维度。
定义: NvInfer.h:3878
apiv::VConstantLayer * mImpl
定义: NvInfer.h:3896
virtual ~IConstantLayer() noexcept=default
Dims getDimensions() const noexcept
获取层的维度。
定义: NvInfer.h:3890
网络定义中的卷积层。
定义: NvInfer.h:1027
Dims getPrePadding() const noexcept
获取前填充。
定义: NvInfer.h:1152
Weights getBiasWeights() const noexcept
获取卷积的偏置权重。
定义: NvInfer.h:1125
void setPaddingMode(PaddingMode paddingMode) noexcept
设置填充模式。
定义: NvInfer.h:1193
void setDilationNd(Dims const &dilation) noexcept
设置卷积的多维膨胀。
定义: NvInfer.h:1297
Dims getPaddingNd() const noexcept
获取卷积的多维填充。
定义: NvInfer.h:1283
Dims getStrideNd() const noexcept
获取卷积的多维步幅。
定义: NvInfer.h:1253
Weights getKernelWeights() const noexcept
获取卷积的核权重。
定义: NvInfer.h:1100
void setStrideNd(Dims const &stride) noexcept
设置卷积的多维步幅。
定义: NvInfer.h:1243
Dims getDilationNd() const noexcept
获取卷积的多维膨胀。
定义: NvInfer.h:1307
int64_t getNbOutputMaps() const noexcept
获取卷积的输出特征图数量。
定义: NvInfer.h:1046
void setKernelWeights(Weights weights) noexcept
设置卷积的核权重。
定义: NvInfer.h:1090
Dims getPostPadding() const noexcept
获取后填充。
定义: NvInfer.h:1179
int64_t getNbGroups() const noexcept
获取卷积的分组数。
定义: NvInfer.h:1076
PaddingMode getPaddingMode() const noexcept
获取填充模式。
定义: NvInfer.h:1205
virtual ~IConvolutionLayer() noexcept=default
void setNbGroups(int64_t nbGroups) noexcept
设置卷积的分组数。
定义: NvInfer.h:1066
void setNbOutputMaps(int64_t nbOutputMaps) noexcept
设置卷积的输出特征图数量。
定义: NvInfer.h:1036
void setBiasWeights(Weights weights) noexcept
设置卷积的偏置权重。
定义: NvInfer.h:1115
Dims getKernelSizeNd() const noexcept
获取卷积的多维核大小。
定义: NvInfer.h:1228
void setPaddingNd(Dims const &padding) noexcept
设置卷积的多维填充。
定义: NvInfer.h:1271
void setPrePadding(Dims const &padding) noexcept
设置卷积的多维前填充。
定义: NvInfer.h:1142
void setPostPadding(Dims const &padding) noexcept
设置卷积的多维后填充。
定义: NvInfer.h:1169
void setKernelSizeNd(Dims const &kernelSize) noexcept
设置卷积的多维核大小。
定义: NvInfer.h:1218
用于在构建的网络上执行推理的引擎,具有功能上不安全的功能。
定义: NvInferRuntime.h:3002
表示张量上的累积运算的层。
定义: NvInfer.h:6529
bool setOperation(CumulativeOperation op) noexcept
设置层的累积运算。
定义: NvInfer.h:6540
void setReverse(bool reverse) noexcept
指定是否应向后应用累积运算。
定义: NvInfer.h:6588
apiv::VCumulativeLayer * mImpl
定义: NvInfer.h:6606
bool getExclusive() const noexcept
获取是独占累积还是包含累积。
定义: NvInfer.h:6576
virtual ~ICumulativeLayer() noexcept=default
bool getReverse() const noexcept
获取指定是否应向后应用累积运算的布尔值。
定义: NvInfer.h:6600
void setExclusive(bool exclusive) noexcept
设置是独占累积还是包含累积。
定义: NvInfer.h:6564
CumulativeOperation getOperation() const noexcept
获取层的累积运算。
定义: NvInfer.h:6552
网络定义中的反卷积层。
定义: NvInfer.h:2098
void setBiasWeights(Weights weights) noexcept
设置反卷积的偏置权重。
定义: NvInfer.h:2186
int64_t getNbGroups() const noexcept
获取反卷积的分组数。
定义: NvInfer.h:2147
Weights getKernelWeights() const noexcept
获取反卷积的核权重。
定义: NvInfer.h:2171
void setPrePadding(Dims const &padding) noexcept
设置反卷积的多维前填充。
定义: NvInfer.h:2213
Dims getStrideNd() const noexcept
获取反卷积的多维步幅。
定义: NvInfer.h:2328
Dims getDilationNd() const noexcept
获取反卷积的多维膨胀。
定义: NvInfer.h:2394
Weights getBiasWeights() const noexcept
获取反卷积的偏置权重。
定义: NvInfer.h:2196
void setKernelWeights(Weights weights) noexcept
设置反卷积的核权重。
定义: NvInfer.h:2161
int64_t getNbOutputMaps() const noexcept
获取反卷积的输出特征图数量。
定义: NvInfer.h:2117
void setStrideNd(Dims const &stride) noexcept
设置反卷积的多维步幅。
定义: NvInfer.h:2318
Dims getPostPadding() const noexcept
获取填充。
定义: NvInfer.h:2250
Dims getKernelSizeNd() const noexcept
获取反卷积的多维核大小。
定义: NvInfer.h:2301
void setPostPadding(Dims const &padding) noexcept
设置反卷积的多维后填充。
定义: NvInfer.h:2240
void setKernelSizeNd(Dims const &kernelSize) noexcept
设置反卷积的多维核大小。
定义: NvInfer.h:2291
virtual ~IDeconvolutionLayer() noexcept=default
void setPaddingNd(Dims const &padding) noexcept
设置反卷积的多维填充。
定义: NvInfer.h:2346
void setNbOutputMaps(int64_t nbOutputMaps) noexcept
设置反卷积的输出特征图数量。
定义: NvInfer.h:2107
Dims getPaddingNd() const noexcept
获取反卷积的多维填充。
定义: NvInfer.h:2358
void setDilationNd(Dims const &dilation) noexcept
设置反卷积的多维膨胀。
定义: NvInfer.h:2384
void setPaddingMode(PaddingMode paddingMode) noexcept
设置填充模式。
定义: NvInfer.h:2264
void setNbGroups(int64_t nbGroups) noexcept
设置反卷积的分组数。
定义: NvInfer.h:2137
Dims getPrePadding() const noexcept
获取前填充。
定义: NvInfer.h:2223
PaddingMode getPaddingMode() const noexcept
获取填充模式。
定义: NvInfer.h:2276
网络定义中的反量化层。
定义: NvInfer.h:5528
void setToType(DataType toType) noexcept
设置反量化层输出类型。
定义: NvInfer.h:5565
virtual ~IDequantizeLayer() noexcept=default
int32_t getAxis() const noexcept
获取量化轴。
定义: NvInfer.h:5538
DataType getToType() const noexcept
返回反量化层输出类型。
定义: NvInfer.h:5577
void setAxis(int32_t axis) noexcept
设置量化轴。
定义: NvInfer.h:5549
用于执行动态量化的网络层。
定义: NvInfer.h:5605
int32_t getAxis() const noexcept
获取分块发生的轴。
定义: NvInfer.h:5693
int32_t getBlockSize() const noexcept
获取量化块的大小。
定义: NvInfer.h:5716
DataType getScaleType() const noexcept
返回缩放因子数据类型。
定义: NvInfer.h:5670
void setScaleType(DataType scaleType) noexcept
设置用于量化数据的缩放因子数据类型。
定义: NvInfer.h:5657
DataType getToType() const noexcept
返回 DynamicQuantizeLayer 的量化输出类型。
定义: NvInfer.h:5645
virtual ~IDynamicQuantizeLayer() noexcept=default
void setToType(DataType toType) noexcept
设置 DynamicQuantizeLayer 的量化输出类型。
定义: NvInfer.h:5632
void setAxis(int32_t axis) noexcept
设置分块量化发生的轴。
定义: NvInfer.h:5683
void setBlockSize(int32_t size) noexcept
设置量化块的大小。
定义: NvInfer.h:5706
网络中的 Einsum 层。
定义: NvInfer.h:5763
bool setEquation(char const *equation) noexcept
设置方程。方程是以逗号分隔的下标标签列表,其中每个标签都引用...
定义: NvInfer.h:5774
virtual ~IEinsumLayer() noexcept=default
char const * getEquation() const noexcept
返回方程。
定义: NvInfer.h:5784
网络定义中的逐元素层。
定义: NvInfer.h:2470
virtual ~IElementWiseLayer() noexcept=default
apiv::VElementWiseLayer * mImpl
定义: NvInfer.h:2499
ElementWiseOperation getOperation() const noexcept
获取层的二元运算。
定义: NvInfer.h:2493
void setOperation(ElementWiseOperation op) noexcept
设置层的二元运算。
定义: NvInfer.h:2481
根据指定的模式生成张量。
定义: NvInfer.h:5051
bool isAlphaBetaInt64() const noexcept
如果 alpha/beta 的类型为 int64,则返回 true;如果它们的类型为 double,则返回 false。
定义: NvInfer.h:5283
FillOperation getOperation() const noexcept
获取填充层的填充运算。
定义: NvInfer.h:5097
void setOperation(FillOperation op) noexcept
设置填充层的填充运算。
定义: NvInfer.h:5087
DataType getToType() const noexcept
获取填充层输出类型。
定义: NvInfer.h:5312
void setAlphaInt64(int64_t alpha) noexcept
使用 int64 数据类型设置 alpha 参数。
定义: NvInfer.h:5226
void setBetaInt64(int64_t beta) noexcept
使用 int64 数据类型设置 beta 参数。
定义: NvInfer.h:5260
void setBeta(double beta) noexcept
设置 beta 参数。
定义: NvInfer.h:5150
int64_t getAlphaInt64() const noexcept
使用 int64 数据类型获取 alpha 参数的值。
定义: NvInfer.h:5241
int64_t getBetaInt64() const noexcept
使用 int64 数据类型获取 beta 参数的值。
定义: NvInfer.h:5275
double getAlpha() const noexcept
获取 alpha 参数的值。
定义: NvInfer.h:5131
void setDimensions(Dims const &dimensions) noexcept
设置输出张量的维度。
定义: NvInfer.h:5062
void setAlpha(double alpha) noexcept
设置 alpha 参数。
定义: NvInfer.h:5116
void setToType(DataType toType) noexcept
设置填充层输出类型。
定义: NvInfer.h:5300
Dims getDimensions() const noexcept
获取输出张量的维度。
定义: NvInfer.h:5077
double getBeta() const noexcept
获取 beta 参数的值。
定义: NvInfer.h:5165
virtual ~IFillLayer() noexcept=default
网络定义中的 Gather 层。支持多种类型的 Gather。
定义: NvInfer.h:2603
void setGatherAxis(int32_t axis) noexcept
设置 GatherMode::kELEMENTS 和 GatherMode::kDEFAULT 使用的轴。该轴必须小于 nu...
定义: NvInfer.h:2614
void setNbElementWiseDims(int32_t elementWiseDims) noexcept
设置要逐元素处理的索引张量的前导维度数。
定义: NvInfer.h:2649
apiv::VGatherLayer * mImpl
定义: NvInfer.h:2685
int32_t getNbElementWiseDims() const noexcept
获取要逐元素处理的索引张量的前导维度数。
定义: NvInfer.h:2659
void setMode(GatherMode mode) noexcept
设置 Gather 模式。
定义: NvInfer.h:2669
int32_t getGatherAxis() const noexcept
获取要 Gather 的轴。
定义: NvInfer.h:2626
GatherMode getMode() const noexcept
获取 Gather 模式。
定义: NvInfer.h:2679
virtual ~IGatherLayer() noexcept=default
网络定义中的 GridSample 层。
定义: NvInfer.h:5984
void setInterpolationMode(InterpolationMode mode) noexcept
设置网格采样插值模式。
定义: NvInfer.h:5991
bool setSampleMode(SampleMode mode) noexcept
设置采样模式。
定义: NvInfer.h:6037
void setAlignCorners(bool alignCorners) noexcept
设置对齐角模式。
定义: NvInfer.h:6013
apiv::VGridSampleLayer * mImpl
定义: NvInfer.h:6055
SampleMode getSampleMode() const noexcept
获取采样模式。
定义: NvInfer.h:6049
InterpolationMode getInterpolationMode() const noexcept
获取网格采样插值模式。
定义: NvInfer.h:6003
bool getAlignCorners() const noexcept
获取对齐角模式。
定义: NvInfer.h:6025
virtual ~IGridSampleLayer() noexcept=default
用于处理用户可访问的库分配内存的类。
定义: NvInferRuntime.h:142
表示恒等函数的层。
定义: NvInfer.h:3794
apiv::VIdentityLayer * mImpl
定义: NvInfer.h:3796
virtual ~IIdentityLayer() noexcept=default
这是条件边界层的基类。
定义: NvInfer.h:4445
IIfConditional * getConditional() const noexcept
获取指向与此边界层关联的 IIfConditional 的指针。
定义: NvInfer.h:4450
virtual ~IIfConditionalBoundaryLayer() noexcept=default
用于构建条件执行的子图的辅助类。
定义: NvInfer.h:4527
IIfConditionalInputLayer * addInput(ITensor &input) noexcept
添加 If 条件输入。
定义: NvInfer.h:4568
char const * getName() const noexcept
返回条件的名称。
定义: NvInfer.h:4593
virtual ~IIfConditional() noexcept=default
IConditionLayer * setCondition(ITensor &condition) noexcept
为此 If 条件构造设置条件张量。
定义: NvInfer.h:4538
IIfConditionalOutputLayer * addOutput(ITensor &trueSubgraphOutput, ITensor &falseSubgraphOutput) noexcept
添加 If 条件输出。
定义: NvInfer.h:4556
void setName(char const *name) noexcept
设置条件的名称。
定义: NvInfer.h:4583
此层表示 IIfConditional 的输出。
定义: NvInfer.h:4483
virtual ~IIfConditionalOutputLayer() noexcept=default
应用程序实现的校准接口。
定义: NvInfer.h:8120
virtual TRT_DEPRECATED int32_t getBatchSize() const noexcept=0
获取用于校准批次的批次大小。
执行迭代的层。
定义: NvInfer.h:4758
virtual ~IIteratorLayer() noexcept=default
void setReverse(bool reverse) noexcept
设置迭代顺序为反向。
定义: NvInfer.h:4785
bool getReverse() const noexcept
检查迭代顺序是否为反向。
定义: NvInfer.h:4795
int32_t getAxis() const noexcept
获取正在迭代的轴。
定义: NvInfer.h:4771
void setAxis(int32_t axis) noexcept
设置要迭代的轴。
定义: NvInfer.h:4763
网络定义中的 LRN 层。
定义: NvInfer.h:1712
int64_t getWindowSize() const noexcept
获取 LRN 窗口大小。
定义: NvInfer.h:1733
float getAlpha() const noexcept
获取 LRN alpha 值。
定义: NvInfer.h:1755
void setWindowSize(int64_t windowSize) noexcept
设置 LRN 窗口大小。
定义: NvInfer.h:1723
void setK(float k) noexcept
设置 LRN K 值。
定义: NvInfer.h:1789
void setAlpha(float alpha) noexcept
设置 LRN alpha 值。
定义: NvInfer.h:1745
void setBeta(float beta) noexcept
设置 LRN beta 值。
定义: NvInfer.h:1767
virtual ~ILRNLayer() noexcept=default
float getBeta() const noexcept
获取 LRN beta 值。
定义: NvInfer.h:1777
float getK() const noexcept
获取 LRN K 值。
定义: NvInfer.h:1799
网络定义中所有层类的基类。
定义: NvInfer.h:555
bool precisionIsSet() const noexcept
是否已为此层设置计算精度
定义: NvInfer.h:697
void setMetadata(char const *metadata) noexcept
为此层设置元数据。
定义: NvInfer.h:813
void setPrecision(DataType dataType) noexcept
在弱类型网络中,设置此层的首选或必需的计算精度。
定义: NvInfer.h:673
void setName(char const *name) noexcept
设置层的名称。
定义: NvInfer.h:576
void resetPrecision() noexcept
重置此层的计算精度
定义: NvInfer.h:707
int32_t getNbInputs() const noexcept
获取层的输入数量。
定义: NvInfer.h:594
char const * getMetadata() const noexcept
获取层的元数据。
定义: NvInfer.h:826
DataType getOutputType(int32_t index) const noexcept
获取此层的输出类型
定义: NvInfer.h:769
DataType getPrecision() const noexcept
获取此层的计算精度
定义: NvInfer.h:685
char const * getName() const noexcept
返回层的名称。
定义: NvInfer.h:586
int32_t getNbOutputs() const noexcept
获取层的输出数量。
定义: NvInfer.h:615
bool outputTypeIsSet(int32_t index) const noexcept
是否已为此层设置输出类型
定义: NvInfer.h:783
ITensor * getOutput(int32_t index) const noexcept
获取与给定索引对应的层输出。
定义: NvInfer.h:625
void setInput(int32_t index, ITensor &tensor) noexcept
用特定的张量替换此层的输入。
定义: NvInfer.h:642
void resetOutputType(int32_t index) noexcept
重置此层的输出类型
定义: NvInfer.h:795
ITensor * getInput(int32_t index) const noexcept
获取与给定索引对应的层输入。
定义: NvInfer.h:607
void setOutputType(int32_t index, DataType dataType) noexcept
在弱类型网络中,设置此层的输出类型。
定义: NvInfer.h:754
LayerType getType() const noexcept
返回层的类型。
定义: NvInfer.h:562
virtual ~ILayer() noexcept=default
构建器、重定器和运行时的应用程序实现的日志记录接口。
定义: NvInferRuntime.h:1540
这是循环边界层的基类。
定义: NvInfer.h:4422
virtual ~ILoopBoundaryLayer() noexcept=default
ILoop * getLoop() const noexcept
获取指向与此边界层关联的 ILoop 的指针。
定义: NvInfer.h:4427
用于创建循环子图的辅助类。
定义: NvInfer.h:4815
void setName(char const *name) noexcept
设置循环的名称。
定义: NvInfer.h:4885
ITripLimitLayer * addTripLimit(ITensor &tensor, TripLimit limit) noexcept
根据给定的张量添加行程计数限制器。
定义: NvInfer.h:4844
IIteratorLayer * addIterator(ITensor &tensor, int32_t axis=0, bool reverse=false) noexcept
返回按循环迭代下标张量的层。
定义: NvInfer.h:4857
ILoopOutputLayer * addLoopOutput(ITensor &tensor, LoopOutput outputKind, int32_t axis=0) noexcept
基于给定的张量为此循环创建一个输出。
定义: NvInfer.h:4870
virtual ~ILoop() noexcept=default
char const * getName() const noexcept
返回循环的名称。
定义: NvInfer.h:4895
IRecurrenceLayer * addRecurrence(ITensor &initialValue) noexcept
使用 initialValue 作为其第一个输入,为此循环创建一个循环层。
定义: NvInfer.h:4823
ILoopOutputLayer 是从循环获取输出的唯一方法。
定义: NvInfer.h:4658
virtual ~ILoopOutputLayer() noexcept=default
int32_t getAxis() const noexcept
获取正在串联的轴。
定义: NvInfer.h:4688
LoopOutput getLoopOutput() const noexcept
获取循环输出的类型。
定义: NvInfer.h:4663
void setAxis(int32_t axis) noexcept
设置在何处插入串联轴。如果 getLoopOutput() 为 kLAST_VALUE,则忽略。
定义: NvInfer.h:4680
表示矩阵乘法的层。
定义: NvInfer.h:3686
apiv::VMatrixMultiplyLayer * mImpl
定义: NvInfer.h:3714
virtual ~IMatrixMultiplyLayer() noexcept=default
MatrixOperation getOperation(int32_t index) const noexcept
获取输入张量的运算。
定义: NvInfer.h:3708
void setOperation(int32_t index, MatrixOperation op) noexcept
设置输入张量的运算。
定义: NvInfer.h:3696
网络定义中的非极大值抑制层。
定义: NvInfer.h:6132
virtual ~INMSLayer() noexcept=default
void setTopKBoxLimit(int32_t limit) noexcept
为此层设置 TopK 框限制参数。
定义: NvInfer.h:6169
void setBoundingBoxFormat(BoundingBoxFormat fmt) noexcept
为此层设置边界框格式参数。
定义: NvInfer.h:6143
BoundingBoxFormat getBoundingBoxFormat() const noexcept
获取此层的边界框格式参数。
定义: NvInfer.h:6155
apiv::VNMSLayer * mImpl
定义: NvInfer.h:6205
int32_t getTopKBoxLimit() const noexcept
获取此层的 TopK 框限制参数。
定义: NvInfer.h:6179
构建器的网络定义输入。
定义: NvInfer.h:6628
IConcatenationLayer * addConcatenation(ITensor *const *inputs, int32_t nbInputs) noexcept
向网络添加串联层。
定义: NvInfer.h:6821
IShuffleLayer * addShuffle(ITensor &input) noexcept
向网络添加 Shuffle 层。
定义: NvInfer.h:6884
INormalizationLayer * addNormalization(ITensor &input, ITensor &scale, ITensor &bias, uint32_t axesMask) noexcept
向网络添加归一化层。
定义: NvInfer.h:7960
void setName(char const *name) noexcept
设置网络的名称。
定义: NvInfer.h:7294
bool markDebug(ITensor &tensor) noexcept
将张量标记为调试张量。
定义: NvInfer.h:6700
ILRNLayer * addLRN(ITensor &input, int64_t window, float alpha, float beta, float k) noexcept
向网络添加 LRN 层。
定义: NvInfer.h:6765
ITopKLayer * addTopK(ITensor &input, TopKOperation op, int32_t k, uint32_t reduceAxes) noexcept
向网络添加 TopK 层。
定义: NvInfer.h:7044
ICumulativeLayer * addCumulative(ITensor &input, ITensor &axis, CumulativeOperation operation, bool exclusive, bool reverse) noexcept
向网络添加累积层。
定义: NvInfer.h:7982
IAssertionLayer * addAssertion(ITensor &condition, char const *message) noexcept
向网络添加断言层。
定义: NvInfer.h:7610
IConvolutionLayer * addConvolutionNd(ITensor &input, int64_t nbOutputMaps, Dims const &kernelSize, Weights kernelWeights, Weights biasWeights) noexcept
向网络添加多维卷积层。
定义: NvInfer.h:7429
ICastLayer * addCast(ITensor &input, DataType toType) noexcept
添加 Cast 层。
定义: NvInfer.h:7184
IScaleLayer * addScaleNd(ITensor &input, ScaleMode mode, Weights shift, Weights scale, Weights power, int32_t channelAxis) noexcept
向网络添加多维 Scale 层。
定义: NvInfer.h:7508
char const * getName() const noexcept
返回与网络关联的名称。
定义: NvInfer.h:7308
IParametricReLULayer * addParametricReLU(ITensor &input, ITensor &slope) noexcept
向网络添加参数 ReLU 层。
定义: NvInfer.h:7407
ITensor * getOutput(int32_t index) const noexcept
获取给定索引指定的输出张量。
定义: NvInfer.h:6985
ITensor * getInput(int32_t index) const noexcept
获取给定索引指定的输入张量。
定义: NvInfer.h:6955
IDequantizeLayer * addDequantize(ITensor &input, ITensor &scale, DataType outputType) noexcept
向网络添加一个反量化层。
定义: NvInfer.h:7777
bool unmarkOutputForShapes(ITensor &tensor) noexcept
撤销 markOutputForShapes 操作。
定义: NvInfer.h:7389
IFillLayer * addFill(Dims const &dimensions, FillOperation op, DataType outputType) noexcept
向网络添加一个填充层。
定义: NvInfer.h:7661
ILoop * addLoop() noexcept
向网络添加一个循环。
定义: NvInfer.h:7539
IDynamicQuantizeLayer * addDynamicQuantize(ITensor &input, int32_t axis, int32_t blockSize, DataType outputType, DataType scaleType) noexcept
向网络添加一个动态量化层。
定义: NvInfer.h:7865
IActivationLayer * addActivation(ITensor &input, ActivationType type) noexcept
向网络添加一个激活层。
定义: NvInfer.h:6746
TRT_DEPRECATED IFillLayer * addFill(Dims const &dimensions, FillOperation op) noexcept
向网络添加一个填充层。
定义: NvInfer.h:7635
ISliceLayer * addSlice(ITensor &input, Dims const &start, Dims const &size, Dims const &stride) noexcept
向网络添加一个切片层。
定义: NvInfer.h:7270
virtual ~INetworkDefinition() noexcept=default
TRT_DEPRECATED IQuantizeLayer * addQuantize(ITensor &input, ITensor &scale) noexcept
向网络添加一个量化层。
定义: NvInfer.h:7818
virtual IBuilder & getBuilder() const noexcept
返回从中创建此 INetworkDefinition 的构建器。
定义: NvInfer.h:7993
INMSLayer * addNMS(ITensor &boxes, ITensor &scores, ITensor &maxOutputBoxesPerClass) noexcept
向网络添加一个非极大值抑制层。
定义: NvInfer.h:7917
ILayer * getLayer(int32_t index) const noexcept
获取给定索引指定的层。
定义: NvInfer.h:6927
bool getFlag(NetworkDefinitionCreationFlag networkDefinitionCreationFlag) const noexcept
如果设置了网络定义创建标志,则返回 true。
定义: NvInfer.h:7360
IIfConditional * addIfConditional() noexcept
向网络添加一个 if-then-else 结构。
定义: NvInfer.h:7554
IErrorRecorder * getErrorRecorder() const noexcept
获取分配给此接口的 ErrorRecorder。
定义: NvInfer.h:7735
ISqueezeLayer * addSqueeze(ITensor &input, ITensor &axes) noexcept
向网络添加一个挤压层。
定义: NvInfer.h:8050
IReverseSequenceLayer * addReverseSequence(ITensor &input, ITensor &sequenceLens) noexcept
向网络添加一个 ReverseSequence 层。
定义: NvInfer.h:7934
int32_t getNbInputs() const noexcept
获取网络中的输入数量。
定义: NvInfer.h:6939
NetworkDefinitionCreationFlags getFlags() const noexcept
获取此网络定义对象的网络定义创建标志。默认为 0。
定义: NvInfer.h:7348
IQuantizeLayer * addQuantize(ITensor &input, ITensor &scale, DataType outputType) noexcept
向网络添加一个量化层。
定义: NvInfer.h:7839
IReduceLayer * addReduce(ITensor &input, ReduceOperation operation, uint32_t reduceAxes, bool keepDimensions) noexcept
向网络添加一个规约层。
定义: NvInfer.h:7011
IUnaryLayer * addUnary(ITensor &input, UnaryOperation operation) noexcept
向网络添加一个一元层。
定义: NvInfer.h:6870
IGridSampleLayer * addGridSample(ITensor &input, ITensor &grid) noexcept
向网络添加一个 GridSample 层。
定义: NvInfer.h:7899
void removeTensor(ITensor &tensor) noexcept
从网络定义中移除张量。
定义: NvInfer.h:7199
bool areWeightsMarkedRefittable(char const *name) const noexcept
权重是否已标记为可重拟合。
定义: NvInfer.h:8031
ISelectLayer * addSelect(ITensor &condition, ITensor &thenInput, ITensor &elseInput) noexcept
向网络添加一个选择层。
定义: NvInfer.h:7593
IScatterLayer * addScatter(ITensor &data, ITensor &indices, ITensor &updates, ScatterMode mode) noexcept
向网络添加一个 Scatter 层,并指定模式和 axis=0。
定义: NvInfer.h:7797
int32_t getNbLayers() const noexcept
获取网络中的层数。
定义: NvInfer.h:6913
TRT_DEPRECATED bool hasImplicitBatchDimension() const noexcept
查询网络是否使用隐式批次维度创建。
定义: NvInfer.h:7338
apiv::VNetworkDefinition * mImpl
定义: NvInfer.h:8077
bool markOutputForShapes(ITensor &tensor) noexcept
启用张量的值以通过 IExecutionContext::getShapeBinding 计算。
定义: NvInfer.h:7377
IOneHotLayer * addOneHot(ITensor &indices, ITensor &values, ITensor &depth, int32_t axis) noexcept
向网络添加一个 OneHot 层。
定义: NvInfer.h:6901
IScaleLayer * addScale(ITensor &input, ScaleMode mode, Weights shift, Weights scale, Weights power) noexcept
向网络添加一个 Scale 层。
定义: NvInfer.h:6791
IPluginV3Layer * addPluginV3(ITensor *const *inputs, int32_t nbInputs, ITensor *const *shapeInputs, int32_t nbShapeInputs, IPluginV3 &plugin) noexcept
向网络添加一个实现 IPluginV3 接口的插件层。
定义: NvInfer.h:7250
void unmarkOutput(ITensor &tensor) noexcept
取消标记张量作为网络输出。
定义: NvInfer.h:7211
IIdentityLayer * addIdentity(ITensor &input) noexcept
添加一个恒等层。
定义: NvInfer.h:7169
IGatherLayer * addGatherV2(ITensor &data, ITensor &indices, GatherMode mode) noexcept
添加具有指定模式、axis=0 和 nbElementWiseDims=0 的 gather 操作。
定义: NvInfer.h:7076
IElementWiseLayer * addElementWise(ITensor &input1, ITensor &input2, ElementWiseOperation op) noexcept
向网络添加一个逐元素层。
定义: NvInfer.h:6848
IConstantLayer * addConstant(Dims const &dimensions, Weights weights) noexcept
向网络添加一个常量层。
定义: NvInfer.h:7155
void setErrorRecorder(IErrorRecorder *recorder) noexcept
为此接口设置 ErrorRecorder。
定义: NvInfer.h:7720
IPoolingLayer * addPoolingNd(ITensor &input, PoolingType type, Dims const &windowSize) noexcept
向网络添加一个多维池化层。
定义: NvInfer.h:7449
IRaggedSoftMaxLayer * addRaggedSoftMax(ITensor &input, ITensor &bounds) noexcept
向网络添加一个 RaggedSoftMax 层。
定义: NvInfer.h:7095
IShapeLayer * addShape(ITensor &input) noexcept
向网络添加一个形状层。
定义: NvInfer.h:7324
IGatherLayer * addGather(ITensor &data, ITensor &indices, int32_t axis) noexcept
添加具有 GatherMode::kDEFAULT 模式以及指定的轴和 nbElementWiseDims=0 的 gather 操作。
定义: NvInfer.h:7060
bool unmarkWeightsRefittable(char const *name) noexcept
当构建器标志 kREFIT_INDIVIDUAL 设置时,取消标记权重为可重拟合。
定义: NvInfer.h:8018
bool markWeightsRefittable(char const *name) noexcept
当构建器标志 kREFIT_INDIVIDUAL 设置时,标记权重为可重拟合。
定义: NvInfer.h:8006
IDeconvolutionLayer * addDeconvolutionNd(ITensor &input, int64_t nbOutputMaps, Dims kernelSize, Weights kernelWeights, Weights biasWeights) noexcept
向网络添加一个多维反卷积层。
定义: NvInfer.h:7471
IResizeLayer * addResize(ITensor &input) noexcept
向网络添加一个调整大小层。
定义: NvInfer.h:7525
IUnsqueezeLayer * addUnsqueeze(ITensor &input, ITensor &axes) noexcept
向网络添加一个反挤压层。
定义: NvInfer.h:8071
IMatrixMultiplyLayer * addMatrixMultiply(ITensor &input0, MatrixOperation op0, ITensor &input1, MatrixOperation op1) noexcept
向网络添加一个矩阵乘法层。
定义: NvInfer.h:7116
ISoftMaxLayer * addSoftMax(ITensor &input) noexcept
向网络添加一个 SoftMax 层。
定义: NvInfer.h:6804
bool isDebugTensor(nvinfer1::ITensor const &tensor) const noexcept
检查张量是否标记为调试张量。
定义: NvInfer.h:6726
bool unmarkDebug(ITensor &tensor) noexcept
取消标记张量作为调试张量。
定义: NvInfer.h:6716
IEinsumLayer * addEinsum(ITensor *const *inputs, int32_t nbInputs, char const *equation) noexcept
向网络添加一个 Einsum 层。
定义: NvInfer.h:7881
void markOutput(ITensor &tensor) noexcept
标记张量作为网络输出。
定义: NvInfer.h:6682
TRT_DEPRECATED IPluginV2Layer * addPluginV2(ITensor *const *inputs, int32_t nbInputs, IPluginV2 &plugin) noexcept
使用 IPluginV2 接口向网络添加一个插件层。
定义: NvInfer.h:7232
IPaddingLayer * addPaddingNd(ITensor &input, Dims const &prePadding, Dims const &postPadding) noexcept
向网络添加一个填充层。目前仅支持 2D 填充。
定义: NvInfer.h:7677
INonZeroLayer * addNonZero(ITensor &input) noexcept
向网络添加一个 nonzero 层。
定义: NvInfer.h:7131
TRT_DEPRECATED IDequantizeLayer * addDequantize(ITensor &input, ITensor &scale) noexcept
向网络添加一个反量化层。
定义: NvInfer.h:7756
int32_t getNbOutputs() const noexcept
获取网络中的输出数量。
定义: NvInfer.h:6969
bool setWeightsName(Weights weights, char const *name) noexcept
将名称与给定权重的当前所有用途关联起来。
定义: NvInfer.h:7701
IEngineInspector 的前向声明,供其他接口使用。
定义: NvInferRuntime.h:51
virtual ~INonZeroLayer() noexcept=default
网络定义中的归一化层。
定义: NvInfer.h:6294
float getEpsilon() const noexcept
获取用于归一化计算的 epsilon 值。
定义: NvInfer.h:6313
uint32_t getAxes() const noexcept
获取用于归一化计算的 axes 值。
定义: NvInfer.h:6333
virtual ~INormalizationLayer() noexcept=default
void setEpsilon(float eps) noexcept
设置用于归一化计算的 epsilon 值。
定义: NvInfer.h:6303
DataType getComputePrecision() const noexcept
获取此层的计算精度。
定义: NvInfer.h:6400
apiv::VNormalizationLayer * mImpl
定义: NvInfer.h:6406
int64_t getNbGroups() const noexcept
获取用于拆分通道以进行归一化计算的组数。
定义: NvInfer.h:6364
void setAxes(uint32_t axesMask) noexcept
设置归一化计算的缩减轴。
定义: NvInfer.h:6323
void setComputePrecision(DataType type) noexcept
设置此层的计算精度。
定义: NvInfer.h:6390
void setNbGroups(int64_t nbGroups) noexcept
设置用于在归一化计算中拆分通道的组数。
定义: NvInfer.h:6354
网络定义中的 OneHot 层。
定义: NvInfer.h:5948
apiv::VOneHotLayer * mImpl
定义: NvInfer.h:5969
void setAxis(int32_t axis) noexcept
设置 axis 参数。
定义: NvInfer.h:5955
int32_t getAxis() const noexcept
获取 axis 参数的值。
定义: NvInfer.h:5963
用于动态输入维度和形状张量的优化配置文件。
定义: NvInferRuntime.h:2616
表示填充操作的层。
定义: NvInfer.h:2964
Dims getPostPaddingNd() const noexcept
获取应用于张量末尾的填充。
定义: NvInfer.h:3013
void setPrePaddingNd(Dims const &padding) noexcept
设置应用于张量开始处的填充。
定义: NvInfer.h:2975
virtual ~IPaddingLayer() noexcept=default
void setPostPaddingNd(Dims const &padding) noexcept
设置应用于张量末尾的填充。
定义: NvInfer.h:3001
Dims getPrePaddingNd() const noexcept
获取应用于张量开始处的填充。
定义: NvInfer.h:2987
apiv::VPaddingLayer * mImpl
定义: NvInfer.h:3019
表示参数化 ReLU 运算的层。
定义: NvInfer.h:3910
apiv::VParametricReLULayer * mImpl
定义: NvInfer.h:3912
virtual ~IParametricReLULayer() noexcept=default
应用程序中所有插件的单一注册点。它用于查找插件实现...
定义: NvInferRuntimeCommon.h:56
用户实现的层的插件类。
定义: NvInferRuntimePlugin.h:133
pluginV2 的层类型。
定义: NvInfer.h:2701
virtual ~IPluginV2Layer() noexcept=default
apiv::VPluginV2Layer * mImpl
定义: NvInfer.h:2714
IPluginV2 & getPlugin() noexcept
获取该层的插件。
定义: NvInfer.h:2708
V3 插件的层类型。
定义: NvInfer.h:2728
virtual ~IPluginV3Layer() noexcept=default
IPluginV3 & getPlugin() noexcept
获取该层的插件。
定义: NvInfer.h:2735
apiv::VPluginV3Layer * mImpl
定义: NvInfer.h:2741
网络定义中的池化层。
定义: NvInfer.h:1461
PoolingType getPoolingType() const noexcept
获取要执行的激活类型。
定义: NvInfer.h:1480
PaddingMode getPaddingMode() const noexcept
获取填充模式。
定义: NvInfer.h:1613
Dims getPostPadding() const noexcept
获取填充。
定义: NvInfer.h:1589
bool getAverageCountExcludesPadding() const noexcept
获取平均池化是否使用窗口与未填充区域之间的重叠区域作为分母。
定义: NvInfer.h:1533
Dims getPrePadding() const noexcept
获取前填充。
定义: NvInfer.h:1561
void setPoolingType(PoolingType type) noexcept
设置要执行的激活类型。
定义: NvInfer.h:1470
void setWindowSizeNd(Dims const &windowSize) noexcept
设置池化的多维窗口大小。
定义: NvInfer.h:1626
void setPaddingMode(PaddingMode paddingMode) noexcept
设置填充模式。
定义: NvInfer.h:1602
Dims getWindowSizeNd() const noexcept
获取池化的多维窗口大小。
定义: NvInfer.h:1636
void setAverageCountExcludesPadding(bool exclusive) noexcept
设置平均池化是否使用窗口与未填充区域之间的重叠区域作为分母。
定义: NvInfer.h:1522
void setPaddingNd(Dims const &padding) noexcept
设置池化的多维填充。
定义: NvInfer.h:1680
float getBlendFactor() const noexcept
获取 max_average_blend 模式的混合因子:max_average_blendPool = (1-blendFactor)*maxPo...
定义: NvInfer.h:1508
void setStrideNd(Dims const &stride) noexcept
设置池化的多维步幅。
定义: NvInfer.h:1651
Dims getStrideNd() const noexcept
Dims getStrideNd() const noexcept
获取池化的多维步幅。
nvinfer1::IPoolingLayer::~IPoolingLayer
Dims getPaddingNd() const noexcept
获取池化的多维填充。
定义: NvInfer.h:1692
void setPostPadding(Dims const &padding) noexcept
设置池化的多维后填充。
定义: NvInfer.h:1579
void setPrePadding(Dims const &padding) noexcept
设置池化的多维前填充。
定义: NvInfer.h:1551
void setBlendFactor(float blendFactor) noexcept
设置 max_average_blend 模式的混合因子:max_average_blendPool = (1-blendFactor)*maxPo...
定义: NvInfer.h:1495
网络定义中的量化层。
定义: NvInfer.h:5397
void setToType(DataType toType) noexcept
设置量化层输出类型。
定义: NvInfer.h:5434
void setAxis(int32_t axis) noexcept
设置量化轴。
定义: NvInfer.h:5418
int32_t getAxis() const noexcept
获取量化轴。
定义: NvInfer.h:5407
virtual ~IQuantizeLayer() noexcept=default
DataType getToType() const noexcept
返回量化层输出类型。
定义: NvInfer.h:5446
网络定义中的 RaggedSoftmax 层。
定义: NvInfer.h:3761
apiv::VRaggedSoftMaxLayer * mImpl
定义: NvInfer.h:3763
virtual ~IRaggedSoftMaxLayer() noexcept=default
网络定义中的循环层。
定义: NvInfer.h:4611
virtual ~IRecurrenceLayer() noexcept=default
表示跨非布尔张量进行规约的层。
定义: NvInfer.h:2884
void setKeepDimensions(bool keepDimensions) noexcept
设置一个布尔值,用于指定是否为该层保留缩减的维度。
定义: NvInfer.h:2931
void setOperation(ReduceOperation op) noexcept
设置该层的规约操作。
定义: NvInfer.h:2891
ReduceOperation getOperation() const noexcept
获取该层的规约操作。
定义: NvInfer.h:2901
virtual ~IReduceLayer() noexcept=default
uint32_t getReduceAxes() const noexcept
获取该层要缩减的轴。
定义: NvInfer.h:2921
void setReduceAxes(uint32_t reduceAxes) noexcept
设置要缩减的轴。
定义: NvInfer.h:2911
apiv::VReduceLayer * mImpl
定义: NvInfer.h:2947
bool getKeepDimensions() const noexcept
获取一个布尔值,用于指定是否为该层保留缩减的维度。
定义: NvInfer.h:2941
网络定义中的调整大小层。
定义: NvInfer.h:4099
void setSelectorForSinglePixel(ResizeSelector selector) noexcept
设置调整为单像素大小时的坐标选择器函数。
定义: NvInfer.h:4260
void setNearestRounding(ResizeRoundMode value) noexcept
设置最近邻调整大小的舍入模式。
定义: NvInfer.h:4284
virtual ~IResizeLayer() noexcept=default
int32_t getScales(int32_t size, float *scales) const noexcept
将调整大小比例复制到 scales[0, ..., nbScales-1],其中 nbScales 是已设置的比例数量...
定义: NvInfer.h:4178
void setOutputDimensions(Dims const &dimensions) noexcept
设置输出维度。
定义: NvInfer.h:4119
void setCubicCoeff(float A) noexcept
设置三次插值中使用的系数 'A'。
定义: NvInfer.h:4316
void setScales(float const *scales, int32_t nbScales) noexcept
设置调整大小比例。
定义: NvInfer.h:4159
float getCubicCoeff() const noexcept
获取三次插值中使用的系数 'A'。
定义: NvInfer.h:4326
ResizeSelector getSelectorForSinglePixel() const noexcept
获取调整为单像素大小时的坐标选择器函数。
定义: NvInfer.h:4270
InterpolationMode getResizeMode() const noexcept
获取输入张量的调整大小模式。
定义: NvInfer.h:4200
void setCoordinateTransformation(ResizeCoordinateTransformation coordTransform) noexcept
设置坐标变换函数。
定义: NvInfer.h:4235
void setExcludeOutside(bool excludeFlag) noexcept
设置排除外部像素的状态。
定义: NvInfer.h:4339
void setResizeMode(InterpolationMode interpolationMode) noexcept
设置输入张量的调整大小模式。
定义: NvInfer.h:4190
Dims getOutputDimensions() const noexcept
获取输出维度。
定义: NvInfer.h:4129
ResizeRoundMode getNearestRounding() const noexcept
获取最近邻调整大小的舍入模式。
定义: NvInfer.h:4294
bool getExcludeOutside() const noexcept
获取排除外部像素的状态。
定义: NvInfer.h:4349
ResizeCoordinateTransformation getCoordinateTransformation() const noexcept
获取坐标变换函数。
定义: NvInfer.h:4245
网络定义中的 ReverseSequence 层。
定义: NvInfer.h:6222
void setSequenceAxis(int32_t sequenceAxis) noexcept
设置序列轴。默认为 0。
定义: NvInfer.h:6255
int32_t getBatchAxis() const noexcept
返回批次轴。如果未设置批次轴,则返回 1。
定义: NvInfer.h:6242
apiv::VReverseSequenceLayer * mImpl
定义: NvInfer.h:6271
int32_t getSequenceAxis() const noexcept
返回序列轴。如果未设置序列轴,则返回 0。
定义: NvInfer.h:6265
void setBatchAxis(int32_t batchAxis) noexcept
设置批次轴。默认为 1。
定义: NvInfer.h:6232
virtual ~IReverseSequenceLayer() noexcept=default
网络定义中的 Scale 层。
定义: NvInfer.h:1858
Weights getScale() const noexcept
获取 scale 值。
定义: NvInfer.h:1915
Weights getPower() const noexcept
获取 power 值。
定义: NvInfer.h:1935
void setScale(Weights scale) noexcept
设置 scale 值。
定义: NvInfer.h:1905
void setPower(Weights power) noexcept
设置 power 值。
定义: NvInfer.h:1925
ScaleMode getMode() const noexcept
获取 scale 模式。
定义: NvInfer.h:1875
void setShift(Weights shift) noexcept
设置 shift 值。
定义: NvInfer.h:1885
void setChannelAxis(int32_t channelAxis) noexcept
设置通道轴。
定义: NvInfer.h:1971
Weights getShift() const noexcept
获取 shift 值。
定义: NvInfer.h:1895
virtual ~IScaleLayer() noexcept=default
void setMode(ScaleMode mode) noexcept
设置 scale 模式。
定义: NvInfer.h:1865
int32_t getChannelAxis() const noexcept
获取通道轴。
定义: NvInfer.h:1950
网络定义中的 scatter 层。支持多种散射类型。
定义: NvInfer.h:5876
void setMode(ScatterMode mode) noexcept
设置 scatter 模式。
定义: NvInfer.h:5883
apiv::VScatterLayer * mImpl
定义: NvInfer.h:5917
void setAxis(int32_t axis) noexcept
设置 ScatterMode::kELEMENTS 使用的轴。
定义: NvInfer.h:5903
int32_t getAxis() const noexcept
获取轴。
定义: NvInfer.h:5911
ScatterMode getMode() const noexcept
获取 scatter 模式。
定义: NvInfer.h:5893
virtual ~IScatterLayer() noexcept=default
根据条件张量从两个数据张量中选择元素。
定义: NvInfer.h:4918
virtual ~ISelectLayer() noexcept=default
用于获取张量形状的层类型。
定义: NvInfer.h:3489
virtual ~IShapeLayer() noexcept=default
apiv::VShapeLayer * mImpl
定义: NvInfer.h:3491
用于混洗数据的层类型。
定义: NvInfer.h:3052
apiv::VShuffleLayer * mImpl
定义: NvInfer.h:3210
void setFirstTranspose(Permutation permutation) noexcept
设置第一个转置操作应用的排列。
定义: NvInfer.h:3063
void setSecondTranspose(Permutation permutation) noexcept
设置第二个转置操作应用的排列。
定义: NvInfer.h:3163
Dims getReshapeDimensions() const noexcept
获取重塑的维度。
定义: NvInfer.h:3116
void setReshapeDimensions(Dims const &dimensions) noexcept
设置重塑的维度。
定义: NvInfer.h:3103
Permutation getFirstTranspose() const noexcept
获取第一个转置操作应用的排列。
定义: NvInfer.h:3075
virtual ~IShuffleLayer() noexcept=default
Permutation getSecondTranspose() const noexcept
获取第二个转置操作应用的排列。
定义: NvInfer.h:3175
bool getZeroIsPlaceholder() const noexcept
获取重塑维度中 0 的含义。
定义: NvInfer.h:3204
void setZeroIsPlaceholder(bool zeroIsPlaceholder) noexcept
设置重塑维度中 0 的含义。
定义: NvInfer.h:3191
根据偏移量和步幅将输入张量切片为输出张量。
定义: NvInfer.h:3304
void setStride(Dims const &stride) noexcept
设置用于计算输出切片数据的步幅。
定义: NvInfer.h:3373
apiv::VSliceLayer * mImpl
定义: NvInfer.h:3472
virtual ~ISliceLayer() noexcept=default
void setSize(Dims const &size) noexcept
设置输出切片的维度。
定义: NvInfer.h:3344
void setAxes(Dims const &axes) noexcept
为此 ISliceLayer 设置轴。
定义: NvInfer.h:3451
void setStart(Dims const &start) noexcept
设置切片层用于创建输出切片的起始偏移量。
定义: NvInfer.h:3315
Dims getStart() const noexcept
获取切片层的起始偏移量。
定义: NvInfer.h:3330
void setMode(SampleMode mode) noexcept
设置切片模式。
定义: NvInfer.h:3398
Dims getSize() const noexcept
获取输出切片的维度。
定义: NvInfer.h:3359
SampleMode getMode() const noexcept
获取切片模式。
定义: NvInfer.h:3408
Dims getStride() const noexcept
获取输出切片的步长。
定义: NvInfer.h:3388
Dims getAxes() const noexcept
获取此 ISliceLayer 的轴。
定义: NvInfer.h:3466
网络定义中的 Softmax 层。
定义: NvInfer.h:2002
void setAxes(uint32_t axes) noexcept
设置计算 softmax 的轴。目前,只能设置一个轴。
定义: NvInfer.h:2024
uint32_t getAxes() const noexcept
获取 softmax 发生的轴。
定义: NvInfer.h:2034
virtual ~ISoftMaxLayer() noexcept=default
表示 squeeze 操作的层,在输入张量的一组维度上移除大小为 1 的维度...
定义: NvInfer.h:6419
virtual ~ISqueezeLayer() noexcept=default
apiv::VSqueezeLayer * mImpl
定义: NvInfer.h:6436
网络定义中的张量。
定义: NvInfer.h:185
void setAllowedFormats(TensorFormats formats) noexcept
为输入或输出张量设置允许的格式。 默认情况下,允许所有格式....
定义: NvInfer.h:431
TensorLocation getLocation() const noexcept
获取张量的存储位置。
定义: NvInfer.h:350
void setDimensions(Dims const &dimensions) noexcept
设置张量的维度。
定义: NvInfer.h:233
void resetDynamicRange() noexcept
撤销 setDynamicRange 的效果。
定义: NvInfer.h:389
void setName(char const *name) noexcept
设置张量名称。
定义: NvInfer.h:202
bool isExecutionTensor() const noexcept
张量是否为执行张量。
定义: NvInfer.h:496
void setType(DataType type) noexcept
设置张量的数据类型。
定义: NvInfer.h:262
TRT_DEPRECATED bool dynamicRangeIsSet() const noexcept
查询是否已设置动态范围。
定义: NvInfer.h:381
char const * getName() const noexcept
获取张量名称。
定义: NvInfer.h:214
bool isShapeTensor() const noexcept
张量是否为形状张量。
定义: NvInfer.h:475
float getDynamicRangeMax() const noexcept
获取动态范围的最大值。
定义: NvInfer.h:409
bool isNetworkInput() const noexcept
张量是否为网络输入。
定义: NvInfer.h:299
TRT_DEPRECATED void setBroadcastAcrossBatch(bool broadcastAcrossBatch) noexcept
设置是否启用张量跨隐式批次维度的广播。
定义: NvInfer.h:324
TRT_DEPRECATED bool setDynamicRange(float min, float max) noexcept
设置张量的动态范围。
定义: NvInfer.h:291
TRT_DEPRECATED bool getBroadcastAcrossBatch() const noexcept
检查张量是否跨隐式批次维度广播。
定义: NvInfer.h:338
bool isNetworkOutput() const noexcept
张量是否为网络输出。
定义: NvInfer.h:307
DataType getType() const noexcept
获取张量的数据类型。
定义: NvInfer.h:274
apiv::VTensor * mImpl
定义: NvInfer.h:543
float getDynamicRangeMin() const noexcept
获取动态范围的最小值。
定义: NvInfer.h:399
virtual ~ITensor() noexcept=default
void setDimensionName(int32_t index, char const *name) noexcept
命名输入张量的维度。
定义: NvInfer.h:522
char const * getDimensionName(int32_t index) const noexcept
获取输入维度的名称。
定义: NvInfer.h:537
TRT_DEPRECATED void setLocation(TensorLocation location) noexcept
设置张量的存储位置。
定义: NvInfer.h:369
Dims getDimensions() const noexcept
获取张量的维度。
定义: NvInfer.h:247
TensorFormats getAllowedFormats() const noexcept
获取张量支持的 TensorFormat 值的位掩码。 对于形状张量,...
定义: NvInfer.h:444
用于处理从构建器收集的策略计时信息的类。
定义: NvInfer.h:8967
int64_t queryKeys(TimingCacheKey *keyBuffer, int64_t capacity) const noexcept
从 Timing Cache 查询缓存键。
定义: NvInfer.h:9033
bool combine(ITimingCache const &inputCache, bool ignoreMismatch) noexcept
将输入计时缓存合并到本地实例中。
定义: NvInfer.h:9004
TimingCacheValue query(TimingCacheKey const &key) const noexcept
在缓存条目中查询值。
定义: NvInfer.h:9050
virtual ~ITimingCache() noexcept=default
bool update(TimingCacheKey const &key, TimingCacheValue const &value) noexcept
更新缓存条目中的值。
定义: NvInfer.h:9072
apiv::VTimingCache * mImpl
定义: NvInfer.h:9078
bool reset() noexcept
清空计时缓存。
定义: NvInfer.h:9014
表示 TopK 缩减的层。
定义: NvInfer.h:3529
void setK(int32_t k) noexcept
为层设置静态 k 值。
定义: NvInfer.h:3560
void setReduceAxes(uint32_t reduceAxes) noexcept
设置层要缩减的轴。
定义: NvInfer.h:3584
TopKOperation getOperation() const noexcept
获取层的操作。
定义: NvInfer.h:3546
apiv::VTopKLayer * mImpl
定义: NvInfer.h:3616
void setOperation(TopKOperation op) noexcept
设置层的操作。
定义: NvInfer.h:3536
int32_t getK() const noexcept
获取层的 k 值。
定义: NvInfer.h:3574
uint32_t getReduceAxes() const noexcept
获取层要缩减的轴。
定义: NvInfer.h:3594
virtual ~ITopKLayer() noexcept=default
表示行程计数限制器的层。
定义: NvInfer.h:4732
TripLimit getTripLimit() const noexcept
获取行程限制器类型。
定义: NvInfer.h:4737
virtual ~ITripLimitLayer() noexcept=default
表示一元运算的层。
定义: NvInfer.h:2809
void setOperation(UnaryOperation op) noexcept
设置层的一元运算。
定义: NvInfer.h:2818
apiv::VUnaryLayer * mImpl
定义: NvInfer.h:2834
UnaryOperation getOperation() const noexcept
获取层的一元运算。
定义: NvInfer.h:2828
virtual ~IUnaryLayer() noexcept=default
表示 unsqueeze 操作的层,它通过插入单位长度来重塑输入张量...
定义: NvInfer.h:6448
virtual ~IUnsqueezeLayer() noexcept=default
apiv::VUnsqueezeLayer * mImpl
定义: NvInfer.h:6465
用于版本控制的接口类。
定义: NvInferRuntimeBase.h:263
与 TRT 接口关联的版本信息。
定义: NvInferRuntimeBase.h:228
用作层参数的权重数组。
定义: NvInferRuntime.h:124
virtual int32_t selectAlgorithms(IAlgorithmContext const &context, IAlgorithm const *const *choices, int32_t nbChoices, int32_t *selection) noexcept=0
从给定的算法选择列表中为层选择算法。
virtual void reportAlgorithms(IAlgorithmContext const *const *algoContexts, IAlgorithm const *const *algoChoices, int32_t nbAlgorithms) noexcept=0
TensorRT 调用以报告其所做的选择。
InterfaceInfo getInterfaceInfo() const noexcept override
返回与此接口关联的版本信息。 应用程序不得覆盖此方法...
定义: NvInfer.h:8604
virtual ~IAlgorithmSelector() noexcept=default
定义: NvInferRuntimeBase.h:400
定义: NvInferRuntime.h:1608
~IInt8EntropyCalibrator2() noexcept override=default
CalibrationAlgoType getAlgorithm() noexcept override
定义: NvInfer.h:8239
InterfaceInfo getInterfaceInfo() const noexcept override
返回与此接口关联的版本信息。 应用程序不得覆盖此方法...
定义: NvInfer.h:8231
CalibrationAlgoType getAlgorithm() noexcept override
定义: NvInfer.h:8199
InterfaceInfo getInterfaceInfo() const noexcept override
返回与此接口关联的版本信息。 应用程序不得覆盖此方法...
定义: NvInfer.h:8191
~IInt8EntropyCalibrator() noexcept override=default
CalibrationAlgoType getAlgorithm() noexcept override
定义: NvInfer.h:8318
InterfaceInfo getInterfaceInfo() const noexcept override
返回与此接口关联的版本信息。 应用程序不得覆盖此方法...
定义: NvInfer.h:8310
virtual double getQuantile() const noexcept=0
分位数(介于 0 和 1 之间),当使用分位数方法时,将用于选择区域最大值...
~IInt8MinMaxCalibrator() noexcept override=default
CalibrationAlgoType getAlgorithm() noexcept override
定义: NvInfer.h:8279
InterfaceInfo getInterfaceInfo() const noexcept override
返回与此接口关联的版本信息。 应用程序不得覆盖此方法...
定义: NvInfer.h:8271
定义: NvInferPluginBase.h:206
virtual bool stepComplete(char const *phaseName, int32_t step) noexcept=0
发出优化器阶段的步骤已完成的信号。
virtual ~IProgressMonitor() noexcept=default
IProgressMonitor()=default
virtual void phaseFinish(char const *phaseName) noexcept=0
发出优化器的阶段已完成的信号。
virtual void phaseStart(char const *phaseName, char const *parentPhase, int32_t nbSteps) noexcept=0
发出优化器的阶段已开始的信号。
IBuilder * createInferBuilder(ILogger &logger) noexcept
创建 IBuilder 类的实例。
定义: NvInfer.h:10627
uint32_t TacticSources
表示使用按位 OR 运算组合的一个或多个 TacticSource 值集合。
定义: NvInferRuntime.h:2832
ResizeSelector
调整大小为单像素输出时的坐标选择器。
定义: NvInfer.h:4004
EngineCapability
支持的引擎功能流程列表。
定义: NvInferRuntime.h:76
nvinfer1::IPluginRegistry * getBuilderPluginRegistry(nvinfer1::EngineCapability capability) noexcept
返回用于构建标准引擎的插件注册表,如果不存在注册表,则返回 nullptr。
MemoryPoolType
TensorRT 使用的内存池类型。
定义: NvInfer.h:9089
ScaleMode
控制如何在 Scale 层中应用 shift、scale 和 power。
定义: NvInfer.h:1815
@ kUNIFORM
在张量的所有元素上使用相同的系数。
RuntimePlatform
描述用于执行 ... 的预期运行时平台(操作系统和 CPU 架构)。
定义: NvInfer.h:8710
uint32_t QuantizationFlags
表示使用二进制 OR 运算的一个或多个 QuantizationFlag 值。
定义: NvInfer.h:8662
HardwareCompatibilityLevel
描述与构建引擎的 GPU 架构不同的 GPU 架构的兼容性要求。
定义: NvInfer.h:9203
CumulativeOperation
枚举 Cumulative 层可能执行的累积运算。
定义: NvInfer.h:6481
BoundingBoxFormat
用于 INMSLayer 中 Boxes 输入张量的边界框数据表示形式。
定义: NvInfer.h:6067
@ kCENTER_SIZES
(x_center, y_center, width, height),其中 (x_center, y_center) 是框的中心点
@ kCORNER_PAIRS
(x1, y1, x2, y2),其中 (x1, y1) 和 (x2, y2) 是任意一对对角角点
constexpr int32_t EnumMax< BuilderFlag >() noexcept
定义: NvInfer.h:8911
constexpr int32_t EnumMax< LayerType >() noexcept
定义: NvInfer.h:118
constexpr int32_t EnumMax< CalibrationAlgoType >() noexcept
定义: NvInfer.h:8101
UnaryOperation
枚举 Unary 层可能执行的一元运算。
定义: NvInfer.h:2762
@ kISINF
如果输入值等于浮点数据类型的 +/- 无穷大,则返回 true。
@ kISNAN
如果输入值是浮点数据类型的 NaN,则返回 true。
@ kROUND
对于浮点数据类型,四舍五入到最接近的偶数。
@ kSIGN
符号,如果输入 > 0,输出 1;如果输入 < 0,输出 -1;如果输入 == 0,输出 0。
constexpr int32_t EnumMax< ReduceOperation >() noexcept
定义: NvInfer.h:2871
constexpr int32_t EnumMax< TripLimit >() noexcept
定义: NvInfer.h:4401
ActivationType
枚举在激活层中执行的激活类型。
定义: NvInfer.h:137
@ kSELU
Selu 激活:x>0 ? beta * x : beta * (alpha*exp(x) - alpha)
@ kSCALED_TANH
缩放的 tanh 激活:alpha*tanh(beta*x)
@ kELU
Elu 激活:x>=0 ? x : alpha * (exp(x) - 1)。
@ kLEAKY_RELU
LeakyRelu 激活:x>=0 ? x : alpha * x。
@ kSOFTSIGN
Softsign 激活:x / (1+|x|)
@ kHARD_SIGMOID
Hard sigmoid 激活:max(0, min(1, alpha*x+beta))
@ kTHRESHOLDED_RELU
阈值 ReLU 激活:x>alpha ? x : 0。
@ kCLIP
Clip 激活:max(alpha, min(beta, x))
@ kGELU_TANH
GELU tanh 激活:0.5 * x * (1 + tanh(sqrt(2/pi) * (0.044715F * pow(x, 3) + x)))
@ kGELU_ERF
GELU erf 激活:0.5 * x * (1 + erf(sqrt(0.5) * x))
@ kSOFTPLUS
参数化 softplus 激活:alpha*log(exp(beta*x)+1)
FillOperation
枚举填充层可能执行的张量填充操作。
定义: NvInfer.h:4979
@ kRANDOM_UNIFORM
从均匀分布中随机抽取值。
@ kRANDOM_NORMAL
从正态分布中随机抽取值。
ResizeRoundMode
最近邻调整大小的舍入模式。
定义: NvInfer.h:4034
@ kHALF_UP
四舍五入到最接近的一半(向上)。
@ kHALF_DOWN
四舍五入到最接近的一半(向下)。
nvinfer1::safe::IPluginRegistry * getBuilderSafePluginRegistry(nvinfer1::EngineCapability capability) noexcept
返回用于构建安全引擎的插件注册表,如果不存在注册表,则返回 nullptr。
PaddingMode
枚举在卷积、反卷积和池化层中执行的填充模式,...
定义: NvInfer.h:993
@ kSAME_LOWER
使用 SAME 填充,prePadding >= postPadding。
@ kEXPLICIT_ROUND_DOWN
使用显式填充,向下舍入输出大小。
@ kEXPLICIT_ROUND_UP
使用显式填充,向上舍入输出大小。
@ kSAME_UPPER
使用 SAME 填充,prePadding <= postPadding。
TripLimit
定义: NvInfer.h:4389
@ kWHILE
张量是 kBOOL 类型的标量。 当值为 false 时,循环终止。
@ kCOUNT
张量是 kINT32 或 kINT64 类型的标量,其中包含行程计数。
uint32_t NetworkDefinitionCreationFlags
表示使用二进制 OR 运算的一个或多个 NetworkDefinitionCreationFlag 标志....
定义: NvInfer.h:10289
PreviewFeature
定义预览功能。
定义: NvInfer.h:9164
@ kALIASED_PLUGIN_IO_10_03
TilingOptimizationLevel
定义 Tiling 的优化级别。
定义: NvInfer.h:9243
@ kFAST
使用快速算法和基于启发式的策略。 稍微增加引擎构建时间。
@ kFULL
增加更广泛的搜索空间。 显著增加引擎构建时间。
constexpr int32_t EnumMax< GatherMode >() noexcept
定义: NvInfer.h:2521
DataType
权重和张量的类型。
定义: NvInferRuntimeBase.h:133
uint32_t BuilderFlags
表示使用二进制 OR 运算的一个或多个 BuilderFlag 值,例如,1U << BuilderFlag::kFP16 ...
定义: NvInfer.h:8740
DeviceType
此层/网络将在其上执行的设备。
定义: NvInferRuntime.h:1303
constexpr int32_t EnumMax< ScaleMode >() noexcept
定义: NvInfer.h:1827
CalibrationAlgoType
要使用的校准算法版本。
定义: NvInfer.h:8088
@ kENTROPY_CALIBRATION_2
熵校准。
@ kLEGACY_CALIBRATION
旧版校准。
@ kENTROPY_CALIBRATION
旧版熵校准。
@ kMINMAX_CALIBRATION
Minmax 校准。
LayerType
层类的类型值。
定义: NvInfer.h:58
@ kRAGGED_SOFTMAX
Ragged softmax 层。
@ kCUMULATIVE
Cumulative 层。
@ kCONDITIONAL_INPUT
Conditional Input 层。
@ kNORMALIZATION
Normalization 层。
@ kPARAMETRIC_RELU
Parametric ReLU 层。
@ kCONCATENATION
Concatenation 层。
@ kREVERSE_SEQUENCE
Reverse sequence 层。
@ kRECURRENCE
Loop Recurrence 层。
@ kDEQUANTIZE
Dequantize 层。
@ kITERATOR
Loop Iterator 层。
@ kTRIP_LIMIT
Loop Trip limit 层。
@ kDYNAMIC_QUANTIZE
Dynamic Quantize 层。
@ kACTIVATION
Activation 层。
@ kELEMENTWISE
Elementwise 层。
@ kLOOP_OUTPUT
Loop output 层。
@ kCONDITIONAL_OUTPUT
Conditional Output 层。
constexpr int32_t EnumMax< QuantizationFlag >() noexcept
定义: NvInfer.h:8687
SampleMode
控制 ISliceLayer 和 IGridSample 如何处理越界坐标。
定义: NvInfer.h:3220
@ kSTRICT_BOUNDS
当坐标超出边界时,将报错。
GatherMode
控制 IGatherLayer 的形式。
Definition: NvInfer.h:2509
@ kDEFAULT
类似于 ONNX Gather。
@ kELEMENT
类似于 ONNX GatherElements。
uint32_t TensorFormats
它能够通过二进制 OR 运算表示一个或多个 TensorFormat,例如...
Definition: NvInfer.h:129
ProfilingVerbosity
NVTX 注释和 IEngineInspector 中公开的层信息详细程度列表。
Definition: NvInferRuntime.h:2844
NetworkDefinitionCreationFlag
在网络创建时表示的不可变网络属性列表。NetworkDefinitionCreationFla...
Definition: NvInfer.h:10300
ElementWiseOperation
枚举 ElementWise 层可能执行的二元运算。
Definition: NvInfer.h:2419
@ kFLOOR_DIV
第一个元素除以第二个元素的向下取整除法。
@ kLESS
检查第一个张量中的元素是否小于第二个张量中对应的元素。
@ kGREATER
检查第一个张量中的元素是否大于第二个张量中对应的元素。
QuantizationFlag
将网络量化为 int8 的有效标志列表。
Definition: NvInfer.h:8674
@ kCALIBRATE_BEFORE_FUSION
constexpr int32_t EnumMax< SampleMode >() noexcept
Definition: NvInfer.h:3236
InterpolationMode
枚举各种插值模式。
Definition: NvInfer.h:3922
@ kNEAREST
ND (0 < N <= 8) 最近邻调整大小。
@ kLINEAR
支持线性 (1D)、双线性 (2D) 和三线性 (3D) 插值。
BuilderFlag
构建器在从网络定义创建引擎时可以启用的有效模式列表。
Definition: NvInfer.h:8750
@ kWEIGHT_STREAMING
为当前引擎启用权重流式传输。
@ kGPU_FALLBACK
如果层无法在 DLA 上执行,则启用标记为在 GPU 上执行的层。
@ kSPARSE_WEIGHTS
允许构建器检查权重,并在权重具有合适的稀疏性时使用优化的函数。
@ kFP16
启用 FP16 层选择,并使用 FP32 后备。
@ kERROR_ON_TIMING_CACHE_MISS
@ kINT8
启用 Int8 层选择,并使用 FP32 后备,如果还指定了 kFP16,则使用 FP16 后备。
@ kEDITABLE_TIMING_CACHE
启用可编辑的计时缓存。
@ kPREFER_PRECISION_CONSTRAINTS
@ kINT4
启用具有 INT4 输入/输出的插件。
@ kSTRIP_PLAN
从引擎计划文件中剥离可重新拟合的权重。
@ kMONITOR_MEMORY
在构建时启用内存监视器。
@ kDISABLE_TIMING_CACHE
禁用跨相同层的定时信息重用。
@ kDISABLE_COMPILATION_CACHE
@ kOBEY_PRECISION_CONSTRAINTS
要求层以指定的精度执行。否则构建将失败。
@ kREJECT_EMPTY_ALGORITHMS
如果 IAlgorithmSelector::selectAlgorithms 返回一个空的算法集,则失败。
constexpr int32_t EnumMax< TopKOperation >() noexcept
Definition: NvInfer.h:3512
constexpr int32_t EnumMax< MemoryPoolType >() noexcept
Definition: NvInfer.h:9150
TopKOperation
枚举 TopK 层可能执行的操作。
Definition: NvInfer.h:3501
ReduceOperation
枚举 Reduce 层可能执行的reduce操作。
Definition: NvInfer.h:2857
constexpr int32_t EnumMax< LoopOutput >() noexcept
Definition: NvInfer.h:4380
constexpr int32_t EnumMax< NetworkDefinitionCreationFlag >() noexcept
Definition: NvInfer.h:10319
ScatterMode
控制 IScatterLayer 的形式。
Definition: NvInfer.h:5802
MatrixOperation
枚举 IMatrixMultiplyLayer 在乘法之前可能对张量执行的操作...
Definition: NvInfer.h:3627
@ kTRANSPOSE
类似于 kNONE,但转置矩阵维度。
ResizeCoordinateTransformation
调整大小坐标变换函数。
Definition: NvInfer.h:3950
constexpr int32_t EnumMax< UnaryOperation >() noexcept
Definition: NvInfer.h:2796
LoopOutput
Definition: NvInfer.h:4363
@ kLAST_VALUE
输出值是最后一次迭代的张量值。
@ kCONCATENATE
输出值是每次迭代的张量值的串联,按正向顺序排列。
@ kREVERSE
输出值是每次迭代的张量值的串联,按反向顺序排列。
constexpr int32_t EnumMax< BoundingBoxFormat >() noexcept
Definition: NvInfer.h:6080
constexpr int32_t EnumMax< MatrixOperation >() noexcept
Definition: NvInfer.h:3655
PoolingType
在池化层中执行的池化类型。
Definition: NvInfer.h:1429
@ kAVERAGE
元素上的平均值。如果张量被填充,则计数包括填充。
@ kMAX_AVERAGE_BLEND
最大池化和平均池化之间的混合:(1-blendFactor)*maxPool + blendFactor*avgPool。
v_1_0::IProgressMonitor IProgressMonitor
Definition: NvInfer.h:9359
constexpr int32_t EnumMax< FillOperation >() noexcept
Definition: NvInfer.h:5010
TensorLocation
张量数据存储的位置,设备或主机。
Definition: NvInferRuntime.h:204
OptProfileSelector
当设置或查询优化配置文件参数(例如形状张量输入或动态维度...)时。
Definition: NvInferRuntime.h:2576
constexpr int32_t EnumMax< ScatterMode >() noexcept
Definition: NvInfer.h:5813
表示维度的排列。
Definition: NvInfer.h:3029
EnumMaxImpl 结构的声明,用于存储枚举类型中的最大元素数。
Definition: NvInferRuntimeBase.h:118
用于检索计时缓存条目的键。
Definition: NvInfer.h:8931
Definition: NvInfer.h:8943
uint64_t tacticHash
所选策略的哈希值。
Definition: NvInfer.h:8945
float timingMSec
此策略的计时,单位为毫秒。负数和 NaN 是无效值。
Definition: NvInfer.h:8947