check each layer's data

Hi,

We want to check each layer’s weights and other data of our network models in TensorRT, does TensorRT have some methods to view the data? Thanks

Hi,

We don’t have a visualization tool for TensorRT.
But you can output the tensor data directly.

Thanks.

I recommend converting the network to a format recognized by DIGITS; DIGITS has a very good visualization function!

Hi,
1)Can you explain more specific about outputting the tensor data directly or show an example?

2)I will check the DIGITS

Thanks

Hi,

DIGITS is a good tool for visualizing but it doesn’t support TensoRT.

If you want to verify the training process, DIGITS is good.
But for the behavior of TensorRT engine, you will need to output the intermediate data directly.

For example, checking the layer called “prob”.

...
network->markOutput("prob");
...

const int outputIndex = engine->getBindingIndex("prob");
...
context->enqueue(...)
buffers.copyOutputToHostAsync(stream)

-> check buffers[outputIndex]

Thanks.

Thanks for your reply