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

Method addReshape

samples/sampleCharRNN/sampleCharRNN.cpp:568–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566}
567
568nvinfer1::ITensor* SampleCharRNNBase::addReshape(
569 SampleUniquePtr<nvinfer1::INetworkDefinition>& network, nvinfer1::ITensor& tensor, nvinfer1::Dims dims)
570{
571 nvinfer1::IShuffleLayer* shuffle = network->addShuffle(tensor);
572 shuffle->setReshapeDimensions(dims);
573 return shuffle->getOutput(0);
574}
575
576nvinfer1::ILayer* SampleCharRNNLoop::addLSTMLayers(SampleUniquePtr<nvinfer1::INetworkDefinition>& network)
577{

Callers

nothing calls this directly

Calls 3

addShuffleMethod · 0.80
setReshapeDimensionsMethod · 0.80
getOutputMethod · 0.45

Tested by

no test coverage detected