Poplar and PopLibs
TensorMetaData.hpp
Go to the documentation of this file.
1// Copyright (c) 2020 Graphcore Ltd. All rights reserved.
8#ifndef poputil_TensorMetaData_hpp
9#define poputil_TensorMetaData_hpp
10
11#include <memory>
12
13namespace poputil {
14
15class TensorMetaDataBase;
16
20 std::unique_ptr<TensorMetaDataBase> data;
21
22public:
24 TensorMetaData(const TensorMetaData &other);
26 TensorMetaData &operator=(const TensorMetaData &other);
27 TensorMetaData &operator=(TensorMetaData &&other);
28
29 // Implementation details
30 TensorMetaData(std::unique_ptr<TensorMetaDataBase> data);
32 const TensorMetaDataBase *getData() const { return data.get(); }
33};
34
35} // end namespace poputil
36
37#endif // poputil_TensorMetaData_hpp
Class used to represent some unspecified form of meta-data for a tensor.
Definition: TensorMetaData.hpp:19
General utility functions for building graphs.
Definition: GfloatExprUtil.hpp:23