Set name of layer to node name when converting elementwise ops.
PiperOrigin-RevId: 295242050 Change-Id: Id46bccd71a64770570e21fd2912e0c0c73ca8651
This commit is contained in:
parent
767e4d5dab
commit
ad4ca90bc0
@ -4093,6 +4093,7 @@ Status ConvertBinary(OpConverterParams* params) {
|
||||
nvinfer1::ILayer* layer = params->converter->network()->addElementWise(
|
||||
*tensor_l, *tensor_r, op_pair->second);
|
||||
TFTRT_RETURN_ERROR_IF_NULLPTR(layer, node_def.name());
|
||||
layer->setName(node_def.name().c_str());
|
||||
nvinfer1::ITensor* trt_tensor = layer->getOutput(0);
|
||||
|
||||
#if IS_TRT_VERSION_GE(5, 1, 0, 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user