mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-07 01:22:59 +08:00
[Model] [Part 1] Refactor PaddleClas module (#508)
* Split PaddleClas Module refactor * Split PaddleClas Module refactor * fix bug
This commit is contained in:
@@ -93,6 +93,12 @@ struct FASTDEPLOY_DECL FDTensor {
|
||||
// Total number of elements in this tensor
|
||||
int Numel() const;
|
||||
|
||||
// Get shape of FDTensor
|
||||
std::vector<int64_t> Shape() const { return shape; }
|
||||
|
||||
// Get dtype of FDTensor
|
||||
FDDataType Dtype() const { return dtype; }
|
||||
|
||||
void Resize(size_t nbytes);
|
||||
|
||||
void Resize(const std::vector<int64_t>& new_shape);
|
||||
|
Reference in New Issue
Block a user