mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-26 10:00:33 +08:00
Merge pull request #687 from joey12300/add_tile_linespace_functions
[Functions] Add fdtensor functions
This commit is contained in:
@@ -63,14 +63,4 @@ std::vector<int64_t> GetStride(const std::vector<int64_t>& dims) {
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string Str(const std::vector<int64_t>& shape) {
|
||||
std::ostringstream oss;
|
||||
oss << "[ " << shape[0];
|
||||
for (int i = 1; i < shape.size(); ++i) {
|
||||
oss << " ," << shape[i];
|
||||
}
|
||||
oss << " ]";
|
||||
return oss.str();
|
||||
}
|
||||
|
||||
} // namespace fastdeploy
|
||||
|
||||
Reference in New Issue
Block a user