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

Method index_valid

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

Source from the content-addressed store, hash-verified

135 self.end_op_idx = self.net_op_nums[self.end_net_idx - 1] - 1
136
137 def index_valid(self):
138 if self.start_net_idx < self.end_net_idx:
139 return True
140 if self.start_op_idx < self.end_op_idx:
141 return True
142 return False
143
144 def get_current_op(self):
145 return self.net_defs[self.start_net_idx].op[self.start_op_idx]

Callers 1

convertFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected