parameters: (self, op, op_idx)
docstring: r""" inserting operator at index. Will update external blob list.
docstring_summary: r""" inserting operator at index. Will update external blob list.
docstring_tokens: r inserting operator at index . Will update external blob list .
function: def insert_op_at_idx(self, op, op_idx):
          r""" inserting operator at index. Will update external blob list.
          """
          assert op_idx >= 0
          temp_ops = self.Proto().op[op_idx:]
          del self.Proto().op[op_idx:]
          self.Proto().op.extend([op])
          self.Proto().op.extend(temp_ops)
          self.external_outputs.extend(op.output)
          self.external_inputs.extend(op.input)
function_tokens: def insert_op_at_idx ( self , op , op_idx ) : assert op_idx >= 0 temp_ops = self . Proto ( ) . op [ op_idx : ] del self . Proto ( ) . op [ op_idx : ] self . Proto ( ) . op . extend ( [ op ] ) self . Proto ( ) . op . extend ( temp_ops ) self . external_outputs . extend ( op . output ) self . external_inputs . extend ( op . input )