| 269 | } |
| 270 | |
| 271 | void trace_log_i32(const std::string & name, const std::vector<int64_t> & dims, const std::vector<int32_t> & values) { |
| 272 | if (!trace_log_enabled()) { |
| 273 | return; |
| 274 | } |
| 275 | std::ostringstream output; |
| 276 | output << "[TRACE ts=" << timestamp_seconds_local() << "] " << name |
| 277 | << " shape=" << format_dims(dims) |
| 278 | << " size=" << values.size() |
| 279 | << " samples=" << sample_points_i32(values); |
| 280 | log_message(output.str()); |
| 281 | } |
| 282 | |
| 283 | void trace_log_scalar(const std::string & name, std::string_view value) { |
| 284 | if (!trace_log_enabled()) { |
nothing calls this directly
no test coverage detected