| 33 | |
| 34 | public: |
| 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); |