templated scalar and propto in generated log_prob