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 <chrono>
#include <cstring>
#include <string>
#include <thread>
#include <vector>

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 \
<< ": " \
<< err); \
return StatusCode::FAILURE; \
} \
} while (false)

Shorthand for the Triton client namespace.

Helper macro to check Triton client return codes

Definition at line 26 of file TritonTool.cxx.

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