Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/TensorRT
/ allocate
Method
allocate
samples/common/sampleDevice.h:394–399 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
392
{
393
public:
394
void allocate(size_t size) override
395
{
396
mSize = size;
397
mHostBuffer.allocate(size);
398
mDeviceBuffer.allocate(size);
399
}
400
401
void* getDeviceBuffer() const override
402
{
Callers
nothing calls this directly
Calls
1
allocate
Method · 0.45
Tested by
no test coverage detected