Merge pull request #687 from joey12300/add_tile_linespace_functions

[Functions] Add fdtensor functions
This commit is contained in:
Jack Zhou
2022-11-25 11:29:39 +08:00
committed by GitHub
18 changed files with 887 additions and 11 deletions

View File

@@ -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