class_docstr: Replaces the output variable of Reshape (flatten) layer with an inplace variable when using io_stream.
  
  This optimizer avoids the expensive repacking of the stream when Reshape layer flattens the tensor to 1d.
code: def match(self, node):
      # Reshape acts as a Flatten layer when the result has 1 dimension
      return (
          isinstance(node, Reshape)
          and len(node.get_output_variable().shape) == 1
      )
  
imports: from hls4ml.model.layers import Reshape
  from hls4ml.model.optimizer import OptimizerPass
  from hls4ml.model.types import InplaceTensorVariable
label_desc: Use image node_id 1 for calling the InplaceStreamFlatten obj's underlying member method code with example usage: obj.match(node) and returns: unknown