MCPcopy Create free account
hub / github.com/ai-techsystems/deepC / irTypeData

Method irTypeData

include/graph/irData.h:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34public:
35 irTypeData(IR_DataType ty, std::vector<int> &d) : _type(ty) {
36 assert(ty == IR_DataType::INT8 || ty == IR_DataType::INT16 ||
37 ty == IR_DataType::INT32 || ty == IR_DataType::INT64);
38 _ref = new size_t;
39 *_ref = 1;
40 _data = new std::vector<int>(d.begin(), d.end());
41 }
42 irTypeData(IR_DataType ty, std::vector<float> &d) : _type(ty) {
43 assert(ty == IR_DataType::FLOAT || ty == IR_DataType::FLOAT16 ||
44 ty == IR_DataType::DOUBLE);

Callers 2

addParamsMethod · 0.80
addOPNodeMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected