UFFParser Volume mismatch

I am trying to create TensorRT engine from a Tensorflow model. I was following this tutorial https://docs.nvidia.com/deeplearning/sdk/tensorrt-api/topics/topics/workflows/tf_to_tensorrt.html and sample network worked without any issues. I was able to convert my network to UFF format, but “uff_to_trt_engine” fails with the following error:

[TensorRT] ERROR: UFFParser: Parser error: Reshape_1: Reshape: Volume mismatch
[TensorRT] ERROR: Failed to parse UFF model stream

What does this error mean and how can I solve it?