@Namespace(value="nvinfer1") @NoOffset @Properties(inherit=nvinfer.class) public class ILayer extends INoCopy
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description | 
|---|
| ILayer(Pointer p)Pointer cast constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| ITensor | getInput(int index)\brief Get the layer input corresponding to the given index. | 
| String | getMetadata()\brief Get the metadata of the layer. | 
| String | getName()\brief Return the name of a layer. | 
| int | getNbInputs()\brief Get the number of inputs of a layer. | 
| int | getNbOutputs()\brief Get the number of outputs of a layer. | 
| ITensor | getOutput(int index)\brief Get the layer output corresponding to the given index. | 
| nvinfer.DataType | getOutputType(int index)\brief get the output type of this layer | 
| nvinfer.DataType | getPrecision()\brief get the computational precision of this layer | 
| nvinfer.LayerType | getType()\brief Return the type of a layer. | 
| boolean | outputTypeIsSet(int index)Deprecated. 
 Deprecated in TensorRT 10.12. Superseded by strong typing. | 
| boolean | precisionIsSet()Deprecated. 
 Deprecated in TensorRT 10.12. Superseded by strong typing. | 
| void | resetOutputType(int index)Deprecated. 
 Deprecated in TensorRT 10.12. Superseded by strong typing. | 
| void | resetPrecision()Deprecated. 
 Deprecated in TensorRT 10.12. Superseded by strong typing. | 
| void | setInput(int index,
        ITensor tensor)\brief Replace an input of this layer with a specific tensor. | 
| void | setMetadata(BytePointer metadata) | 
| void | setMetadata(String metadata)\brief Set the metadata for this layer. | 
| void | setName(BytePointer name) | 
| void | setName(String name)\brief Set the name of a layer. | 
| void | setOutputType(int index,
             int dataType)Deprecated.  | 
| void | setOutputType(int index,
             nvinfer.DataType dataType)Deprecated. 
 Deprecated in TensorRT 10.12. Superseded by strong typing. | 
| void | setPrecision(int dataType)Deprecated.  | 
| void | setPrecision(nvinfer.DataType dataType)Deprecated. 
 Deprecated in TensorRT 10.12. Superseded by strong typing. | 
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic ILayer(Pointer p)
Pointer(Pointer).@NoException(value=true) public nvinfer.LayerType getType()
nvinfer.LayerType@NoException(value=true) public void setName(String name)
getName()@NoException(value=true) public void setName(@Cast(value="const char*") BytePointer name)
@NoException(value=true) public String getName()
setName()@NoException(value=true) public int getNbInputs()
@NoException(value=true) public ITensor getInput(int index)
index - The index of the input tensor.@NoException(value=true) public int getNbOutputs()
@NoException(value=true) public ITensor getOutput(int index)
@NoException(value=true) public void setInput(int index, @ByRef ITensor tensor)
index - the index of the input to modify.tensor - the new input tensor
 
  Except for IFillLayer, ILoopOutputLayer, INMSLayer, IResizeLayer, IShuffleLayer, and ISliceLayer,
  this method cannot change the number of inputs to a layer. The index argument must be
  less than the value of getNbInputs().
 
  See comments for overloads of setInput() for layers with special behavior.@Deprecated @NoException(value=true) public void setPrecision(nvinfer.DataType dataType)
dataType - the computational precision.precisionIsSet() resetPrecision()@Deprecated @NoException(value=true) public void setPrecision(@Cast(value="nvinfer1::DataType") int dataType)
@NoException(value=true) public nvinfer.DataType getPrecision()
precisionIsSet() resetPrecision()@Cast(value="bool") @Deprecated @NoException(value=true) public boolean precisionIsSet()
getPrecision() resetPrecision()@Deprecated @NoException(value=true) public void resetPrecision()
getPrecision() precisionIsSet()@Deprecated @NoException(value=true) public void setOutputType(int index, nvinfer.DataType dataType)
index - the index of the output to setdataType - the type of the outputoutputTypeIsSet() resetOutputType()@Deprecated @NoException(value=true) public void setOutputType(int index, @Cast(value="nvinfer1::DataType") int dataType)
@NoException(value=true) public nvinfer.DataType getOutputType(int index)
index - the index of the outputoutputTypeIsSet() resetOutputType()@Cast(value="bool") @Deprecated @NoException(value=true) public boolean outputTypeIsSet(int index)
index - the index of the outputgetOutputType() resetOutputType()@Deprecated @NoException(value=true) public void resetOutputType(int index)
index - the index of the outputgetOutputType() outputTypeIsSet()@NoException(value=true) public void setMetadata(String metadata)
metadata - The per-layer metadata.
 
  \warning The string name must be null-terminated and be at most 4096 bytes including the terminator.getMetadata(), 
getLayerInformation()@NoException(value=true) public void setMetadata(@Cast(value="const char*") BytePointer metadata)
@NoException(value=true) public String getMetadata()
setMetadata()Copyright © 2025. All rights reserved.