class_docstr: A block containing a flattening stage followed by a dense layer block.
  
  For details on flattening see :class:`~maze.perception.blocks.general.flatten.FlattenBlock`.
  For details on dense layers see :class:`~maze.perception.blocks.feed_forward.dense.DenseBlock`.
  
  :param in_keys: One key identifying the input tensors.
  :param out_keys: One key identifying the output tensors.
  :param in_shapes: List of input shapes.
  :param num_flatten_dims: the number of dimensions to flatten out (from right).
  :param hidden_units: List containing the number of hidden units for hidden layers.
  :param non_lin: The non-linearity to apply after each layer.
class_docstr_tok: ["A","block","containing","a","flattening","stage","followed","by","a","dense","layer","block",".","For","details","on","flattening","see",":","class",":","`","~maze.perception.blocks.general.flatten.FlattenBlock","`",".","For","details","on","dense","layers","see",":","class",":","`","~maze.perception.blocks.feed_forward.dense.DenseBlock","`",".",":","param","in_keys",":","One","key","identifying","the","input","tensors",".",":","param","out_keys",":","One","key","identifying","the","output","tensors",".",":","param","in_shapes",":","List","of","input","shapes",".",":","param","num_flatten_dims",":","the","number","of","dimensions","to","flatten","out","(","from","right",")",".",":","param","hidden_units",":","List","containing","the","number","of","hidden","units","for","hidden","layers",".",":","param","non_lin",":","The","non-linearity","to","apply","after","each","layer","."]
code: def __repr__(self):
      txt = f"{FlattenDenseBlock.__name__}:"
      txt += f"\n\n{str(self.flatten_block)}"
      txt += f"\n\n{str(self.dense_block)}"
      return txt
  
file_path: maze/maze/perception/blocks/joint_blocks/flatten_dense.py
imports: from typing import Union, List, Sequence, Dict
  import torch
  from torch import nn
  from maze.core.annotations import override
  from maze.perception.blocks.base import PerceptionBlock
  from maze.perception.blocks.feed_forward.dense import DenseBlock
  from maze.perception.blocks.general.flatten import FlattenBlock
label_desc: Use image node_id 3 for calling the FlattenDenseBlock obj's underlying member method code with example usage: obj.__repr__() and returns: txt