[TensorRT] ERROR: UFFParser: Parser error: model_lr/0/conv2d_weight_norm/Sum: axes.size() != 0 not yet supported for reduce constant nodes
However this should just be a simple linear operation. How can I re-write the reduce_sum step using tf operations that are supported? I’ve looked at the supported TF operations in Support Matrix :: NVIDIA Deep Learning TensorRT Documentation but i think its making me even more confused as to what I can use.
Reduce sum should be achievable through a simple matrix multiplication since its just a linear operation.
I THINK it should be doable by replacing the tf.reduce_sum with a numpy matrix operation in the code, I’m not sure how the uff parsing works exactly but I imagine a simple matrix add operation can’t be too difficult?
I haven’t gotten around to trying it yet however since its been so long since I’ve looked at the low level calculations in deep learning, please let me know if this works for you!
If that doesn’t work there must be a way to specify it through TensorRTs code directly but that I’m even less familiar of that and unfortunately NVIDIA’s support team only seems to reply selectively.
It should definitely be doable though I think (somehow)
use numpy or simlar tech cannot replace tf.reduce_sum. What i’m doing is mv all feature and weights norm op to loss func instead put them in the layer, this get work for training model and uff transfer