\usepackage{algorithm}
\usepackage{algorithmic}


\newcommand\Tstrut{\rule{0pt}{2.6ex}}         % = `top' strut
\newcommand\Bstrut{\rule[-0.9ex]{0pt}{0pt}}   % = `bottom' strut



\definecolor{azure}{rgb}{0.0, 0.5, 1.0}
\definecolor{airforceblue}{rgb}{0.36, 0.54, 0.66}
\definecolor{darkgreen}{rgb}{0.0, 0.2, 0.13}

\newtheorem{innercustomassumption}{Assumption}
\newenvironment{customassumption}[1]
  {\renewcommand\theinnercustomassumption{#1}\innercustomassumption}
  {\endinnercustomassumption}
  
% \newcommand\defines{\stackrel{\mathclap{\normalfont\mbox{\tiny def}}}{=}}
\newcommand\defines{\,\dot{=}\,}

\newcommand{\ntk}{\textsc{ntk}\xspace}
\newcommand{\map}{\textsc{map}\xspace}
\newcommand{\rmfvi}{\textsc{mfvi-radial}\xspace}
\newcommand{\tmfvi}{\textsc{mfvi-tempered}\xspace}
\newcommand{\swag}{\textsc{swag}\xspace}
\newcommand{\mcd}{\textsc{mc dropout}\xspace}
\newcommand{\vcl}{\textsc{vcl}\xspace}


\newcommand{\vbar}{\,|\,}


\newcommand{\jac}{\mathcal{J}}
\newcommand{\DD}{\mathbb{D}}

\newcommand{\bepsilon}{\boldsymbol{\epsilon}}
\newcommand{\bpsi}{\boldsymbol{\psi}}
\newcommand{\biota}{\boldsymbol{\iota}}
\newcommand{\bTheta}{\boldsymbol{\Theta}}
\newcommand{\bPsi}{\boldsymbol{\Psi}}

\newcommand{\qtilde}{\smash{\tilde{q}}}
\newcommand{\ptilde}{\smash{\tilde{p}}}
\newcommand{\flin}{\smash{\tilde{f}}}


\newcommand{\pms}[1]{\ensuremath{{\scriptstyle\pm #1}}}


\usepackage{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{pgf}
\usetikzlibrary{calc}
\usetikzlibrary{positioning}
\usetikzlibrary{angles,quotes}
\usetikzlibrary{backgrounds}
\usetikzlibrary{fit}
\usetikzlibrary{arrows}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{shapes.symbols}
\usetikzlibrary{shadings}
\usetikzlibrary{shapes}
\usetikzlibrary{fadings}
\usetikzlibrary{bayesnet}
\usetikzlibrary{matrix}
\usetikzlibrary{plotmarks}
\usetikzlibrary{intersections}
\usetikzlibrary{pgfplots.fillbetween}
\pgfplotsset{compat=1.14}
%
\usepackage{siunitx}

\usepackage{colortbl}
\definecolor{mediumgray}{gray}{0.7}
\definecolor{lightgray}{gray}{0.85}
\definecolor{lightlightgray}{gray}{0.9}
\definecolor{C1}{HTML}{1F77B4}
\definecolor{C2}{HTML}{FF7F0E}
\definecolor{C3}{HTML}{2CA02C}
\definecolor{C4}{HTML}{D62728}
\definecolor{C5}{HTML}{9467BD}
\colorlet{C1light}{C1!70!white}
\colorlet{C2light}{C2!70!white}
\colorlet{C3light}{C3!70!white}
\colorlet{C4light}{C4!70!white}
\colorlet{C5light}{C5!70!white}
\colorlet{C1lighter}{C1!50!white}
\colorlet{C2lighter}{C2!50!white}
\colorlet{C3lighter}{C3!50!white}
\colorlet{C4lighter}{C4!50!white}
\colorlet{C5lighter}{C5!50!white}
\colorlet{C1vlight}{C1!20!white}
\colorlet{C2vlight}{C2!20!white}
\colorlet{C3vlight}{C3!20!white}
\colorlet{C4vlight}{C4!20!white}
\colorlet{C5vlight}{C5!20!white}
\colorlet{linkcolor}{violet}
% \colorlet{citecolor}{RedOrange}  %
% \colorlet{urlcolor}{Aquamarine}


%% NEW FOR THIS PAPER
% \newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\newcommand{\dd}{\mathrm{d}}
\newcommand{\bs}{\boldsymbol}
\newtheorem{thm}{Theorem}
\newtheorem{cor}{Corollary}
\newtheorem{lem}{Lemma}
\newtheorem{defi}{Definition}
\newtheorem{prop}{Proposition}
\newtheorem{approximation}{Approximation}

\newcommand{\fsmap}{\textsc{fs-map}\xspace}

\crefname{enumi}{}{}
\crefname{enumii}{}{}

%----Helper code for dealing with external references----
% (by cyberSingularity at http://tex.stackexchange.com/a/69832/226)

\usepackage{xr}

\makeatletter
\newcommand*{\addFileDependency}[1]{% argument=file name and extension
\typeout{(#1)}% latexmk will find this if $recorder=0
% however, in that case, it will ignore #1 if it is a .aux or 
% .pdf file etc and it exists! If it doesn't exist, it will appear 
% in the list of dependents regardless)
%
% Write the following if you want it to appear in \listfiles 
% --- although not really necessary and latexmk doesn't use this
%
\@addtofilelist{#1}
%
% latexmk will find this message if #1 doesn't exist (yet)
\IfFileExists{#1}{}{\typeout{No file #1.}}
}\makeatother

\newcommand*{\myexternaldocument}[1]{%
\externaldocument{#1}%
\addFileDependency{#1.tex}%
\addFileDependency{#1.aux}%
}
%------------End of helper code--------------

