@Namespace(value="nvinfer1") @NoOffset @Properties(inherit=nvinfer.class) public class IConstantLayer extends ILayer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
IConstantLayer(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Dims32 |
getDimensions()
\brief Get the dimensions for the layer.
|
Weights |
getWeights()
\brief Get the weights for the layer.
|
void |
setDimensions(Dims32 dimensions)
\brief Set the dimensions for the layer.
|
void |
setWeights(Weights weights)
\brief Set the weights for the layer.
|
getInput, getMetadata, getName, getNbInputs, getNbOutputs, getOutput, getOutputType, getPrecision, getType, outputTypeIsSet, precisionIsSet, resetOutputType, resetPrecision, setInput, setMetadata, setMetadata, setName, setName, setOutputType, setOutputType, setPrecision, setPrecision
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, zero
public IConstantLayer(Pointer p)
Pointer(Pointer)
.@NoException(value=true) public void setWeights(@ByVal Weights weights)
getWeights()
@ByVal @NoException(value=true) public Weights getWeights()
setWeights
@NoException(value=true) public void setDimensions(@ByVal @Cast(value="nvinfer1::Dims*") Dims32 dimensions)
dimensions
- The dimensions of the layersetDimensions
Copyright © 2024. All rights reserved.