Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/TensorRT
/ allocate
Method
allocate
samples/common/sampleDevice.h:438–442 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
436
{
437
public:
438
void allocate(size_t size) override
439
{
440
mSize = size;
441
mBuffer.allocate(size);
442
}
443
444
void* getDeviceBuffer() const override
445
{
Callers
nothing calls this directly
Calls
1
allocate
Method · 0.45
Tested by
no test coverage detected