MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / setInputData

Method setInputData

samples/common/sampleInference.cpp:792–800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790 }
791
792 void setInputData(bool sync)
793 {
794 mBindings.transferInputToDevice(getStream(StreamType::kINPUT));
795 // additional sync to avoid overlapping with inference execution.
796 if (sync)
797 {
798 getStream(StreamType::kINPUT).synchronize();
799 }
800 }
801
802 void fetchOutputData(bool sync)
803 {

Callers 1

inferenceExecutionFunction · 0.80

Calls 2

transferInputToDeviceMethod · 0.80
synchronizeMethod · 0.45

Tested by

no test coverage detected