\begin{tikzpicture} 
    
    \pgfsetxvec{\pgfpoint{1cm}{0cm}}
    \pgfsetyvec{\pgfpoint{0cm}{1cm}}
    \pgfsetzvec{\pgfpoint{-0.707cm}{.707cm}}     
    
    \onslide<1->{
    
      \cuboidlabelmine{(0,-1,0)}{gray}{2}{2}{0}{32}{32}{}
      \node at (-1,-0.9,0.1) {\tiny{Input}} ;
      \begin{scope}[scale=3.5,transform shape]
        \node[] at (-0.3,-0.5,0) {A};
      \end{scope}
    }
    \onslide<1->{
      \cuboid{(2.2,-1.5,0.6)}{pink!50}{1.5}{1.5}{0}
      \cuboid{(2.2,-1.5,0.4)}{pink!50}{1.5}{1.5}{0}
      \cuboid{(2.2,-1.5,0.2)}{pink!50}{1.5}{1.5}{0}
      \cuboid{(2.2,-1.5,0)}{pink!50}{1.5}{1.5}{0}
      \cuboid{(2.2,-1.5,-0.2)}{pink!50}{1.5}{1.5}{0}
      \cuboid{(2.2,-1.5,-0.4)}{pink!50}{1.5}{1.5}{0}
      \cuboidlabelmine{(2.2,-1.5,-0.4)}{pink!50}{1.5}{1.5}{0}{28}{28}{}
      \node at (1.5,-1.3,0.6) {\tiny{Convolution Layer 1}};

      \kernel{(-0.5,-1.5,0)}{gray}{0.3}{0.3}{0}{(1.8,-2,-0.4)}

      \lenetparam{(2.2,-1.5,-0.4)}{pink!50}{1.5}{1.5}{0}{$S=1$,$F=5$,}{$K=6$,$P=0$,}{ $Param=150$}
      }
    \onslide<1->{
      \cuboid{(4.2,-2,0.6)}{blue!50}{1}{1}{0}
      \cuboid{(4.2,-2,0.4)}{blue!50}{1}{1}{0}
      \cuboid{(4.2,-2,0.2)}{blue!50}{1}{1}{0}
      \cuboid{(4.2,-2,0)}{blue!50}{1}{1}{0}
      \cuboid{(4.2,-2,-0.2)}{blue!50}{1}{1}{0}
      \cuboid{(4.2,-2,-0.4)}{blue!50}{1}{1}{0}
      \cuboidlabelmine{(4.2,-2,-0.4)}{blue!50}{1}{1}{0}{14}{14}{}
      \node at (3.5,-1.8,0.6) {\tiny{Pooling Layer 1}};

      \kernel{(1.8,-2.3,-0.4)}{gray}{0.3}{0.3}{0}{(3.8,-2.5,-0.4)}

      \lenetparam{(4.2,-2,-0.4)}{blue!50}{1}{1}{0}{$S=1$,$F=2$,}{$K=6$,$P=0$,}{ $Param=0$}
      }
    \onslide<1->{
      \cuboid{(5.9,-2,1.8)}{pink!50}{0.8}{0.8}{0}
      \cuboid{(5.9,-2,1.6)}{pink!50}{0.8}{0.8}{0}
      \cuboid{(5.9,-2,1.4)}{pink!50}{0.8}{0.8}{0}
      \cuboid{(5.9,-2,1.2)}{pink!50}{0.8}{0.8}{0}
      \cuboid{(5.9,-2,1.0)}{pink!50}{0.8}{0.8}{0}
      \cuboid{(5.9,-2,0.8)}{pink!50}{0.8}{0.8}{0}
      \cuboid{(5.9,-2,0.6)}{pink!50}{0.8}{0.8}{0}
      \cuboid{(5.9,-2,0.4)}{pink!50}{0.8}{0.8}{0}
      \cuboid{(5.9,-2,0.2)}{pink!50}{0.8}{0.8}{0}
      \cuboid{(5.9,-2,0.0)}{pink!50}{0.8}{0.8}{0}
      \cuboid{(5.9,-2,-0.2)}{pink!50}{0.8}{0.8}{0}
      \cuboid{(5.9,-2,-0.4)}{pink!50}{0.8}{0.8}{0}
      \cuboid{(5.9,-2,-0.6)}{pink!50}{0.8}{0.8}{0}
      \cuboid{(5.9,-2,-0.8)}{pink!50}{0.8}{0.8}{0}
      \cuboid{(5.9,-2,-1)}{pink!50}{0.8}{0.8}{0}
      \cuboid{(5.9,-2,-1.2)}{pink!50}{0.8}{0.8}{0}
      \cuboidlabelmine{(5.9,-2,-1.2)}{pink!50}{0.8}{0.8}{0}{10}{10}{}
      \node at (5.5,-1.8,1.8) {\tiny{Convolution Layer 2}};

     \kernel{(3.8,-2.7,-0.4)}{gray}{0.2}{0.2}{0}{(5.8,-2.8,-0.4)}

     \lenetparam{(5.9,-2,-1.2)}{pink!50}{0.8}{0.8}{0}{$S=1$,$F=5$,}{$K=16$,$P=0$,}{ $Param=2400$}
     }
    \onslide<1->{
      \cuboid{(7.9,-2.7,2.4)}{blue!50}{0.5}{0.5}{0}
      \cuboid{(7.9,-2.7,2.2)}{blue!50}{0.5}{0.5}{0}
      \cuboid{(7.9,-2.7,2)}{blue!50}{0.5}{0.5}{0}
      \cuboid{(7.9,-2.7,1.8)}{blue!50}{0.5}{0.5}{0}
      \cuboid{(7.9,-2.7,1.6)}{blue!50}{0.5}{0.5}{0}
      \cuboid{(7.9,-2.7,1.4)}{blue!50}{0.5}{0.5}{0}
      \cuboid{(7.9,-2.7,1.2)}{blue!50}{0.5}{0.5}{0}
      \cuboid{(7.9,-2.7,1)}{blue!50}{0.5}{0.5}{0}
      \cuboid{(7.9,-2.7,0.8)}{blue!50}{0.5}{0.5}{0}
      \cuboid{(7.9,-2.7,0.6)}{blue!50}{0.5}{0.5}{0}
      \cuboid{(7.9,-2.7,0.4)}{blue!50}{0.5}{0.5}{0}
      \cuboid{(7.9,-2.7,0.2)}{blue!50}{0.5}{0.5}{0}
      \cuboid{(7.9,-2.7,-0.0)}{blue!50}{0.5}{0.5}{0}
      \cuboid{(7.9,-2.7,-0.2)}{blue!50}{0.5}{0.5}{0}
      \cuboid{(7.9,-2.7,-0.4)}{blue!50}{0.5}{0.5}{0}
      \cuboid{(7.9,-2.7,-0.6)}{blue!50}{0.5}{0.5}{0}
      \cuboidlabelmine{(7.9,-2.7,-0.6)}{blue!50}{0.5}{0.5}{0}{5}{5}{}
      \node at (7.5,-2.55,2.4) {\tiny{Pooling Layer 2}};


      \kernel{(6.1,-3,-0.4)}{gray}{0.2}{0.2}{0}{(7.8,-3.2,-0.4)}

      \lenetparam{(7.9,-2.7,-0.6)}{blue!50}{0.5}{0.5}{0}{$S=1$,$F=2$,}{$K=16$,$P=0$,}{$Param=0$ }
      }
    \onslide<1->{
      \cuboid{(9.5,-3,2.2)}{magenta!50}{0.5}{0}{2.2}
      \node at (9.3,-2.85,2.2) {\tiny{FC 1(120)}};
      \draw[black] (7.9,-2.7,2.4) -- (9,-3,2.2);
      \draw[black] (7.9,-2.7,-0.6) -- (9,-3,0);
      \lenetparamnew{(9.5,-3,2.2)}{magenta!50}{0.5}{0}{2.2}{$H=120$}{$Param$}{$=48120$}

      }
    \onslide<1->{
      \cuboid{(10.5,-3,2.1)}{magenta!50}{0.5}{0}{2}
      \node at (10.3,-2.85,2.1) {\tiny{FC 2(84)}};
      \draw[black] (9.5,-3,2.2) -- (10,-3,2.1);
      \draw[black] (9.5,-3,0) -- (10,-3,0.1);
      \lenetparamnew{(10.5,-3,2.1)}{magenta!50}{0.5}{0}{2}{$H=64$}{$Param$}{$=10164$}
      }
    \onslide<1->{
      \cuboid{(11.5,-3,2.0)}{magenta!50}{0.5}{0}{1.8}
      \node at (11.3,-2.85,2.0) {\tiny{Output(10)}};
      \draw[black] (10.5,-3,2.1) -- (11,-3,2.0);
      \draw[black] (10.5,-3,0.1) -- (11,-3,0.2);
      \lenetparamnew{(11.5,-3,2.0)}{magenta!50}{0.5}{0}{1.8}{}{$Param$}{$=850$}
      }
     
    \end{tikzpicture}