| 674 | : shape_(rhs.shape_), type_(rhs.type_), tensor_(rhs.tensor_) {} |
| 675 | |
| 676 | int64_t TRT_ShapedWeights::count() const { |
| 677 | return TrtWeightDimsNumElements(shape_); |
| 678 | } |
| 679 | |
| 680 | nvinfer1::Weights TRT_ShapedWeights::GetTrtWeights() const { |
| 681 | return nvinfer1::Weights{type_, GetValues(), count()}; |