I have a figure that contains four subfigures with captions and I want to cite the subfigure. I tried a lot but it didn't work out. Below is not working
\usepackage{subfigure}
Some text \subref{fig:multi-scale} Figure \ref{fig:overall_figure}
COMPLETE LATEX CODE
%%%% ijcai21.tex
\typeout{IJCAI--21 Instructions for Authors}
% These are the instructions for authors for IJCAI-21.
\documentclass{IEEEtran}
% Use the postscript times font!
\usepackage{times}
\usepackage{soul}
\usepackage{url}
%\usepackage[hidelinks]
%\usepackage[utf8]{inputenc}
%\usepackage[small]{caption}
%\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{booktabs}
\usepackage{algorithm}
\usepackage{algorithmic}
\urlstyle{same}
\usepackage[table,xcdraw]{xcolor}
\usepackage{comment}
\usepackage{multirow}
\usepackage{amsfonts}
\usepackage{makecell}
\usepackage[colorlinks=true,linkcolor=blue]{hyperref}%
%\usepackage{subfigure}
%\usepackage{caption}
%\usepackage{subfig}
\usepackage{graphicx}
\usepackage[caption=false]{subfig}
%\usepackage{cleveref}
% You need a newsubfloat element to use subcaption
\definecolor{mygray}{gray}{.92}
% thickline==============================================================================
\makeatletter
\def\thickhline{%
\noalign{\ifnum0=}\fi\hrule \@height \thickarrayrulewidth \futurelet \reserved@a\@xthickhline} \def\@xthickhline{\ifx\reserved@a\thickhline \vskip\doublerulesep \vskip-\thickarrayrulewidth \fi \ifnum0={\fi}}
\makeatother
\newlength{\thickarrayrulewidth}
\setlength{\thickarrayrulewidth}{2\arrayrulewidth}
%======================================================================================
\title{Deep Learning}
\author{
Anonymous Author
\thanks{A. A is with the Department
of Electrical and Computer Engineering, Georgia Institute of Technology, Atlanta,
GA, 30332}% <-this % stops a space
\thanks{Anonymous and Anonymous are with Anonymous University.}% <-this % stops a space
\thanks{Manuscript Submission April 19, 2022; revised August 00, 0000.}}
\begin{document}
\maketitle
\begin{abstract}
xxx
\end{abstract}
%
\begin{figure}[!t]
\subfloat[Deep Residual Auto-Encoder]{\includegraphics[width=3cm]{cat.jpg}}
\label{fig:deep_residual}
\vspace{10pt}
\subfloat[Multi-scale network]{\includegraphics[width=3cm]{cat.jpg}}
\label{fig:multi-scale}
\caption{Oversimplified view of single iterative networks for image compression}
\label{fig:overall_figure}
\end{figure}
Cross references: \subref{fig:deep_residual}
and \subref{fig:multi-scale} of \ref{fig:overall_figure}
\small
\bibliographystyle{IEEEtran}
\bibliography{ijcai21}
\end{document}


\documentclassto\end{document}. – Willie Wong May 31 '22 at 14:55\protect\cite{...}. Be advised that the subfigure package is obsolete. I believe that subcaption is now IEEEtran compatible. – John Kormylo May 31 '22 at 15:23