optimization: don't record 'constants' (values for which we don't want the gradient) to
the tape.