8 #include <fmt/format.h> 18 shapeStr = fmt::format(
"{} dim {{ dim_value: {} }}", shapeStr, i);
24 const std::vector<int>& values)
26 std::string attrString = fmt::format(
"attribute {{ name: '{}'", name);;
29 attrString = fmt::format(
" {} ints: {}", attrString, i);
31 attrString = fmt::format(
" {} type: INTS }}", attrString);
std::string ConstructTensorShapeString(const std::vector< int > &shape)
std::string ConstructIntsAttribute(const std::string &name, const std::vector< int > &values)