ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExTriton
src
AthExTriton/src/EvaluateUtils.h
Go to the documentation of this file.
1
// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
#ifndef ATHEXTRITON_EVALUATEUTILS_H
4
#define ATHEXTRITON_EVALUATEUTILS_H
5
6
#include <format>
7
#include <string>
8
#include <vector>
9
10
namespace
EvaluateUtils
{
11
//*******************************************************************
12
// for reading MNIST images
13
std::vector<std::vector<std::vector<float>>>
read_mnist_pixel_notFlat
(
14
const
std::string& full_path);
15
16
// flatten a vector of vectors into a vector
17
std::vector<float>
flattenNestedVectors
(
18
const
std::vector<std::vector<float>>& nestedVector);
19
inline
auto
spanToString
= [](std::span<const float>
s
) {
20
std::string
out
;
21
for
(
float
v : s)
out
+= std::format(
"{:.2e} "
, v);
22
if
(!
out
.empty())
out
.pop_back();
23
return
out
;
24
};
25
}
// namespace EvaluateUtils
26
27
#endif
// ATHEXTRITON_EVALUATEUTILS_H
EvaluateUtils
Definition
AthExOnnxRuntime/src/EvaluateUtils.cxx:11
EvaluateUtils::read_mnist_pixel_notFlat
std::vector< std::vector< std::vector< float > > > read_mnist_pixel_notFlat(const std::string &full_path)
Definition
AthExOnnxRuntime/src/EvaluateUtils.cxx:14
EvaluateUtils::spanToString
auto spanToString
Definition
AthExOnnxRuntime/src/EvaluateUtils.h:14
EvaluateUtils::flattenNestedVectors
std::vector< float > flattenNestedVectors(const std::vector< std::vector< float > > &nestedVector)
Definition
AthExTriton/src/EvaluateUtils.cxx:77
python.AthDsoLogger.out
out
Definition
AthDsoLogger.py:70
python.SystemOfUnits.s
float s
Definition
SystemOfUnits.py:147
Generated on
for ATLAS Offline Software by
1.17.0