class_docstr: Operator Converted for converting Caffe ops to Relay ops
class_docstr_tok: ["Operator","Converted","for","converting","Caffe","ops","to","Relay","ops"]
docstr: Convert Flatten layer
code: def convert_flatten(self, op):
      """Convert Flatten layer"""
      inputs = op.bottom
      in_expr = self.exp_tab.get_expr(inputs[0])
  
      flatten_params = op.flatten_param.axis
      assert flatten_params == 1, "flatten axis should be 1"
      out = _op.nn.batch_flatten(in_expr)
  
      return out
  
imports: import numpy
  import tvm
  from tvm.ir import IRModule
  from ...None import nd
  from ..None import analysis
  from ..None import expr
  from ..None import function
  from ..None import op
  from .common import ExprTable
  from .common import infer_shape
label_desc: Use image node_id 2 for calling the OperatorConverter obj's underlying member method code with example usage: obj.convert_flatten(op) and returns: out