Skip to content

Commit bd64979

Browse files
committed
the argument should not be a const one
1 parent f42ea48 commit bd64979

File tree

1 file changed

+1
-1
lines changed
  • paddle/fluid/inference/tensorrt/convert

1 file changed

+1
-1
lines changed

paddle/fluid/inference/tensorrt/convert/fc_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void Reorder2(nvinfer1::DimsHW shape, const T* idata, nvinfer1::DimsHW istrides,
3838
}
3939
// indata c * k
4040
// Reorder the data layout from CK to KC.
41-
void ReorderCKtoKC(const TensorRTEngine::Weight& iweights,
41+
void ReorderCKtoKC(TensorRTEngine::Weight& iweights,
4242
TensorRTEngine::Weight* oweights) {
4343
int c = iweights.dims[0];
4444
int k = iweights.dims[1];

0 commit comments

Comments
 (0)