forked from ChunelFeng/CGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPywGMutable.h
More file actions
34 lines (27 loc) · 914 Bytes
/
Copy pathPywGMutable.h
File metadata and controls
34 lines (27 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/***************************
@Author: Chunel
@Contact: chunel@foxmail.com
@File: PywGMutable.h
@Time: 2025/4/8 23:19
@Desc:
***************************/
#ifndef CGRAPH_PYWGMUTABLE_H
#define CGRAPH_PYWGMUTABLE_H
#include <pybind11/pybind11.h>
#include "CGraph.h"
#include "PyWrapperMacro.h"
class PywGMutable : public CGraph::GMutable {
public:
explicit PywGMutable(const CGraph::GElementPtrArr& elements = CGraph::GElementPtrArr{}) {
__addGElements_4py(elements);
}
~PywGMutable() override = default;
CStatus reshape(CGraph::GElementPtrArr& elements) override {
PYBIND11_OVERLOAD_PURE(CStatus, PywGMutable, reshape, elements);
}
};
PYCGRAPH_DECLARE_GGROUP_INTERFACE_CLASS(PywGMutable,
CStatus reshape(CGraph::GElementPtrArr& elements) override {
PYBIND11_OVERLOAD_PURE(CStatus, PywGMutableInterface, reshape, elements);
});
#endif //CGRAPH_PYWGMUTABLE_H