Do not tape gradient for models without random effects