MCPcopy Create free account
hub / github.com/XiaoMi/mace / get_next_op

Method get_next_op

tools/python/layers_validate.py:147–153  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

145 return self.net_defs[self.start_net_idx].op[self.start_op_idx]
146
147 def get_next_op(self):
148 if self.start_op_idx + 1 < self.net_op_nums[self.start_net_idx]:
149 return self.net_defs[self.start_net_idx].op[self.start_op_idx + 1]
150 elif self.start_net_idx + 1 < self.net_num:
151 return self.net_defs[self.start_net_idx + 1].op[0]
152 else:
153 return None
154
155 def get_current_net_idx(self):
156 return self.start_net_idx

Callers 1

convertFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected