MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / CreateExternalWrapper

Class CreateExternalWrapper

imperative/python/src/external_convert.h:14–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace py = pybind11;
13
14class CreateExternalWrapper final : public OperatorImpl<CreateExternalWrapper> {
15private:
16 py::object m_object;
17 CompNode m_device;
18
19public:
20 CreateExternalWrapper(py::object obj, CompNode device)
21 : m_object(obj), m_device(device) {}
22
23 py::object object() const { return m_object; }
24
25 CompNode device() const { return m_device; }
26
27 std::string raw_type() const { return "CreateExternalWrapper"; }
28
29 std::string to_string() const { return "CreateExternalWrapper"; };
30};
31
32class GetExternalVal final
33 : public OperatorImpl<GetExternalVal, Operator::GetAttrLike> {

Callers 1

TensorWrapperMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected