/** @brief append an trinity operation to the operation list */
void append(TRINITY_CORE_PARA_OP& op) { ops.push_back(op); }
/** @brief convert the operation to VISA assembly codes */
- void write_asm_file(int idx, TRINITY_FMAP_PARA& in,
+ void write_asm_file(size_t idx, TRINITY_FMAP_PARA& in,
TRINITY_FMAP_PARA& out, WGT_PARA& weight);
private:
uint32_t addr_in, addr_wgt;
};
/** @brief convert the operation to VISA assembly codes */
-void TestdataGen::write_asm_file(int idx, TRINITY_FMAP_PARA& in,
+void TestdataGen::write_asm_file(size_t idx, TRINITY_FMAP_PARA& in,
TRINITY_FMAP_PARA& out, WGT_PARA& weight)
{
TRINITY_CORE_PARA_OP& op = ops[idx];
ofs_asm.open(dir + "/program.asm");
- for (int idx = 0; idx < ops.size(); idx++) {
+ for (size_t idx = 0; idx < ops.size(); idx++) {
TRINITY_FMAP_PARA para_fmap_in;
TRINITY_FMAP_PARA para_fmap_out;
WGT_PARA para_weight;