ATLAS Offline Software
Loading...
Searching...
No Matches
TritonTool.cxx File Reference
#include "AthTritonComps/TritonTool.h"
#include "AthenaBaseComps/AthAsynchronousAlgorithm.h"
#include "AthenaBaseComps/AthMessaging.h"
#include <grpc_client.h>
#include <grpc_service.pb.h>
#include <cassert>
#include <cstring>
#include <string>
#include <vector>
Include dependency graph for TritonTool.cxx:

Go to the source code of this file.

Classes

struct  AthInfer::TritonDType< float >
struct  AthInfer::TritonDType< int64_t >
struct  AthInfer::TritonTool::Impl

Namespaces

namespace  AthInfer

Macros

#define TRITON_CHECK(EXP)
 Shorthand for the Triton client namespace.

Macro Definition Documentation

◆ TRITON_CHECK

#define TRITON_CHECK ( EXP)
Value:
do { \
const tc::Error err = EXP; \
if (!err.IsOk()) { \
ATH_MSG_ERROR("Failed to execute: " << #EXP); \
return StatusCode::FAILURE; \
} \
} while (false)

Shorthand for the Triton client namespace.

Helper macro to check Triton client return codes

Definition at line 24 of file TritonTool.cxx.

24#define TRITON_CHECK(EXP) \
25 do { \
26 const tc::Error err = EXP; \
27 if (!err.IsOk()) { \
28 ATH_MSG_ERROR("Failed to execute: " << #EXP); \
29 return StatusCode::FAILURE; \
30 } \
31 } while (false)