Project
Loading...
Searching...
No Matches
ORTRootSerializer.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
15
16#ifndef ALICEO2_TPC_ORTROOTSERIALIZER_H_
17#define ALICEO2_TPC_ORTROOTSERIALIZER_H_
18
19#include "GPUCommonRtypes.h"
20#include <vector>
21#include <string>
22
23namespace o2::tpc
24{
25
27{
28 public:
29 ORTRootSerializer() = default;
30 ~ORTRootSerializer() = default;
31
32 void setOnnxModel(const char* onnxModel, uint32_t size);
33 const char* getONNXModel() const { return mModelBuffer.data(); }
34 uint32_t getONNXModelSize() const { return static_cast<uint32_t>(mModelBuffer.size()); }
35
36 private:
37 std::vector<char> mModelBuffer;
38 ClassDefNV(ORTRootSerializer, 1);
39};
40
41} // namespace o2::tpc
42
43#endif // ALICEO2_TPC_ORTROOTSERIALIZER_H_
const char * getONNXModel() const
uint32_t getONNXModelSize() const
void setOnnxModel(const char *onnxModel, uint32_t size)
Initialize the serialization from a char* buffer containing the model.
GLsizeiptr size
Definition glcorearb.h:659
Global TPC definitions and constants.
Definition SimTraits.h:168