Transpilation support¶
This page is measured, not written
python -m tests.transpile.support_matrix calls
quivers.transpile.transpile once per (program, backend)
pair and writes this file from the outcomes. Every refusal
quoted below is the runtime's own message, copied verbatim
from the UnsupportedConstruct it raised. A drift test
regenerates the page and fails when the result differs from
what is committed.
transpile(module, target=...) has 11 registered backends. Given a program it either returns target source bytes or raises UnsupportedConstruct naming the constructs it cannot represent. This page records which of the two happens, for the 50 programs of the examples gallery and for 160 construct fixtures, each isolating a single QVR surface construct.
Support is thus stated as a refusal boundary rather than as a feature list. A construct no backend accepts is a limit of the export surface itself, and reaching any target means writing the model differently; a construct one backend alone refuses is a limit of that target, and another target may take the program unchanged. Sections 2 and 3 separate the two, since the remedies differ.
Refusals are grouped by construct, not by program: the heading of each group is the identifier prefix of the reported UnsupportedConstruct.kinds, which is what a reader asking whether a feature of their own model is supported wants to match on.
QIEC uses the same measured renderer boundary as probabilistic programs. Its complete checked module is retained as typed IRQiecModule nodes. Pyro, NumPyro, PyMC, Edward2, Turing, Gen, WebPPL, and Church emit named QIEC functions through a shared stable-ID runtime ABI. Stan, BUGS, and JAGS emit the closed, monomorphic, effect-free scalar Return/Bind fragment and report unsupported forms as qiec:capability:<feature>:<computation>.
What this page does not cover is whether a rendered program's density agrees with QVR's own. That is the subject of the transpilation-correctness contract, which states the evidence available for the programs that do render, and of the transpilation architecture, which describes how a program reaches a target at all.
Reading the measurements¶
Transpilation translates a checked QVR program into source for another probabilistic programming system. A yes in the matrix means source bytes were produced; it does not mean that system executed them, that inference converged, or that a density-equivalence test was run for this cell. Those are separate checks.
Start with a gallery model similar to yours, then inspect the construct rows for the features you need. A fixture isolates one feature; your own program can combine several. Run the target check and transpilation on that complete program before relying on a measured neighboring cell.
For instance, qiec:capability:search:lp_parser.run says that the target cannot preserve the search capability required by the named parser entry. The identifier points to a missing execution feature, not a statistical failure of the parser. A refusal shared by every backend requires a supported reformulation or execution in Quivers itself.
Coverage at a glance¶
| Backend | Gallery programs | Constructs |
|---|---|---|
| bugs | 15 / 50 | 73 / 160 |
| church | 17 / 50 | 95 / 160 |
| edward2 | 24 / 50 | 115 / 160 |
| gen | 22 / 50 | 101 / 160 |
| jags | 21 / 50 | 83 / 160 |
| numpyro | 25 / 50 | 129 / 160 |
| pymc | 24 / 50 | 111 / 160 |
| pyro | 25 / 50 | 132 / 160 |
| stan | 24 / 50 | 101 / 160 |
| turing | 22 / 50 | 105 / 160 |
| webppl | 24 / 50 | 106 / 160 |
Each backend links to its transpilation-correctness page, which documents the structure it emits, the parameter conversions it applies, and the evidence exercised for it.
1. Can this backend take my program?¶
yes means transpile returned bytes; no means it raised UnsupportedConstruct. Sections 2 and 3 give the reason behind every no.
1.1 Gallery programs¶
| Program | bugs | church | edward2 | gen | jags | numpyro | pymc | pyro | stan | turing | webppl |
|---|---|---|---|---|---|---|---|---|---|---|---|
ar1 |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
bayesian_regression |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
bayesian_semantics_case_study |
no | no | no | no | no | no | no | no | no | no | no |
beta_binomial_ab_test |
no | no | yes | yes | yes | yes | yes | yes | yes | yes | yes |
beta_regression |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
bidirectional_rnn_lm |
no | no | no | no | no | no | no | no | no | no | no |
bnn |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
ccg |
no | no | no | no | no | no | no | no | no | no | no |
changepoint |
no | no | no | no | no | yes | no | yes | yes | no | yes |
continuous_hmm |
no | no | no | no | no | no | no | no | no | no | no |
custom_rules |
no | no | no | no | no | no | no | no | no | no | no |
deep_markov |
no | no | no | no | no | no | no | no | no | no | no |
factor_analysis |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
finite_state_dirichlet_allocation |
no | no | no | no | no | no | no | no | no | no | no |
gamma_regression |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
gru_lm |
no | no | no | no | no | no | no | no | no | no | no |
half_student_t_hierarchical |
yes | no | yes | yes | yes | yes | yes | yes | yes | yes | yes |
hmm |
no | no | no | no | no | no | no | no | no | no | no |
horseshoe_regression |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
irt_2pl |
no | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
kumaraswamy_bounded_outcome |
no | no | yes | yes | yes | yes | yes | yes | yes | yes | yes |
lda |
no | yes | yes | no | no | yes | yes | yes | yes | no | yes |
linear_gaussian_ssm |
no | no | no | no | no | no | no | no | no | no | no |
lkj_cholesky_correlation |
no | no | yes | yes | no | yes | yes | yes | yes | yes | yes |
logistic_noise_regression |
yes | no | yes | yes | yes | yes | yes | yes | yes | yes | yes |
lstm_lm |
no | no | no | no | no | no | no | no | no | no | no |
mixture_model |
no | no | yes | yes | yes | yes | yes | yes | yes | yes | yes |
montague_nli |
no | no | no | no | no | no | no | no | no | no | no |
multimodal_tlg |
no | no | no | no | no | no | no | no | no | no | no |
negbin_regression |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
parametric_pooling |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
pcfg |
no | no | no | no | no | no | no | no | no | no | no |
pmf |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
ppca |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
quantifier_scope |
no | no | no | no | no | no | no | no | no | no | no |
referent_judgments |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
schema_chart_parser |
no | no | no | no | no | no | no | no | no | no | no |
seq2seq |
no | no | yes | no | no | yes | yes | yes | no | no | no |
stacked_rnn_lm |
no | no | no | no | no | no | no | no | no | no | no |
stochastic_volatility |
no | no | no | no | no | no | no | no | no | no | no |
survival_weibull |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
tensor_contraction |
no | no | no | no | no | no | no | no | no | no | no |
term_autoencoder |
no | no | no | no | no | no | no | no | no | no | no |
transformer_lm |
no | no | no | no | no | no | no | no | no | no | no |
tree_categorical |
no | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
type_logical |
no | no | no | no | no | no | no | no | no | no | no |
vae |
no | no | no | no | no | no | no | no | no | no | no |
vanilla_rnn_lm |
no | no | no | no | no | no | no | no | no | no | no |
wmcfg |
no | no | no | no | no | no | no | no | no | no | no |
zip_regression |
no | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
1.2 Constructs¶
One minimal program per surface construct, so a no here isolates the construct rather than the model that used it.
1.2.1 Declarations¶
| Program | bugs | church | edward2 | gen | jags | numpyro | pymc | pyro | stan | turing | webppl |
|---|---|---|---|---|---|---|---|---|---|---|---|
statements/bundle_decl |
yes | yes | yes | yes | yes | yes | yes | yes | no | yes | yes |
statements/category_decl |
yes | yes | yes | yes | yes | yes | yes | yes | no | yes | yes |
statements/composition_decl |
yes | yes | yes | yes | yes | yes | yes | yes | no | yes | yes |
statements/contraction_decl |
yes | yes | yes | yes | yes | yes | yes | yes | no | yes | yes |
statements/decoder_decl |
no | no | no | no | no | no | no | no | no | no | no |
statements/deduction_decl |
yes | yes | yes | yes | yes | yes | yes | yes | no | yes | yes |
statements/encoder_decl |
no | no | no | no | no | no | no | no | no | no | no |
statements/export_decl |
yes | yes | yes | yes | yes | yes | yes | yes | no | yes | yes |
statements/let_decl |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
statements/loss_decl |
no | no | no | no | no | no | no | no | no | no | no |
statements/morphism_decl_init_family |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
statements/object_decl_finset |
yes | yes | yes | yes | yes | yes | yes | yes | no | yes | yes |
statements/object_decl_real |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
statements/program_decl_scalar |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
statements/qiec_computation_decl |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
statements/qiec_effectful_computation |
no | yes | yes | yes | no | yes | yes | yes | no | yes | yes |
statements/qiec_weight_primitives |
no | yes | yes | yes | no | yes | yes | yes | no | yes | yes |
statements/rule_decl |
yes | yes | yes | yes | yes | yes | yes | yes | no | yes | yes |
statements/schema_decl |
yes | yes | yes | yes | yes | yes | yes | yes | no | yes | yes |
statements/syntax_decl |
yes | yes | yes | yes | yes | yes | yes | yes | no | yes | yes |
1.2.2 Program steps¶
| Program | bugs | church | edward2 | gen | jags | numpyro | pymc | pyro | stan | turing | webppl |
|---|---|---|---|---|---|---|---|---|---|---|---|
steps/call_lowered_pure |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/call_step |
no | yes | yes | yes | no | yes | yes | yes | no | yes | yes |
steps/function_linear |
no | no | no | no | no | no | no | no | no | no | no |
steps/function_positions |
no | no | no | no | no | no | no | no | no | no | no |
steps/function_self_attention |
no | no | no | no | no | no | no | no | no | no | no |
steps/kernel_latent_weights |
no | no | no | no | no | no | no | no | no | no | no |
steps/let_step |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/marginalize_bernoulli_logits |
no | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/marginalize_body_let_chain |
no | no | no | no | no | yes | no | yes | yes | no | yes |
steps/marginalize_body_plated_let |
no | no | no | no | no | yes | no | yes | yes | no | yes |
steps/marginalize_factor_let_rows |
no | no | no | no | no | yes | no | yes | yes | no | yes |
steps/marginalize_gathered_prior_data |
no | yes | yes | no | no | yes | yes | yes | yes | no | yes |
steps/marginalize_latent_gather |
no | no | no | no | no | yes | no | yes | yes | no | yes |
steps/marginalize_latent_value |
no | no | no | no | no | yes | no | yes | yes | no | yes |
steps/marginalize_let_probs |
no | no | no | no | no | yes | no | yes | yes | no | yes |
steps/marginalize_let_vector_probs |
no | no | no | no | no | yes | no | yes | yes | no | yes |
steps/marginalize_per_group_prior_shared_class |
no | yes | yes | yes | no | yes | yes | yes | yes | yes | yes |
steps/marginalize_shared_prior_scalar_let |
no | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/marginalize_step |
no | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/observe_alr_reference |
no | no | no | no | no | no | no | no | no | no | no |
steps/observe_bernoulli_logits |
no | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/observe_bernoulli_logits_rows |
no | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/observe_bernstein_hazard_log_rate |
no | no | no | no | no | no | no | no | no | no | no |
steps/observe_binomial_logits |
no | no | yes | no | no | yes | yes | yes | yes | yes | no |
steps/observe_class_code |
no | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/observe_com_poisson_log_rate |
no | no | no | no | no | no | no | no | no | no | no |
steps/observe_continuous_bernoulli_logits |
no | no | no | no | no | no | no | no | no | no | no |
steps/observe_dirichlet_multinomial |
no | no | no | no | no | no | no | no | no | no | no |
steps/observe_gather_event_vector |
no | yes | yes | yes | no | yes | yes | yes | no | yes | yes |
steps/observe_gather_matrix_row |
no | yes | yes | yes | no | yes | yes | yes | no | no | no |
steps/observe_geometric_logits |
no | no | yes | no | no | yes | no | yes | no | no | no |
steps/observe_logits_data |
no | no | yes | no | no | yes | no | yes | no | no | no |
steps/observe_matrix_normal_col_factor |
no | no | yes | yes | no | yes | no | yes | yes | yes | yes |
steps/observe_matrix_normal_row_factor |
no | no | yes | yes | no | yes | no | yes | yes | yes | yes |
steps/observe_multinomial_logits |
no | no | no | no | no | no | no | no | no | no | no |
steps/observe_multivariate_student_covariance |
no | no | no | no | no | no | no | no | no | no | no |
steps/observe_multivariate_student_factor |
no | no | no | no | no | no | no | no | no | no | no |
steps/observe_multivariate_student_precision |
no | no | no | no | no | no | no | no | no | no | no |
steps/observe_mvn_host_factor |
no | no | no | no | no | yes | yes | yes | yes | no | no |
steps/observe_mvn_lkj_factor |
no | no | no | no | no | yes | yes | yes | yes | no | no |
steps/observe_negative_binomial_logits |
no | no | yes | no | no | no | no | yes | no | no | no |
steps/observe_onehot_categorical_logits |
no | no | yes | no | no | yes | no | yes | no | no | no |
steps/observe_ordered_probit |
no | no | no | no | no | yes | yes | yes | yes | no | no |
steps/observe_ordinal_code |
no | no | no | no | no | yes | yes | yes | yes | no | no |
steps/observe_over_vector_location |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/observe_per_row_datum_scale |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/observe_per_row_gamma_rate |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/observe_plated_vector_location |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/observe_probs_data |
no | no | yes | no | no | yes | no | yes | no | no | no |
steps/observe_relaxed_bernoulli_logits |
no | no | yes | no | no | yes | no | yes | no | no | no |
steps/observe_relaxed_onehot_logits |
no | no | yes | no | no | no | no | yes | no | no | no |
steps/observe_shared_probs_vector |
no | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/observe_step |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/observe_vector_location_latent |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/observe_vector_location_let |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/observe_vector_parameter_data |
no | no | no | no | no | yes | no | yes | no | no | no |
steps/observe_vector_scale_rate |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/observe_weighted |
no | no | no | no | no | no | no | no | no | no | no |
steps/return_step |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/sample_bernoulli_logits |
no | yes | yes | yes | yes | yes | yes | yes | no | yes | yes |
steps/sample_class_code |
yes | yes | yes | yes | yes | yes | yes | yes | no | yes | yes |
steps/sample_dirichlet_sampled_concentration |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/sample_inverse_wishart_factor |
no | no | no | no | no | yes | no | yes | yes | yes | no |
steps/sample_matrix_normal |
no | no | yes | yes | no | yes | yes | yes | yes | yes | yes |
steps/sample_mvn_covariance |
no | no | yes | yes | no | yes | yes | yes | yes | yes | yes |
steps/sample_mvn_factor |
no | no | yes | yes | no | yes | yes | yes | yes | yes | yes |
steps/sample_mvn_host_loc |
no | no | yes | yes | no | yes | yes | yes | yes | yes | yes |
steps/sample_mvn_precision |
no | no | yes | yes | no | yes | yes | yes | yes | yes | yes |
steps/sample_mvn_sampled_loc |
no | no | yes | yes | no | yes | yes | yes | yes | yes | yes |
steps/sample_onehot_probs |
no | no | yes | no | no | yes | no | yes | no | no | no |
steps/sample_onehot_sampled_probs |
no | no | yes | no | no | yes | no | yes | no | no | no |
steps/sample_relaxed_onehot_probs |
no | no | yes | no | no | no | no | yes | no | no | no |
steps/sample_step |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/sample_vector_location |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
steps/sample_wishart_covariance |
no | no | no | no | no | yes | yes | yes | yes | yes | no |
steps/sample_wishart_factor |
no | no | no | no | no | yes | yes | yes | yes | yes | no |
steps/sample_wishart_host_factor |
no | no | no | no | no | yes | yes | yes | yes | no | no |
steps/sample_wishart_precision |
no | no | no | no | no | yes | yes | yes | yes | yes | no |
steps/scan_bidirectional |
no | no | no | no | no | no | no | no | no | no | no |
steps/scan_cell_reads_matrix |
no | no | no | no | no | no | no | no | no | no | no |
steps/scan_cell_reads_matrix_data |
no | no | no | no | no | no | no | no | no | no | no |
steps/scan_cell_reads_vector |
no | no | no | no | no | no | no | no | no | no | no |
steps/scan_initial_binding |
no | no | no | no | no | no | no | no | no | no | no |
steps/scan_marginal_chain |
no | no | no | no | no | no | no | no | no | no | no |
steps/scan_outputs_all |
no | no | no | no | no | no | no | no | no | no | no |
steps/scan_reverse |
no | no | no | no | no | no | no | no | no | no | no |
steps/score_step |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
1.2.3 Let-expressions¶
| Program | bugs | church | edward2 | gen | jags | numpyro | pymc | pyro | stan | turing | webppl |
|---|---|---|---|---|---|---|---|---|---|---|---|
let_expressions/let_binary_min_max |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_concat_slice |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_concat_slice_matrix |
no | yes | yes | yes | no | yes | yes | yes | yes | yes | yes |
let_expressions/let_expr_binop |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_expr_call |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_expr_factor |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_expr_index |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_expr_lambda |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_expr_list |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_expr_literal |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_expr_method_call |
no | no | no | no | no | no | no | no | no | no | no |
let_expressions/let_expr_string |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_expr_unary |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_expr_var |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_factor_index_arithmetic |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_fold_shared_accumulator |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_function_identity |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_host_matrix_row |
no | yes | yes | yes | no | yes | yes | yes | yes | yes | yes |
let_expressions/let_int_division |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_observed_read |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_pairwise_gather |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_plated_list_operand |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_pow |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_real_division |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_real_literals |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_reduce_event |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_reduce_matrix |
no | yes | yes | yes | no | yes | yes | yes | yes | yes | yes |
let_expressions/let_reduce_nested |
no | no | yes | no | no | yes | yes | yes | no | no | yes |
let_expressions/let_reduce_plate |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_row_gather |
no | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_row_gather_drawn |
no | yes | yes | yes | no | yes | yes | yes | no | yes | yes |
let_expressions/let_row_gather_sampled |
no | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_scalar_from_plate |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_score_host_weight |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_select |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_slice_gather |
yes | yes | yes | no | yes | yes | yes | yes | yes | no | no |
let_expressions/let_template_substitution |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
let_expressions/let_tensor_builtins |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
1.2.4 Option values¶
| Program | bugs | church | edward2 | gen | jags | numpyro | pymc | pyro | stan | turing | webppl |
|---|---|---|---|---|---|---|---|---|---|---|---|
options/option_call |
no | no | no | no | no | no | no | no | no | no | no |
options/option_flag |
yes | yes | yes | yes | yes | yes | yes | yes | no | yes | yes |
options/option_list |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
options/option_name |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
options/option_number |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
options/option_string |
no | no | no | no | no | no | no | no | no | no | no |
1.2.5 Axis specifications¶
| Program | bugs | church | edward2 | gen | jags | numpyro | pymc | pyro | stan | turing | webppl |
|---|---|---|---|---|---|---|---|---|---|---|---|
axes/gp_event_axis |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
axes/matrix_kronecker |
no | yes | yes | yes | no | yes | yes | yes | yes | yes | yes |
axes/observe_independent_array |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | no |
axes/scalar_iid_plate |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
axes/scalar_implicit |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
axes/scalar_independent_array |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | no |
axes/vector_event_axis |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
axes/vector_independent_array |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | no |
axes/vector_over_iid |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
2. What no backend supports¶
Each construct below is refused by all 11 backends, so it marks the boundary of what QVR exports at all rather than a gap in one target. Reaching a target means writing the model differently, not switching language.
composition_decl, contraction_decl¶
Refused for: tensor_contraction.
Reported kinds:
Each backend words it differently; this is bugs's. bugs on tensor_contraction reports:
bugs cannot transpile this program:
- the module's `composition_decl` declaration declares a composition rule: the algebra (its `tensor_op`, `join`, `unit` and `zero`) that says how morphism scores combine when morphisms are composed. It is structure over the whole module, not a random variable and not a step. A probabilistic-programming target has statements for declaring data and parameters, drawing a variable from a distribution, and adding a term to the log density; BUGS has none for declaring the algebra a category composes in. This module also declares no `program`, so there is no probabilistic program here to transpile in its place. A composition rule has no counterpart to emit. Add a `program ... :` block to the module and the rule is carried as module metadata while that program is transpiled; to run the rule itself, evaluate the module in quivers, which is where composition rules have meaning.
- the module's `contraction_decl` declaration declares a contraction: a morphism built by folding several input morphisms together over their shared axes, with the product and sum of the fold taken from the `rule=` composition rule it names. Its meaning lives entirely in that algebra. A probabilistic-programming target has statements for declaring data and parameters, drawing a variable from a distribution, and adding a term to the log density; BUGS has none for a morphism defined by contracting other morphisms over an algebra's fold. This module also declares no `program`, so there is no probabilistic program here to transpile in its place. A contraction has no counterpart to emit. Write the quantities you want scored as explicit `sample` / `observe` steps of a `program ... :` block, or evaluate the contraction in quivers and pass its result in as data.
deduction_decl¶
Refused for: pcfg.
Reported kinds:
Each backend words it differently; this is bugs's. bugs on pcfg reports:
the module's `deduction_decl` declaration declares a deductive system: an alphabet, a rule set, a lexicon and a semiring, whose meaning is a chart over the proofs the rules license. A probabilistic-programming target has statements for declaring data and parameters, drawing a variable from a distribution, and adding a term to the log density; BUGS has none for a deductive system, a chart over proofs, or a lexicon. This module also declares no `program`, so there is no probabilistic program here to transpile in its place. A deductive system has no counterpart to emit. Run the deduction in quivers and transpile a `program` over its chart weights, or pass the parse in as observed data.
loss_decl¶
Refused for: options/option_call, options/option_string, statements/loss_decl.
Reported kinds:
Each backend words it differently; this is bugs's. bugs on options/option_call reports:
the module's `loss_decl` declaration declares a training objective attached to a program, a deduction, an encoder or a decoder. A loss is something an optimiser minimises, not a term of the model's density. A probabilistic-programming target has statements for declaring data and parameters, drawing a variable from a distribution, and adding a term to the log density; BUGS has none for an optimisation objective separate from the joint it scores. If the term belongs in the density, write it as a `score` step inside the program; if it is an optimiser objective, keep it in quivers, which is where training happens.
param-source:linear¶
Refused for: steps/function_linear.
Reported kinds:
param-source:linear: the learned function `shift` (line 10, through shift) applies that network, whose weights are not data a target is given either, so no target can compute the value it returns. Only a `param_source=identity` function, which has no weights, transpiles.
Every backend reports it in the same words. bugs on steps/function_linear reports:
a morphism draws its parameters from a `linear` network, whose weights are not sites the program declares: the learned function `shift` (line 10, through shift) applies that network, whose weights are not data a target is given either, so no target can compute the value it returns. Only a `param_source=identity` function, which has no weights, transpiles.
param-source:linear:latent¶
Refused for: steps/kernel_latent_weights.
Reported kinds:
param-source:linear:latent: the step at line 11 reaches `net` through net, and `net` declares `weights=latent`. Write the layers as `factor` comprehensions over sampled weight matrices to transpile the model.
Every backend reports it in the same words. bugs on steps/kernel_latent_weights reports:
a morphism draws the weights of its `linear` network as latent sites, and no target has a form for the network's layers applied to drawn weights: the step at line 11 reaches `net` through net, and `net` declares `weights=latent`. Write the layers as `factor` comprehensions over sampled weight matrices to transpile the model.
param-source:mlp¶
Refused for: vae.
Reported kinds:
param-source:mlp: the step at line 42 draws from `decoder`, and since the 'mlp' network's weights appear in neither the wire form nor the sample sites, no target can reconstruct the mean `decoder` computes there. Express the network as explicit sampled weights and a deterministic forward pass, or write the step as a `sample` / `observe` against a closed-form family.
Every backend reports it in the same words. bugs on vae reports:
a morphism draws its parameters from a `mlp` network, whose weights are not sites the program declares: the step at line 42 draws from `decoder`, and since the 'mlp' network's weights appear in neither the wire form nor the sample sites, no target can reconstruct the mean `decoder` computes there. Express the network as explicit sampled weights and a deterministic forward pass, or write the step as a `sample` / `observe` against a closed-form family.
param-source:positions¶
Refused for: steps/function_positions.
Reported kinds:
param-source:positions: the learned function `pos` (line 9, through pos) applies that network, whose weights are not data a target is given either, so no target can compute the value it returns. Only a `param_source=identity` function, which has no weights, transpiles.
Every backend reports it in the same words. bugs on steps/function_positions reports:
a morphism draws its parameters from a `positions` network, whose weights are not sites the program declares: the learned function `pos` (line 9, through pos) applies that network, whose weights are not data a target is given either, so no target can compute the value it returns. Only a `param_source=identity` function, which has no weights, transpiles.
param-source:self_attention¶
Refused for: steps/function_self_attention.
Reported kinds:
param-source:self_attention: the learned function `attn` (line 9, through attn) applies that network, whose weights are not data a target is given either, so no target can compute the value it returns. Only a `param_source=identity` function, which has no weights, transpiles.
Every backend reports it in the same words. bugs on steps/function_self_attention reports:
a morphism draws its parameters from a `self_attention` network, whose weights are not sites the program declares: the learned function `attn` (line 9, through attn) applies that network, whose weights are not data a target is given either, so no target can compute the value it returns. Only a `param_source=identity` function, which has no weights, transpiles.
qiec:capability:neural-attachment:bayesian_semantics_case_study.logical_forms:Dec, qiec:capability:neural-attachment:bayesian_semantics_case_study.logical_forms:Dec.nll, qiec:capability:neural-attachment:bayesian_semantics_case_study.logical_forms:Enc, qiec:capability:neural-attachment:bayesian_semantics_case_study.logical_forms:reconstruct, qiec:capability:search:bayesian_semantics_case_study.grammar:SemanticParser.run¶
Refused for: bayesian_semantics_case_study.
Reported kinds:
qiec:capability:neural-attachment:bayesian_semantics_case_study.logical_forms:Dec
qiec:capability:neural-attachment:bayesian_semantics_case_study.logical_forms:Dec.nll
qiec:capability:neural-attachment:bayesian_semantics_case_study.logical_forms:Enc
qiec:capability:neural-attachment:bayesian_semantics_case_study.logical_forms:reconstruct
qiec:capability:search:bayesian_semantics_case_study.grammar:SemanticParser.run
Each backend words it differently; this is bugs's. bugs on bayesian_semantics_case_study reports:
bugs cannot transpile this program:
- QIEC computation `bayesian_semantics_case_study.logical_forms:Dec` requires the `neural-attachment` QIEC capability, but BUGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
- QIEC computation `bayesian_semantics_case_study.logical_forms:Dec.nll` requires the `neural-attachment` QIEC capability, but BUGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
- QIEC computation `bayesian_semantics_case_study.logical_forms:Enc` requires the `neural-attachment` QIEC capability, but BUGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
- QIEC computation `bayesian_semantics_case_study.logical_forms:reconstruct` requires the `neural-attachment` QIEC capability, but BUGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
- QIEC computation `bayesian_semantics_case_study.grammar:SemanticParser.run` is a deduction's entry, which enumerates its derivations through a search handler that resumes once per alternative, and BUGS has no runtime for that search. Run the deduction on the reference machine with `run_deduction`, or keep the program's chart out of the transpiled model.
qiec:capability:neural-attachment:dec, qiec:capability:neural-attachment:dec.nll, qiec:capability:neural-attachment:enc¶
Refused for: statements/decoder_decl.
Reported kinds:
qiec:capability:neural-attachment:dec
qiec:capability:neural-attachment:dec.nll
qiec:capability:neural-attachment:enc
Each backend words it differently; this is bugs's. bugs on statements/decoder_decl reports:
bugs cannot transpile this program:
- QIEC computation `dec` requires the `neural-attachment` QIEC capability, but BUGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
- QIEC computation `dec.nll` requires the `neural-attachment` QIEC capability, but BUGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
- QIEC computation `enc` requires the `neural-attachment` QIEC capability, but BUGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
qiec:capability:neural-attachment:enc¶
Refused for: statements/encoder_decl.
Reported kinds:
Each backend words it differently; this is bugs's. bugs on statements/encoder_decl reports:
QIEC computation `enc` requires the `neural-attachment` QIEC capability, but BUGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
qiec:capability:neural-attachment:reconstruct¶
Refused for: term_autoencoder.
Reported kinds:
Each backend words it differently; this is bugs's. bugs on term_autoencoder reports:
QIEC computation `reconstruct` requires the `neural-attachment` QIEC capability, but BUGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
qiec:capability:search:AB.run¶
Refused for: custom_rules.
Reported kinds:
Each backend words it differently; this is bugs's. bugs on custom_rules reports:
QIEC computation `AB.run` is a deduction's entry, which enumerates its derivations through a search handler that resumes once per alternative, and BUGS has no runtime for that search. Run the deduction on the reference machine with `run_deduction`, or keep the program's chart out of the transpiled model.
qiec:capability:search:CCG.run¶
Refused for: ccg.
Reported kinds:
Each backend words it differently; this is bugs's. bugs on ccg reports:
QIEC computation `CCG.run` is a deduction's entry, which enumerates its derivations through a search handler that resumes once per alternative, and BUGS has no runtime for that search. Run the deduction on the reference machine with `run_deduction`, or keep the program's chart out of the transpiled model.
qiec:capability:search:Lambek.run¶
Refused for: type_logical.
Reported kinds:
Each backend words it differently; this is bugs's. bugs on type_logical reports:
QIEC computation `Lambek.run` is a deduction's entry, which enumerates its derivations through a search handler that resumes once per alternative, and BUGS has no runtime for that search. Run the deduction on the reference machine with `run_deduction`, or keep the program's chart out of the transpiled model.
qiec:capability:search:MMTLG.run¶
Refused for: multimodal_tlg.
Reported kinds:
Each backend words it differently; this is bugs's. bugs on multimodal_tlg reports:
QIEC computation `MMTLG.run` is a deduction's entry, which enumerates its derivations through a search handler that resumes once per alternative, and BUGS has no runtime for that search. Run the deduction on the reference machine with `run_deduction`, or keep the program's chart out of the transpiled model.
qiec:capability:search:Montague.run¶
Refused for: montague_nli.
Reported kinds:
Each backend words it differently; this is bugs's. bugs on montague_nli reports:
QIEC computation `Montague.run` is a deduction's entry, which enumerates its derivations through a search handler that resumes once per alternative, and BUGS has no runtime for that search. Run the deduction on the reference machine with `run_deduction`, or keep the program's chart out of the transpiled model.
qiec:capability:search:PCFG.run¶
Refused for: let_expressions/let_expr_method_call.
Reported kinds:
Each backend words it differently; this is bugs's. bugs on let_expressions/let_expr_method_call reports:
QIEC computation `PCFG.run` is a deduction's entry, which enumerates its derivations through a search handler that resumes once per alternative, and BUGS has no runtime for that search. Run the deduction on the reference machine with `run_deduction`, or keep the program's chart out of the transpiled model.
qiec:capability:search:QScope.run¶
Refused for: quantifier_scope.
Reported kinds:
Each backend words it differently; this is bugs's. bugs on quantifier_scope reports:
QIEC computation `QScope.run` is a deduction's entry, which enumerates its derivations through a search handler that resumes once per alternative, and BUGS has no runtime for that search. Run the deduction on the reference machine with `run_deduction`, or keep the program's chart out of the transpiled model.
qiec:capability:search:WMCFG.run¶
Refused for: wmcfg.
Reported kinds:
Each backend words it differently; this is bugs's. bugs on wmcfg reports:
QIEC computation `WMCFG.run` is a deduction's entry, which enumerates its derivations through a search handler that resumes once per alternative, and BUGS has no runtime for that search. Run the deduction on the reference machine with `run_deduction`, or keep the program's chart out of the transpiled model.
qiec:capability:search:lp_parser.run¶
Refused for: schema_chart_parser.
Reported kinds:
Each backend words it differently; this is bugs's. bugs on schema_chart_parser reports:
QIEC computation `lp_parser.run` is a deduction's entry, which enumerates its derivations through a search handler that resumes once per alternative, and BUGS has no runtime for that search. Run the deduction on the reference machine with `run_deduction`, or keep the program's chart out of the transpiled model.
qiec:weighted-observe:weighted¶
Refused for: steps/observe_weighted.
Reported kinds:
Each backend words it differently; this is bugs's. bugs on steps/observe_weighted reports:
scan:marginal:no-lowering:cell¶
Refused for: steps/scan_marginal_chain.
Reported kinds:
Every backend reports it in the same words. bugs on steps/scan_marginal_chain reports:
`scan(cell, init=p)` sums the states of a discrete Markov chain out: `cell` returns the latent it marginalizes, so the chain's likelihood is the forward algorithm's sum over every path of states, computed from a table of the cell's weights at each position and each pair of states. no transpile target has lowering of that recursion: its positions arrive with the data, and the cell's weights would have to be rendered as target code at every pair of states. Fit the model with the compiled runtime, or score it on the reference machine with `qvr run`.
scan:marginal:no-lowering:hmm_step¶
Refused for: hmm.
Reported kinds:
Every backend reports it in the same words. bugs on hmm reports:
`scan(hmm_step, init=p)` sums the states of a discrete Markov chain out: `hmm_step` returns the latent it marginalizes, so the chain's likelihood is the forward algorithm's sum over every path of states, computed from a table of the cell's weights at each position and each pair of states. no transpile target has lowering of that recursion: its positions arrive with the data, and the cell's weights would have to be rendered as target code at every pair of states. Fit the model with the compiled runtime, or score it on the reference machine with `qvr run`.
scan:marginal:no-lowering:step_a¶
Refused for: finite_state_dirichlet_allocation.
Reported kinds:
Every backend reports it in the same words. bugs on finite_state_dirichlet_allocation reports:
`scan(step_a, init=p)` sums the states of a discrete Markov chain out: `step_a` returns the latent it marginalizes, so the chain's likelihood is the forward algorithm's sum over every path of states, computed from a table of the cell's weights at each position and each pair of states. no transpile target has lowering of that recursion: its positions arrive with the data, and the cell's weights would have to be rendered as target code at every pair of states. Fit the model with the compiled runtime, or score it on the reference machine with `qvr run`.
scan:no-lowering:cell¶
Refused for: steps/scan_bidirectional, steps/scan_cell_reads_matrix, steps/scan_cell_reads_matrix_data, steps/scan_cell_reads_vector, steps/scan_initial_binding, steps/scan_outputs_all, steps/scan_reverse.
Reported kinds:
Every backend reports it in the same words. bugs on steps/scan_bidirectional reports:
`scan(cell)` threads `cell` across the positions of a sequence, so it denotes one draw per position over intermediate states the program never names. Writing that out needs a loop whose bound is the sequence length and one sample site per position, and the sequence axis is not an object this module declares: it arrives with the data, so there is no extent to size the loop from and no name to bind the per-position states to. Write the recurrence as a program over a declared axis, giving each position its own `sample` step, or unroll the chain into one `sample` per step.
scan:no-lowering:embed_step¶
Refused for: transformer_lm.
Reported kinds:
Every backend reports it in the same words. bugs on transformer_lm reports:
`scan(embed_step)` threads `embed_step` across the positions of a sequence, so it denotes one draw per position over intermediate states the program never names. Writing that out needs a loop whose bound is the sequence length and one sample site per position, and the sequence axis is not an object this module declares: it arrives with the data, so there is no extent to size the loop from and no name to bind the per-position states to. Write the recurrence as a program over a declared axis, giving each position its own `sample` step, or unroll the chain into one `sample` per step.
scan:no-lowering:forward_step¶
Refused for: bidirectional_rnn_lm.
Reported kinds:
Every backend reports it in the same words. bugs on bidirectional_rnn_lm reports:
`scan(forward_step)` threads `forward_step` across the positions of a sequence, so it denotes one draw per position over intermediate states the program never names. Writing that out needs a loop whose bound is the sequence length and one sample site per position, and the sequence axis is not an object this module declares: it arrives with the data, so there is no extent to size the loop from and no name to bind the per-position states to. Write the recurrence as a program over a declared axis, giving each position its own `sample` step, or unroll the chain into one `sample` per step.
scan:no-lowering:gru_step¶
Refused for: gru_lm.
Reported kinds:
Every backend reports it in the same words. bugs on gru_lm reports:
`scan(gru_step)` threads `gru_step` across the positions of a sequence, so it denotes one draw per position over intermediate states the program never names. Writing that out needs a loop whose bound is the sequence length and one sample site per position, and the sequence axis is not an object this module declares: it arrives with the data, so there is no extent to size the loop from and no name to bind the per-position states to. Write the recurrence as a program over a declared axis, giving each position its own `sample` step, or unroll the chain into one `sample` per step.
scan:no-lowering:lower_step¶
Refused for: stacked_rnn_lm.
Reported kinds:
Every backend reports it in the same words. bugs on stacked_rnn_lm reports:
`scan(lower_step)` threads `lower_step` across the positions of a sequence, so it denotes one draw per position over intermediate states the program never names. Writing that out needs a loop whose bound is the sequence length and one sample site per position, and the sequence axis is not an object this module declares: it arrives with the data, so there is no extent to size the loop from and no name to bind the per-position states to. Write the recurrence as a program over a declared axis, giving each position its own `sample` step, or unroll the chain into one `sample` per step.
scan:no-lowering:lstm_step¶
Refused for: lstm_lm.
Reported kinds:
Every backend reports it in the same words. bugs on lstm_lm reports:
`scan(lstm_step)` threads `lstm_step` across the positions of a sequence, so it denotes one draw per position over intermediate states the program never names. Writing that out needs a loop whose bound is the sequence length and one sample site per position, and the sequence axis is not an object this module declares: it arrives with the data, so there is no extent to size the loop from and no name to bind the per-position states to. Write the recurrence as a program over a declared axis, giving each position its own `sample` step, or unroll the chain into one `sample` per step.
scan:no-lowering:rnn_step¶
Refused for: vanilla_rnn_lm.
Reported kinds:
Every backend reports it in the same words. bugs on vanilla_rnn_lm reports:
`scan(rnn_step)` threads `rnn_step` across the positions of a sequence, so it denotes one draw per position over intermediate states the program never names. Writing that out needs a loop whose bound is the sequence length and one sample site per position, and the sequence axis is not an object this module declares: it arrives with the data, so there is no extent to size the loop from and no name to bind the per-position states to. Write the recurrence as a program over a declared axis, giving each position its own `sample` step, or unroll the chain into one `sample` per step.
scan:no-lowering:step¶
Refused for: continuous_hmm, deep_markov, linear_gaussian_ssm.
Reported kinds:
Every backend reports it in the same words. bugs on continuous_hmm reports:
`scan(step)` threads `step` across the positions of a sequence, so it denotes one draw per position over intermediate states the program never names. Writing that out needs a loop whose bound is the sequence length and one sample site per position, and the sequence axis is not an object this module declares: it arrives with the data, so there is no extent to size the loop from and no name to bind the per-position states to. Write the recurrence as a program over a declared axis, giving each position its own `sample` step, or unroll the chain into one `sample` per step.
scan:no-lowering:sv_step¶
Refused for: stochastic_volatility.
Reported kinds:
Every backend reports it in the same words. bugs on stochastic_volatility reports:
`scan(sv_step)` threads `sv_step` across the positions of a sequence, so it denotes one draw per position over intermediate states the program never names. Writing that out needs a loop whose bound is the sequence length and one sample site per position, and the sequence axis is not an object this module declares: it arrives with the data, so there is no extent to size the loop from and no name to bind the per-position states to. Write the recurrence as a program over a declared axis, giving each position its own `sample` step, or unroll the chain into one `sample` per step.
Refused everywhere, for unrelated reasons¶
No backend renders steps/observe_alr_reference, steps/observe_bernstein_hazard_log_rate, steps/observe_com_poisson_log_rate, steps/observe_continuous_bernoulli_logits, steps/observe_dirichlet_multinomial, steps/observe_multinomial_logits, steps/observe_multivariate_student_covariance, steps/observe_multivariate_student_factor, steps/observe_multivariate_student_precision, and no kind is reported by all of them, so the refusals are per-target limits that happen to overlap. Section 3 carries each backend's own reason.
3. What each backend alone refuses¶
These are target gaps rather than language gaps: another backend renders the same program. Each quoted message is the one that backend raises, including whatever alternative it offers.
bugs¶
Every program below renders on at least one other backend and is refused here.
arg:list-literal
Refused for: let_expressions/let_row_gather_drawn, steps/observe_gather_event_vector, steps/observe_gather_matrix_row, steps/sample_onehot_sampled_probs.
Renders on: edward2, numpyro, pyro.
Reported kinds:
bugs on let_expressions/let_row_gather_drawn reports:
bugs cannot take a list literal `[a, b, c]` in a distribution-argument position. Bind the list as a data input, or draw from a shape-aware family that takes the elements as one vector.
arg:list-literal, arg:matrix-literal
Refused for: steps/sample_mvn_factor.
Renders on: edward2, gen, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
bugs on steps/sample_mvn_factor reports:
bugs cannot transpile this program:
- bugs cannot take a list literal `[a, b, c]` in a distribution-argument position. Bind the list as a data input, or draw from a shape-aware family that takes the elements as one vector.
- bugs cannot take a matrix literal `[[a, b], ...]` in a distribution-argument position. Bind the matrix as a data input instead.
arg:list-literal, family:OneHotCategorical
Refused for: steps/observe_onehot_categorical_logits, steps/sample_onehot_probs.
Renders on: edward2, numpyro, pyro.
Reported kinds:
bugs on steps/observe_onehot_categorical_logits reports:
bugs cannot transpile this program:
- bugs cannot take a list literal `[a, b, c]` in a distribution-argument position. Bind the list as a data input, or draw from a shape-aware family that takes the elements as one vector.
- bugs cannot score a draw from `OneHotCategorical`: no BUGS target name
arg:list-literal, family:OrderedLogistic
Refused for: steps/observe_ordinal_code.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
bugs on steps/observe_ordinal_code reports:
bugs cannot transpile this program:
- bugs cannot take a list literal `[a, b, c]` in a distribution-argument position. Bind the list as a data input, or draw from a shape-aware family that takes the elements as one vector.
- bugs cannot score a draw from `OrderedLogistic`: no BUGS target name
arg:list-literal, family:OrderedProbit
Refused for: steps/observe_ordered_probit.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
bugs on steps/observe_ordered_probit reports:
bugs cannot transpile this program:
- bugs cannot take a list literal `[a, b, c]` in a distribution-argument position. Bind the list as a data input, or draw from a shape-aware family that takes the elements as one vector.
- bugs cannot score a draw from `OrderedProbit`: no BUGS target name
arg:list-literal, family:RelaxedOneHotCategorical
Refused for: steps/observe_relaxed_onehot_logits, steps/sample_relaxed_onehot_probs.
Renders on: edward2, pyro.
Reported kinds:
bugs on steps/observe_relaxed_onehot_logits reports:
bugs cannot transpile this program:
- bugs cannot take a list literal `[a, b, c]` in a distribution-argument position. Bind the list as a data input, or draw from a shape-aware family that takes the elements as one vector.
- bugs cannot score a draw from `RelaxedOneHotCategorical`: no BUGS target name
arg:matrix-literal
Refused for: steps/sample_mvn_covariance, steps/sample_mvn_host_loc, steps/sample_mvn_precision, steps/sample_mvn_sampled_loc, steps/sample_wishart_covariance, steps/sample_wishart_factor, steps/sample_wishart_precision.
Renders on: numpyro, pymc, pyro, stan, turing.
Reported kinds:
bugs on steps/sample_mvn_covariance reports:
bugs cannot take a matrix literal `[[a, b], ...]` in a distribution-argument position. Bind the matrix as a data input instead.
arg:matrix-literal, family:InverseWishart
Refused for: steps/sample_inverse_wishart_factor.
Renders on: numpyro, pyro, stan, turing.
Reported kinds:
bugs on steps/sample_inverse_wishart_factor reports:
bugs cannot transpile this program:
- bugs cannot take a matrix literal `[[a, b], ...]` in a distribution-argument position. Bind the matrix as a data input instead.
- bugs cannot score a draw from `InverseWishart`: no BUGS target name
arg:matrix-literal, family:MatrixNormal
Refused for: steps/observe_matrix_normal_col_factor, steps/observe_matrix_normal_row_factor, steps/sample_matrix_normal.
Renders on: edward2, gen, numpyro, pyro, stan, turing, webppl.
Reported kinds:
bugs on steps/observe_matrix_normal_col_factor reports:
bugs cannot transpile this program:
- bugs cannot take a matrix literal `[[a, b], ...]` in a distribution-argument position. Bind the matrix as a data input instead.
- bugs cannot score a draw from `MatrixNormal`: no BUGS target name
call:graph:noisy
Refused for: steps/call_step.
Renders on: church, edward2, gen, numpyro, pymc, pyro, turing, webppl.
Reported kinds:
bugs on steps/call_step reports:
the program calls the computation `noisy` at run time, and BUGS is a graph language: a model is a set of stochastic and deterministic relations between named nodes, with no statement that runs a computation, draws under a site name it computes, or scores a weight it accumulates. A pure computation is inlined only when this target can preserve its operations and control flow. In particular, eager branch selection requires both branches to have total operations; a guarded logarithm or division must remain lazy. This call cannot be safely inlined. Write supported draws and scores as program steps, or choose a target with a host runtime.
data:per-row-vector-parameter:cuts
Refused for: steps/observe_vector_parameter_data.
Renders on: numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:cuts: the input fills a vector-valued family parameter with one vector per row of a plate, which bugs has no rendering for
bugs on steps/observe_vector_parameter_data reports:
The data input `cuts` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. bugs cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which bugs has no rendering for
data:per-row-vector-parameter:weights
Refused for: steps/observe_probs_data.
Renders on: edward2, numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:weights: the input fills a vector-valued family parameter with one vector per row of a plate, which bugs has no rendering for
bugs on steps/observe_probs_data reports:
The data input `weights` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. bugs cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which bugs has no rendering for
family:Bernoulli:logits
Refused for: steps/observe_bernoulli_logits, steps/observe_bernoulli_logits_rows, steps/sample_bernoulli_logits, irt_2pl.
Renders on: church, edward2, gen, jags, numpyro, pymc, pyro, turing, webppl.
Reported kinds:
family:Bernoulli:logits: bugs has no Bernoulli parameterized by its logits; its `dbern` takes a probability, whose complement `1 - ilogit(l)` keeps none of its digits once the probability rounds to within an ulp of one, and the mass written from the logits needs a zeros-trick carrier BUGS has no data block to bind, so no stable spelling exists
bugs on steps/observe_bernoulli_logits reports:
bugs cannot score a draw from `Bernoulli`: bugs has no Bernoulli parameterized by its logits; its `dbern` takes a probability, whose complement `1 - ilogit(l)` keeps none of its digits once the probability rounds to within an ulp of one, and the mass written from the logits needs a zeros-trick carrier BUGS has no data block to bind, so no stable spelling exists
family:BetaBinomial:no-bugs-distribution
Refused for: beta_binomial_ab_test.
Renders on: edward2, gen, jags, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
family:BetaBinomial:no-bugs-distribution: the BUGS distribution catalogue has no beta-binomial, and the zeros trick that would write its closed-form marginal into the joint needs a data-bound carrier the BUGS language cannot declare (it has no `data { ... }` block)
bugs on beta_binomial_ab_test reports:
bugs cannot score a draw from `BetaBinomial`: the BUGS distribution catalogue has no beta-binomial, and the zeros trick that would write its closed-form marginal into the joint needs a data-bound carrier the BUGS language cannot declare (it has no `data { ... }` block)
family:Binomial:logits
Refused for: steps/observe_binomial_logits.
Renders on: edward2, numpyro, pymc, pyro, stan, turing.
Reported kinds:
family:Binomial:logits: bugs has no Binomial parameterized by its logits; write the probability the logits name as probs
bugs on steps/observe_binomial_logits reports:
bugs cannot score a draw from `Binomial`: bugs has no Binomial parameterized by its logits; write the probability the logits name as probs
family:Categorical:logits
Refused for: steps/observe_logits_data, seq2seq.
Renders on: edward2, numpyro, pyro.
Reported kinds:
family:Categorical:logits: the target only exposes the probability parameterization; apply softmax in QVR and pass the result as probs
bugs on steps/observe_logits_data reports:
bugs cannot score a draw from `Categorical`: the target only exposes the probability parameterization; apply softmax in QVR and pass the result as probs
family:Geometric:logits
Refused for: steps/observe_geometric_logits.
Renders on: edward2, numpyro, pyro.
Reported kinds:
family:Geometric:logits: bugs has no Geometric parameterized by its logits; write the probability the logits name as probs
bugs on steps/observe_geometric_logits reports:
bugs cannot score a draw from `Geometric`: bugs has no Geometric parameterized by its logits; write the probability the logits name as probs
family:Kumaraswamy:no-free-density-term
Refused for: kumaraswamy_bounded_outcome.
Renders on: edward2, gen, jags, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
family:Kumaraswamy:no-free-density-term: the density is elementary in `log` and `pow`, but adding a written-out density to the joint needs a free log-density term the language has no statement for
bugs on kumaraswamy_bounded_outcome reports:
bugs cannot score a draw from `Kumaraswamy`: the density is elementary in `log` and `pow`, but adding a written-out density to the joint needs a free log-density term the language has no statement for
family:LKJCholesky
Refused for: lkj_cholesky_correlation.
Renders on: edward2, gen, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
bugs on lkj_cholesky_correlation reports:
family:MatrixNormal
Refused for: axes/matrix_kronecker.
Renders on: church, edward2, gen, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
bugs on axes/matrix_kronecker reports:
family:MixtureNormal:no-free-density-term
Refused for: mixture_model.
Renders on: edward2, gen, jags, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
family:MixtureNormal:no-free-density-term: a finite mixture is an explicit weighted density in the BUGS function library, but adding one to the joint needs a free log-density term the language has no statement for
bugs on mixture_model reports:
bugs cannot score a draw from `MixtureNormal`: a finite mixture is an explicit weighted density in the BUGS function library, but adding one to the joint needs a free log-density term the language has no statement for
family:MultivariateNormal:scale_tril
Refused for: steps/observe_mvn_host_factor, steps/observe_mvn_lkj_factor.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
family:MultivariateNormal:scale_tril: the MultivariateNormal's scale_tril is a Cholesky factor known only at run time, which bugs has no Cholesky parameterization of MultivariateNormal to take; write it as a matrix literal
bugs on steps/observe_mvn_host_factor reports:
bugs cannot score a draw from `MultivariateNormal`: the MultivariateNormal's scale_tril is a Cholesky factor known only at run time, which bugs has no Cholesky parameterization of MultivariateNormal to take; write it as a matrix literal
family:NegativeBinomial:logits
Refused for: steps/observe_negative_binomial_logits.
Renders on: edward2, pyro.
Reported kinds:
family:NegativeBinomial:logits: bugs has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
bugs on steps/observe_negative_binomial_logits reports:
bugs cannot score a draw from `NegativeBinomial`: bugs has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
family:RelaxedBernoulli
Refused for: steps/observe_relaxed_bernoulli_logits.
Renders on: edward2, numpyro, pyro.
Reported kinds:
bugs on steps/observe_relaxed_bernoulli_logits reports:
family:Wishart:scale_tril
Refused for: steps/sample_wishart_host_factor.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
family:Wishart:scale_tril: the Wishart's scale_tril is a Cholesky factor known only at run time, which bugs has no Cholesky parameterization of Wishart to take; write it as a matrix literal
bugs on steps/sample_wishart_host_factor reports:
bugs cannot score a draw from `Wishart`: the Wishart's scale_tril is a Cholesky factor known only at run time, which bugs has no Cholesky parameterization of Wishart to take; write it as a matrix literal
let-expr:LetExprFactor:wide
Refused for: let_expressions/let_concat_slice_matrix.
Renders on: church, edward2, gen, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
bugs on let_expressions/let_concat_slice_matrix reports:
bugs cannot emit a `factor` over an axis as a `let` body: binder axes (2,) do not match the binding's declared plate (2, 6)
let-expr:axis-reduction:bugs
Refused for: let_expressions/let_host_matrix_row, let_expressions/let_reduce_matrix, let_expressions/let_reduce_nested.
Renders on: edward2, numpyro, pymc, pyro, webppl.
Reported kinds:
let-expr:axis-reduction:bugs: sum(...) over a rank-2 operand reduces only the innermost axis in QVR, and BUGS / JAGS `sum` contracts every axis; there is no target spelling for the partial reduction
let-expr:axis-reduction:bugs: sum(...) over a rank-3 operand reduces only the innermost axis in QVR, and BUGS / JAGS `sum` contracts every axis; there is no target spelling for the partial reduction
bugs on let_expressions/let_host_matrix_row reports:
bugs-helper cannot emit a `let` body the IR carries as `axis-reduction` as a `let` body: sum(...) over a rank-2 operand reduces only the innermost axis in QVR, and BUGS / JAGS `sum` contracts every axis; there is no target spelling for the partial reduction
marginalize:grouped-index-map:c
Refused for: steps/marginalize_per_group_prior_shared_class.
Renders on: church, edward2, gen, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
marginalize:grouped-index-map:c: the rows `idx` sends to each `Grp` are summed before the reduction over the atoms, and BUGS has no statement that adds the per-group log-density to the joint
bugs on steps/marginalize_per_group_prior_shared_class reports:
bugs cannot marginalize this latent out: the rows `idx` sends to each `Grp` are summed before the reduction over the atoms, and BUGS has no statement that adds the per-group log-density to the joint
marginalize:grouped-index-map:cls
Refused for: steps/marginalize_step.
Renders on: church, edward2, gen, jags, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
marginalize:grouped-index-map:cls: the rows `idx` sends to each `Item` are summed before the reduction over the atoms, and BUGS has no statement that adds the per-group log-density to the joint
bugs on steps/marginalize_step reports:
bugs cannot marginalize this latent out: the rows `idx` sends to each `Item` are summed before the reduction over the atoms, and BUGS has no statement that adds the per-group log-density to the joint
marginalize:no-collapse:z
Refused for: steps/marginalize_bernoulli_logits, steps/marginalize_shared_prior_scalar_let, zip_regression.
Renders on: church, edward2, gen, jags, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
marginalize:no-collapse:z: the scope is no categorical mixture, and BUGS has no statement that adds its integrated log-density to the joint
bugs on steps/marginalize_bernoulli_logits reports:
bugs cannot marginalize this latent out: the scope is no categorical mixture, and BUGS has no statement that adds its integrated log-density to the joint
marginalize:ungrouped-over-plate:tau
Refused for: steps/marginalize_factor_let_rows, changepoint.
Renders on: numpyro, pyro, stan, webppl.
Reported kinds:
bugs on steps/marginalize_factor_let_rows reports:
`marginalize tau` carries no index and no `over =` clause, so it declares one latent and every row of the plated `observe` inside it is conditioned on that single draw. Its density thus accumulates the body's rows and reduces over the latent once, and BUGS scores the rows the other way round, giving each its own draw. That is a different measure, not a different base measure, so it is refused rather than emitted. Give the latent the plate its rows share (`marginalize tau : A`) or a grouping `over =` clause, either of which this target does emit correctly.
marginalize:ungrouped-over-plate:z
Refused for: steps/marginalize_body_let_chain, steps/marginalize_body_plated_let, steps/marginalize_latent_gather, steps/marginalize_latent_value, steps/marginalize_let_probs, steps/marginalize_let_vector_probs.
Renders on: numpyro, pyro, stan, webppl.
Reported kinds:
bugs on steps/marginalize_body_let_chain reports:
`marginalize z` carries no index and no `over =` clause, so it declares one latent and every row of the plated `observe` inside it is conditioned on that single draw. Its density thus accumulates the body's rows and reduces over the latent once, and BUGS scores the rows the other way round, giving each its own draw. That is a different measure, not a different base measure, so it is refused rather than emitted. Give the latent the plate its rows share (`marginalize z : A`) or a grouping `over =` clause, either of which this target does emit correctly.
observe:class-code:w
Refused for: steps/marginalize_gathered_prior_data, lda.
Renders on: church, edward2, numpyro, pymc, pyro, stan, webppl.
Reported kinds:
observe:class-code:w: the data codes Categorical classes from zero and `dcat` reads them from one; BUGS has no data block to shift the observed codes and no free log-density statement to score them otherwise
bugs on steps/marginalize_gathered_prior_data reports:
bugs cannot emit this `observe` step: the data codes Categorical classes from zero and `dcat` reads them from one; BUGS has no data block to shift the observed codes and no free log-density statement to score them otherwise
observe:class-code:y
Refused for: let_expressions/let_row_gather, let_expressions/let_row_gather_sampled, steps/observe_class_code, steps/observe_shared_probs_vector, tree_categorical.
Renders on: church, edward2, gen, jags, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
observe:class-code:y: the data codes Categorical classes from zero and `dcat` reads them from one; BUGS has no data block to shift the observed codes and no free log-density statement to score them otherwise
bugs on let_expressions/let_row_gather reports:
bugs cannot emit this `observe` step: the data codes Categorical classes from zero and `dcat` reads them from one; BUGS has no data block to shift the observed codes and no free log-density statement to score them otherwise
qiec:capability:effectful-row:read, qiec:capability:perform:read
Refused for: statements/qiec_effectful_computation.
Renders on: church, edward2, gen, numpyro, pymc, pyro, turing, webppl.
Reported kinds:
bugs on statements/qiec_effectful_computation reports:
bugs cannot transpile this program:
- QIEC computation `read` requires the `effectful-row` QIEC capability, but BUGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
- QIEC computation `read` requires the `perform` QIEC capability, but BUGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
qiec:capability:named-parameter:weighted_log_density, qiec:capability:weight:weighted_log_density
Refused for: statements/qiec_weight_primitives.
Renders on: church, edward2, gen, numpyro, pymc, pyro, turing, webppl.
Reported kinds:
bugs on statements/qiec_weight_primitives reports:
bugs cannot transpile this program:
- QIEC computation `weighted_log_density` requires the `named-parameter` QIEC capability, but BUGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
- QIEC computation `weighted_log_density` requires the `weight` QIEC capability, but BUGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
church¶
Every program below renders on at least one other backend and is refused here.
arg:matrix-literal
Refused for: steps/observe_matrix_normal_col_factor, steps/observe_matrix_normal_row_factor, steps/sample_matrix_normal, steps/sample_mvn_covariance, steps/sample_mvn_factor, steps/sample_mvn_host_loc, steps/sample_mvn_precision, steps/sample_mvn_sampled_loc.
Renders on: edward2, gen, numpyro, pyro, stan, turing, webppl.
Reported kinds:
church on steps/observe_matrix_normal_col_factor reports:
church cannot take a matrix literal `[[a, b], ...]` in a distribution-argument position. Bind the matrix as a data input instead.
data:per-row-vector-parameter:cuts
Refused for: steps/observe_vector_parameter_data.
Renders on: numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:cuts: the input fills a vector-valued family parameter with one vector per row of a plate, which church has no rendering for
church on steps/observe_vector_parameter_data reports:
The data input `cuts` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. church cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which church has no rendering for
data:per-row-vector-parameter:weights
Refused for: steps/observe_probs_data.
Renders on: edward2, numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:weights: the input fills a vector-valued family parameter with one vector per row of a plate, which church has no rendering for
church on steps/observe_probs_data reports:
The data input `weights` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. church cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which church has no rendering for
family:BetaBinomial:no-church-target
Refused for: beta_binomial_ab_test.
Renders on: edward2, gen, jags, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
church on beta_binomial_ab_test reports:
church has no `BetaBinomial` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:Binomial:logits
Refused for: steps/observe_binomial_logits.
Renders on: edward2, numpyro, pymc, pyro, stan, turing.
Reported kinds:
family:Binomial:logits: church has no Binomial parameterized by its logits; write the probability the logits name as probs
church on steps/observe_binomial_logits reports:
church cannot score a draw from `Binomial`: church has no Binomial parameterized by its logits; write the probability the logits name as probs
family:Categorical:logits
Refused for: steps/observe_logits_data, seq2seq.
Renders on: edward2, numpyro, pyro.
Reported kinds:
family:Categorical:logits: the target only exposes the probability parameterization; apply softmax in QVR and pass the result as probs
church on steps/observe_logits_data reports:
church cannot score a draw from `Categorical`: the target only exposes the probability parameterization; apply softmax in QVR and pass the result as probs
family:Geometric:logits
Refused for: steps/observe_geometric_logits.
Renders on: edward2, numpyro, pyro.
Reported kinds:
family:Geometric:logits: church has no Geometric parameterized by its logits; write the probability the logits name as probs
church on steps/observe_geometric_logits reports:
church cannot score a draw from `Geometric`: church has no Geometric parameterized by its logits; write the probability the logits name as probs
family:HalfStudentT:no-church-target
Refused for: half_student_t_hierarchical.
Renders on: bugs, edward2, gen, jags, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
church on half_student_t_hierarchical reports:
church has no `HalfStudentT` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:InverseWishart:no-church-target
Refused for: steps/sample_inverse_wishart_factor.
Renders on: numpyro, pyro, stan, turing.
Reported kinds:
church on steps/sample_inverse_wishart_factor reports:
church has no `InverseWishart` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:Kumaraswamy:no-church-target
Refused for: kumaraswamy_bounded_outcome.
Renders on: edward2, gen, jags, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
church on kumaraswamy_bounded_outcome reports:
church has no `Kumaraswamy` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:LKJCholesky:no-church-target
Refused for: lkj_cholesky_correlation.
Renders on: edward2, gen, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
church on lkj_cholesky_correlation reports:
church has no `LKJCholesky` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:Logistic:no-church-target
Refused for: logistic_noise_regression.
Renders on: bugs, edward2, gen, jags, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
church on logistic_noise_regression reports:
church has no `Logistic` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:MixtureNormal:no-church-target
Refused for: mixture_model.
Renders on: edward2, gen, jags, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
church on mixture_model reports:
church has no `MixtureNormal` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:MultivariateNormal:scale_tril
Refused for: steps/observe_mvn_host_factor, steps/observe_mvn_lkj_factor.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
family:MultivariateNormal:scale_tril: the MultivariateNormal's scale_tril is a Cholesky factor known only at run time, which church has no Cholesky parameterization of MultivariateNormal to take; write it as a matrix literal
church on steps/observe_mvn_host_factor reports:
church cannot score a draw from `MultivariateNormal`: the MultivariateNormal's scale_tril is a Cholesky factor known only at run time, which church has no Cholesky parameterization of MultivariateNormal to take; write it as a matrix literal
family:NegativeBinomial:logits
Refused for: steps/observe_negative_binomial_logits.
Renders on: edward2, pyro.
Reported kinds:
family:NegativeBinomial:logits: church has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
church on steps/observe_negative_binomial_logits reports:
church cannot score a draw from `NegativeBinomial`: church has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
family:OneHotCategorical:no-church-target
Refused for: steps/observe_onehot_categorical_logits, steps/sample_onehot_probs, steps/sample_onehot_sampled_probs.
Renders on: edward2, numpyro, pyro.
Reported kinds:
church on steps/observe_onehot_categorical_logits reports:
church has no `OneHotCategorical` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:OrderedLogistic:no-church-target
Refused for: steps/observe_ordinal_code.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
church on steps/observe_ordinal_code reports:
church has no `OrderedLogistic` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:OrderedProbit:no-church-target
Refused for: steps/observe_ordered_probit.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
church on steps/observe_ordered_probit reports:
church has no `OrderedProbit` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:RelaxedBernoulli:no-church-target
Refused for: steps/observe_relaxed_bernoulli_logits.
Renders on: edward2, numpyro, pyro.
Reported kinds:
church on steps/observe_relaxed_bernoulli_logits reports:
church has no `RelaxedBernoulli` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:RelaxedOneHotCategorical:no-church-target
Refused for: steps/observe_relaxed_onehot_logits, steps/sample_relaxed_onehot_probs.
Renders on: edward2, pyro.
Reported kinds:
church on steps/observe_relaxed_onehot_logits reports:
church has no `RelaxedOneHotCategorical` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:Wishart:no-church-target
Refused for: steps/sample_wishart_covariance, steps/sample_wishart_factor, steps/sample_wishart_precision.
Renders on: numpyro, pymc, pyro, stan, turing.
Reported kinds:
church on steps/sample_wishart_covariance reports:
church has no `Wishart` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:Wishart:scale_tril
Refused for: steps/sample_wishart_host_factor.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
family:Wishart:scale_tril: the Wishart's scale_tril is a Cholesky factor known only at run time, which church has no Cholesky parameterization of Wishart to take; write it as a matrix literal
church on steps/sample_wishart_host_factor reports:
church cannot score a draw from `Wishart`: the Wishart's scale_tril is a Cholesky factor known only at run time, which church has no Cholesky parameterization of Wishart to take; write it as a matrix literal
let-expr:axis-reduction:church
Refused for: let_expressions/let_reduce_nested.
Renders on: edward2, numpyro, pymc, pyro, webppl.
Reported kinds:
let-expr:axis-reduction:church: `sum(...)` in 's' reduces only the last axis of an argument with several axes, which the list fold has no form for
church on let_expressions/let_reduce_nested reports:
church cannot emit a `let` body the IR carries as `axis-reduction` as a `let` body: `sum(...)` in 's' reduces only the last axis of an argument with several axes, which the list fold has no form for
marginalize:ungrouped-over-plate:tau
Refused for: steps/marginalize_factor_let_rows, changepoint.
Renders on: numpyro, pyro, stan, webppl.
Reported kinds:
church on steps/marginalize_factor_let_rows reports:
`marginalize tau` carries no index and no `over =` clause, so it declares one latent and every row of the plated `observe` inside it is conditioned on that single draw. Its density thus accumulates the body's rows and reduces over the latent once, and Church scores the rows the other way round, giving each its own draw. That is a different measure, not a different base measure, so it is refused rather than emitted. Give the latent the plate its rows share (`marginalize tau : A`) or a grouping `over =` clause, either of which this target does emit correctly.
marginalize:ungrouped-over-plate:z
Refused for: steps/marginalize_body_let_chain, steps/marginalize_body_plated_let, steps/marginalize_latent_gather, steps/marginalize_latent_value, steps/marginalize_let_probs, steps/marginalize_let_vector_probs.
Renders on: numpyro, pyro, stan, webppl.
Reported kinds:
church on steps/marginalize_body_let_chain reports:
`marginalize z` carries no index and no `over =` clause, so it declares one latent and every row of the plated `observe` inside it is conditioned on that single draw. Its density thus accumulates the body's rows and reduces over the latent once, and Church scores the rows the other way round, giving each its own draw. That is a different measure, not a different base measure, so it is refused rather than emitted. Give the latent the plate its rows share (`marginalize z : A`) or a grouping `over =` clause, either of which this target does emit correctly.
edward2¶
Every program below renders on at least one other backend and is refused here.
family:InverseWishart:no-edward2-target
Refused for: steps/sample_inverse_wishart_factor.
Renders on: numpyro, pyro, stan, turing.
Reported kinds:
edward2 on steps/sample_inverse_wishart_factor reports:
edward2 has no `InverseWishart` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:MultivariateNormal:scale_tril
Refused for: steps/observe_mvn_host_factor, steps/observe_mvn_lkj_factor.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
family:MultivariateNormal:scale_tril: the MultivariateNormal's scale_tril is a Cholesky factor known only at run time, which edward2 has no Cholesky parameterization of MultivariateNormal to take; write it as a matrix literal
edward2 on steps/observe_mvn_host_factor reports:
edward2 cannot score a draw from `MultivariateNormal`: the MultivariateNormal's scale_tril is a Cholesky factor known only at run time, which edward2 has no Cholesky parameterization of MultivariateNormal to take; write it as a matrix literal
family:OrderedLogistic:no-edward2-target
Refused for: steps/observe_ordinal_code, steps/observe_vector_parameter_data.
Renders on: numpyro, pyro.
Reported kinds:
edward2 on steps/observe_ordinal_code reports:
edward2 has no `OrderedLogistic` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:OrderedProbit:no-edward2-target
Refused for: steps/observe_ordered_probit.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
edward2 on steps/observe_ordered_probit reports:
edward2 has no `OrderedProbit` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:Wishart:no-edward2-target
Refused for: steps/sample_wishart_covariance, steps/sample_wishart_factor, steps/sample_wishart_precision.
Renders on: numpyro, pymc, pyro, stan, turing.
Reported kinds:
edward2 on steps/sample_wishart_covariance reports:
edward2 has no `Wishart` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:Wishart:scale_tril
Refused for: steps/sample_wishart_host_factor.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
family:Wishart:scale_tril: the Wishart's scale_tril is a Cholesky factor known only at run time, which edward2 has no Cholesky parameterization of Wishart to take; write it as a matrix literal
edward2 on steps/sample_wishart_host_factor reports:
edward2 cannot score a draw from `Wishart`: the Wishart's scale_tril is a Cholesky factor known only at run time, which edward2 has no Cholesky parameterization of Wishart to take; write it as a matrix literal
marginalize:ungrouped-over-plate:tau
Refused for: steps/marginalize_factor_let_rows, changepoint.
Renders on: numpyro, pyro, stan, webppl.
Reported kinds:
edward2 on steps/marginalize_factor_let_rows reports:
`marginalize tau` carries no index and no `over =` clause, so it declares one latent and every row of the plated `observe` inside it is conditioned on that single draw. Its density thus accumulates the body's rows and reduces over the latent once, and Edward2 scores the rows the other way round, giving each its own draw. That is a different measure, not a different base measure, so it is refused rather than emitted. Give the latent the plate its rows share (`marginalize tau : A`) or a grouping `over =` clause, either of which this target does emit correctly.
marginalize:ungrouped-over-plate:z
Refused for: steps/marginalize_body_let_chain, steps/marginalize_body_plated_let, steps/marginalize_latent_gather, steps/marginalize_latent_value, steps/marginalize_let_probs, steps/marginalize_let_vector_probs.
Renders on: numpyro, pyro, stan, webppl.
Reported kinds:
edward2 on steps/marginalize_body_let_chain reports:
`marginalize z` carries no index and no `over =` clause, so it declares one latent and every row of the plated `observe` inside it is conditioned on that single draw. Its density thus accumulates the body's rows and reduces over the latent once, and Edward2 scores the rows the other way round, giving each its own draw. That is a different measure, not a different base measure, so it is refused rather than emitted. Give the latent the plate its rows share (`marginalize z : A`) or a grouping `over =` clause, either of which this target does emit correctly.
gen¶
Every program below renders on at least one other backend and is refused here.
data:per-row-vector-parameter:cuts
Refused for: steps/observe_vector_parameter_data.
Renders on: numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:cuts: the input fills a vector-valued family parameter with one vector per row of a plate, which gen has no rendering for
gen on steps/observe_vector_parameter_data reports:
The data input `cuts` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. gen cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which gen has no rendering for
data:per-row-vector-parameter:weights
Refused for: steps/observe_probs_data.
Renders on: edward2, numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:weights: the input fills a vector-valued family parameter with one vector per row of a plate, which gen has no rendering for
gen on steps/observe_probs_data reports:
The data input `weights` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. gen cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which gen has no rendering for
family:Binomial:logits
Refused for: steps/observe_binomial_logits.
Renders on: edward2, numpyro, pymc, pyro, stan, turing.
Reported kinds:
family:Binomial:logits: gen has no Binomial parameterized by its logits; write the probability the logits name as probs
gen on steps/observe_binomial_logits reports:
gen cannot score a draw from `Binomial`: gen has no Binomial parameterized by its logits; write the probability the logits name as probs
family:Categorical:logits
Refused for: steps/observe_logits_data, seq2seq.
Renders on: edward2, numpyro, pyro.
Reported kinds:
family:Categorical:logits: the target only exposes the probability parameterization; apply softmax in QVR and pass the result as probs
gen on steps/observe_logits_data reports:
gen cannot score a draw from `Categorical`: the target only exposes the probability parameterization; apply softmax in QVR and pass the result as probs
family:Geometric:logits
Refused for: steps/observe_geometric_logits.
Renders on: edward2, numpyro, pyro.
Reported kinds:
family:Geometric:logits: gen has no Geometric parameterized by its logits; write the probability the logits name as probs
gen on steps/observe_geometric_logits reports:
gen cannot score a draw from `Geometric`: gen has no Geometric parameterized by its logits; write the probability the logits name as probs
family:InverseWishart:no-gen-target
Refused for: steps/sample_inverse_wishart_factor.
Renders on: numpyro, pyro, stan, turing.
Reported kinds:
gen on steps/sample_inverse_wishart_factor reports:
gen has no `InverseWishart` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:MultivariateNormal:scale_tril
Refused for: steps/observe_mvn_host_factor, steps/observe_mvn_lkj_factor.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
family:MultivariateNormal:scale_tril: the MultivariateNormal's scale_tril is a Cholesky factor known only at run time, which gen has no Cholesky parameterization of MultivariateNormal to take; write it as a matrix literal
gen on steps/observe_mvn_host_factor reports:
gen cannot score a draw from `MultivariateNormal`: the MultivariateNormal's scale_tril is a Cholesky factor known only at run time, which gen has no Cholesky parameterization of MultivariateNormal to take; write it as a matrix literal
family:NegativeBinomial:logits
Refused for: steps/observe_negative_binomial_logits.
Renders on: edward2, pyro.
Reported kinds:
family:NegativeBinomial:logits: gen has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
gen on steps/observe_negative_binomial_logits reports:
gen cannot score a draw from `NegativeBinomial`: gen has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
family:OneHotCategorical:no-gen-target
Refused for: steps/observe_onehot_categorical_logits, steps/sample_onehot_probs, steps/sample_onehot_sampled_probs.
Renders on: edward2, numpyro, pyro.
Reported kinds:
gen on steps/observe_onehot_categorical_logits reports:
gen has no `OneHotCategorical` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:OrderedLogistic:no-gen-target
Refused for: steps/observe_ordinal_code.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
gen on steps/observe_ordinal_code reports:
gen has no `OrderedLogistic` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:OrderedProbit:no-gen-target
Refused for: steps/observe_ordered_probit.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
gen on steps/observe_ordered_probit reports:
gen has no `OrderedProbit` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:RelaxedBernoulli:no-gen-target
Refused for: steps/observe_relaxed_bernoulli_logits.
Renders on: edward2, numpyro, pyro.
Reported kinds:
gen on steps/observe_relaxed_bernoulli_logits reports:
gen has no `RelaxedBernoulli` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:RelaxedOneHotCategorical:no-gen-target
Refused for: steps/observe_relaxed_onehot_logits, steps/sample_relaxed_onehot_probs.
Renders on: edward2, pyro.
Reported kinds:
gen on steps/observe_relaxed_onehot_logits reports:
gen has no `RelaxedOneHotCategorical` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:Wishart:no-gen-target
Refused for: steps/sample_wishart_covariance, steps/sample_wishart_factor, steps/sample_wishart_precision.
Renders on: numpyro, pymc, pyro, stan, turing.
Reported kinds:
gen on steps/sample_wishart_covariance reports:
gen has no `Wishart` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:Wishart:scale_tril
Refused for: steps/sample_wishart_host_factor.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
family:Wishart:scale_tril: the Wishart's scale_tril is a Cholesky factor known only at run time, which gen has no Cholesky parameterization of Wishart to take; write it as a matrix literal
gen on steps/sample_wishart_host_factor reports:
gen cannot score a draw from `Wishart`: the Wishart's scale_tril is a Cholesky factor known only at run time, which gen has no Cholesky parameterization of Wishart to take; write it as a matrix literal
let-expr:axis-reduction:gen
Refused for: let_expressions/let_reduce_nested.
Renders on: edward2, numpyro, pymc, pyro, webppl.
Reported kinds:
let-expr:axis-reduction:gen: `sum(...)` reduces the last axis of a factor over more than two binders, which the nested vector form has no single broadcast for
gen on let_expressions/let_reduce_nested reports:
gen-helper cannot emit a `let` body the IR carries as `axis-reduction` as a `let` body: `sum(...)` reduces the last axis of a factor over more than two binders, which the nested vector form has no single broadcast for
let-expr:nested-slice-gather:row_slice
Refused for: let_expressions/let_slice_gather.
Renders on: bugs, church, edward2, jags, numpyro, pymc, pyro, stan.
Reported kinds:
let-expr:nested-slice-gather:row_slice: 'row_slice' gathers slices of 2 axes from the factor table 'table', which Julia holds as a nested tower of vectors, one level per binder; a site reads such a slice with one subscript per axis, which the tower does not take
gen on let_expressions/let_slice_gather reports:
gen cannot emit a `let` body the IR carries as `nested-slice-gather` as a `let` body: 'row_slice' gathers slices of 2 axes from the factor table 'table', which Julia holds as a nested tower of vectors, one level per binder; a site reads such a slice with one subscript per axis, which the tower does not take
marginalize:ungrouped-over-plate:tau
Refused for: steps/marginalize_factor_let_rows, changepoint.
Renders on: numpyro, pyro, stan, webppl.
Reported kinds:
gen on steps/marginalize_factor_let_rows reports:
`marginalize tau` carries no index and no `over =` clause, so it declares one latent and every row of the plated `observe` inside it is conditioned on that single draw. Its density thus accumulates the body's rows and reduces over the latent once, and Gen.jl scores the rows the other way round, giving each its own draw. That is a different measure, not a different base measure, so it is refused rather than emitted. Give the latent the plate its rows share (`marginalize tau : A`) or a grouping `over =` clause, either of which this target does emit correctly.
marginalize:ungrouped-over-plate:z
Refused for: steps/marginalize_body_let_chain, steps/marginalize_body_plated_let, steps/marginalize_latent_gather, steps/marginalize_latent_value, steps/marginalize_let_probs, steps/marginalize_let_vector_probs.
Renders on: numpyro, pyro, stan, webppl.
Reported kinds:
gen on steps/marginalize_body_let_chain reports:
`marginalize z` carries no index and no `over =` clause, so it declares one latent and every row of the plated `observe` inside it is conditioned on that single draw. Its density thus accumulates the body's rows and reduces over the latent once, and Gen.jl scores the rows the other way round, giving each its own draw. That is a different measure, not a different base measure, so it is refused rather than emitted. Give the latent the plate its rows share (`marginalize z : A`) or a grouping `over =` clause, either of which this target does emit correctly.
marginalize:weight-plate:theta_tok
Refused for: steps/marginalize_gathered_prior_data, lda.
Renders on: church, edward2, numpyro, pymc, pyro, stan, webppl.
Reported kinds:
gen on steps/marginalize_gathered_prior_data reports:
jags¶
Every program below renders on at least one other backend and is refused here.
arg:list-literal
Refused for: let_expressions/let_row_gather_drawn, steps/observe_gather_event_vector, steps/observe_gather_matrix_row, steps/sample_onehot_sampled_probs.
Renders on: edward2, numpyro, pyro.
Reported kinds:
jags on let_expressions/let_row_gather_drawn reports:
jags cannot take a list literal `[a, b, c]` in a distribution-argument position. Bind the list as a data input, or draw from a shape-aware family that takes the elements as one vector.
arg:matrix-literal
Refused for: steps/sample_mvn_precision, steps/sample_wishart_covariance, steps/sample_wishart_factor, steps/sample_wishart_precision.
Renders on: numpyro, pymc, pyro, stan, turing.
Reported kinds:
jags on steps/sample_mvn_precision reports:
jags cannot take a matrix literal `[[a, b], ...]` in a distribution-argument position. Bind the matrix as a data input instead.
call:graph:noisy
Refused for: steps/call_step.
Renders on: church, edward2, gen, numpyro, pymc, pyro, turing, webppl.
Reported kinds:
jags on steps/call_step reports:
the program calls the computation `noisy` at run time, and JAGS is a graph language: a model is a set of stochastic and deterministic relations between named nodes, with no statement that runs a computation, draws under a site name it computes, or scores a weight it accumulates. A pure computation is inlined only when this target can preserve its operations and control flow. In particular, eager branch selection requires both branches to have total operations; a guarded logarithm or division must remain lazy. This call cannot be safely inlined. Write supported draws and scores as program steps, or choose a target with a host runtime.
data:per-row-vector-parameter:cuts
Refused for: steps/observe_vector_parameter_data.
Renders on: numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:cuts: the input fills a vector-valued family parameter with one vector per row of a plate, which jags has no rendering for
jags on steps/observe_vector_parameter_data reports:
The data input `cuts` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. jags cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which jags has no rendering for
data:per-row-vector-parameter:weights
Refused for: steps/observe_probs_data.
Renders on: edward2, numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:weights: the input fills a vector-valued family parameter with one vector per row of a plate, which jags has no rendering for
jags on steps/observe_probs_data reports:
The data input `weights` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. jags cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which jags has no rendering for
family:Binomial:logits
Refused for: steps/observe_binomial_logits.
Renders on: edward2, numpyro, pymc, pyro, stan, turing.
Reported kinds:
family:Binomial:logits: jags has no Binomial parameterized by its logits; write the probability the logits name as probs
jags on steps/observe_binomial_logits reports:
jags cannot score a draw from `Binomial`: jags has no Binomial parameterized by its logits; write the probability the logits name as probs
family:Categorical:logits
Refused for: steps/observe_logits_data, seq2seq.
Renders on: edward2, numpyro, pyro.
Reported kinds:
family:Categorical:logits: the target only exposes the probability parameterization; apply softmax in QVR and pass the result as probs
jags on steps/observe_logits_data reports:
jags cannot score a draw from `Categorical`: the target only exposes the probability parameterization; apply softmax in QVR and pass the result as probs
family:Geometric:logits
Refused for: steps/observe_geometric_logits.
Renders on: edward2, numpyro, pyro.
Reported kinds:
family:Geometric:logits: jags has no Geometric parameterized by its logits; write the probability the logits name as probs
jags on steps/observe_geometric_logits reports:
jags cannot score a draw from `Geometric`: jags has no Geometric parameterized by its logits; write the probability the logits name as probs
family:MultivariateNormal:non-ref-covariance
Refused for: steps/sample_mvn_covariance, steps/sample_mvn_factor, steps/sample_mvn_host_loc, steps/sample_mvn_sampled_loc.
Renders on: edward2, gen, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
family:MultivariateNormal:non-ref-covariance: the `inverse(...)` relation that turns the covariance into `dmnorm`'s precision needs a whole named matrix, and this slot carries a IRArgMatrix
jags on steps/sample_mvn_covariance reports:
jags cannot score a draw from `MultivariateNormal`: the `inverse(...)` relation that turns the covariance into `dmnorm`'s precision needs a whole named matrix, and this slot carries a IRArgMatrix
family:MultivariateNormal:scale_tril
Refused for: steps/observe_mvn_host_factor, steps/observe_mvn_lkj_factor.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
family:MultivariateNormal:scale_tril: the MultivariateNormal's scale_tril is a Cholesky factor known only at run time, which jags has no Cholesky parameterization of MultivariateNormal to take; write it as a matrix literal
jags on steps/observe_mvn_host_factor reports:
jags cannot score a draw from `MultivariateNormal`: the MultivariateNormal's scale_tril is a Cholesky factor known only at run time, which jags has no Cholesky parameterization of MultivariateNormal to take; write it as a matrix literal
family:NegativeBinomial:logits
Refused for: steps/observe_negative_binomial_logits.
Renders on: edward2, pyro.
Reported kinds:
family:NegativeBinomial:logits: jags has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
jags on steps/observe_negative_binomial_logits reports:
jags cannot score a draw from `NegativeBinomial`: jags has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
family:Wishart:scale_tril
Refused for: steps/sample_wishart_host_factor.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
family:Wishart:scale_tril: the Wishart's scale_tril is a Cholesky factor known only at run time, which jags has no Cholesky parameterization of Wishart to take; write it as a matrix literal
jags on steps/sample_wishart_host_factor reports:
jags cannot score a draw from `Wishart`: the Wishart's scale_tril is a Cholesky factor known only at run time, which jags has no Cholesky parameterization of Wishart to take; write it as a matrix literal
family:no-target-name:InverseWishart
Refused for: steps/sample_inverse_wishart_factor.
Renders on: numpyro, pyro, stan, turing.
Reported kinds:
jags on steps/sample_inverse_wishart_factor reports:
jags has no `InverseWishart` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:no-target-name:LKJCholesky
Refused for: lkj_cholesky_correlation.
Renders on: edward2, gen, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
jags on lkj_cholesky_correlation reports:
jags has no `LKJCholesky` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:no-target-name:MatrixNormal
Refused for: axes/matrix_kronecker, steps/observe_matrix_normal_col_factor, steps/observe_matrix_normal_row_factor, steps/sample_matrix_normal.
Renders on: edward2, gen, numpyro, pyro, stan, turing, webppl.
Reported kinds:
jags on axes/matrix_kronecker reports:
jags has no `MatrixNormal` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:no-target-name:OneHotCategorical
Refused for: steps/observe_onehot_categorical_logits, steps/sample_onehot_probs.
Renders on: edward2, numpyro, pyro.
Reported kinds:
jags on steps/observe_onehot_categorical_logits reports:
jags has no `OneHotCategorical` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:no-target-name:OrderedLogistic
Refused for: steps/observe_ordinal_code.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
jags on steps/observe_ordinal_code reports:
jags has no `OrderedLogistic` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:no-target-name:OrderedProbit
Refused for: steps/observe_ordered_probit.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
jags on steps/observe_ordered_probit reports:
jags has no `OrderedProbit` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:no-target-name:RelaxedBernoulli
Refused for: steps/observe_relaxed_bernoulli_logits.
Renders on: edward2, numpyro, pyro.
Reported kinds:
jags on steps/observe_relaxed_bernoulli_logits reports:
jags has no `RelaxedBernoulli` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:no-target-name:RelaxedOneHotCategorical
Refused for: steps/observe_relaxed_onehot_logits, steps/sample_relaxed_onehot_probs.
Renders on: edward2, pyro.
Reported kinds:
jags on steps/observe_relaxed_onehot_logits reports:
jags has no `RelaxedOneHotCategorical` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
let-expr:LetExprFactor:wide
Refused for: let_expressions/let_concat_slice_matrix.
Renders on: church, edward2, gen, numpyro, pymc, pyro, stan, turing, webppl.
Reported kinds:
jags on let_expressions/let_concat_slice_matrix reports:
jags cannot emit a `factor` over an axis as a `let` body: binder axes (2,) do not match the binding's declared plate (2, 6)
let-expr:axis-reduction:jags
Refused for: let_expressions/let_host_matrix_row, let_expressions/let_reduce_matrix, let_expressions/let_reduce_nested.
Renders on: edward2, numpyro, pymc, pyro, webppl.
Reported kinds:
let-expr:axis-reduction:jags: sum(...) over a rank-2 operand reduces only the innermost axis in QVR, and BUGS / JAGS `sum` contracts every axis; there is no target spelling for the partial reduction
let-expr:axis-reduction:jags: sum(...) over a rank-3 operand reduces only the innermost axis in QVR, and BUGS / JAGS `sum` contracts every axis; there is no target spelling for the partial reduction
jags on let_expressions/let_host_matrix_row reports:
jags-helper cannot emit a `let` body the IR carries as `axis-reduction` as a `let` body: sum(...) over a rank-2 operand reduces only the innermost axis in QVR, and BUGS / JAGS `sum` contracts every axis; there is no target spelling for the partial reduction
let-expr:elementwise-axis-operator:jags
Refused for: steps/marginalize_gathered_prior_data, steps/marginalize_per_group_prior_shared_class, lda.
Renders on: church, edward2, numpyro, pymc, pyro, stan, webppl.
Reported kinds:
let-expr:elementwise-axis-operator:jags: '+' between a rank-1 and a rank-1 operand has no BUGS / JAGS *expression* form: neither language lifts an infix operator over an axis, and the elementwise result exists only as a named array built one index at a time inside a loop of its own (`for (i in 1:N) { z[i] <- a[i] + b[i] }`), which a let-binding lowered to one scalar expression has nowhere to put. The one axis-carrying operand pair that does lower as an expression is the contracted product `sum(a * b)`, to `inprod(a, b)`
jags on steps/marginalize_gathered_prior_data reports:
jags-helper cannot lift an infix operator over an axis inside a `let`: '+' between a rank-1 and a rank-1 operand has no BUGS / JAGS *expression* form: neither language lifts an infix operator over an axis, and the elementwise result exists only as a named array built one index at a time inside a loop of its own (`for (i in 1:N) { z[i] <- a[i] + b[i] }`), which a let-binding lowered to one scalar expression has nowhere to put. The one axis-carrying operand pair that does lower as an expression is the contracted product `sum(a * b)`, to `inprod(a, b)`
marginalize:ungrouped-over-plate:tau
Refused for: steps/marginalize_factor_let_rows, changepoint.
Renders on: numpyro, pyro, stan, webppl.
Reported kinds:
jags on steps/marginalize_factor_let_rows reports:
`marginalize tau` carries no index and no `over =` clause, so it declares one latent and every row of the plated `observe` inside it is conditioned on that single draw. Its density thus accumulates the body's rows and reduces over the latent once, and JAGS scores the rows the other way round, giving each its own draw. That is a different measure, not a different base measure, so it is refused rather than emitted. Give the latent the plate its rows share (`marginalize tau : A`) or a grouping `over =` clause, either of which this target does emit correctly.
marginalize:ungrouped-over-plate:z
Refused for: steps/marginalize_body_let_chain, steps/marginalize_body_plated_let, steps/marginalize_latent_gather, steps/marginalize_latent_value, steps/marginalize_let_probs, steps/marginalize_let_vector_probs.
Renders on: numpyro, pyro, stan, webppl.
Reported kinds:
jags on steps/marginalize_body_let_chain reports:
`marginalize z` carries no index and no `over =` clause, so it declares one latent and every row of the plated `observe` inside it is conditioned on that single draw. Its density thus accumulates the body's rows and reduces over the latent once, and JAGS scores the rows the other way round, giving each its own draw. That is a different measure, not a different base measure, so it is refused rather than emitted. Give the latent the plate its rows share (`marginalize z : A`) or a grouping `over =` clause, either of which this target does emit correctly.
qiec:capability:effectful-row:read, qiec:capability:perform:read
Refused for: statements/qiec_effectful_computation.
Renders on: church, edward2, gen, numpyro, pymc, pyro, turing, webppl.
Reported kinds:
jags on statements/qiec_effectful_computation reports:
jags cannot transpile this program:
- QIEC computation `read` requires the `effectful-row` QIEC capability, but JAGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
- QIEC computation `read` requires the `perform` QIEC capability, but JAGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
qiec:capability:named-parameter:weighted_log_density, qiec:capability:weight:weighted_log_density
Refused for: statements/qiec_weight_primitives.
Renders on: church, edward2, gen, numpyro, pymc, pyro, turing, webppl.
Reported kinds:
jags on statements/qiec_weight_primitives reports:
jags cannot transpile this program:
- QIEC computation `weighted_log_density` requires the `named-parameter` QIEC capability, but JAGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
- QIEC computation `weighted_log_density` requires the `weight` QIEC capability, but JAGS has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
numpyro¶
Every program below renders on at least one other backend and is refused here.
family:NegativeBinomial:logits
Refused for: steps/observe_negative_binomial_logits.
Renders on: edward2, pyro.
Reported kinds:
family:NegativeBinomial:logits: numpyro has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
numpyro on steps/observe_negative_binomial_logits reports:
numpyro cannot score a draw from `NegativeBinomial`: numpyro has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
family:no-target-name:RelaxedOneHotCategorical
Refused for: steps/observe_relaxed_onehot_logits, steps/sample_relaxed_onehot_probs.
Renders on: edward2, pyro.
Reported kinds:
numpyro on steps/observe_relaxed_onehot_logits reports:
numpyro has no `RelaxedOneHotCategorical` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
pymc¶
Every program below renders on at least one other backend and is refused here.
data:per-row-vector-parameter:cuts
Refused for: steps/observe_vector_parameter_data.
Renders on: numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:cuts: the input fills a vector-valued family parameter with one vector per row of a plate, which pymc has no rendering for
pymc on steps/observe_vector_parameter_data reports:
The data input `cuts` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. pymc cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which pymc has no rendering for
data:per-row-vector-parameter:scores
Refused for: steps/observe_logits_data.
Renders on: edward2, numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:scores: the input fills a vector-valued family parameter with one vector per row of a plate, which pymc has no rendering for
pymc on steps/observe_logits_data reports:
The data input `scores` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. pymc cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which pymc has no rendering for
data:per-row-vector-parameter:weights
Refused for: steps/observe_probs_data.
Renders on: edward2, numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:weights: the input fills a vector-valued family parameter with one vector per row of a plate, which pymc has no rendering for
pymc on steps/observe_probs_data reports:
The data input `weights` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. pymc cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which pymc has no rendering for
family:Geometric:logits
Refused for: steps/observe_geometric_logits.
Renders on: edward2, numpyro, pyro.
Reported kinds:
family:Geometric:logits: pymc has no Geometric parameterized by its logits; write the probability the logits name as probs
pymc on steps/observe_geometric_logits reports:
pymc cannot score a draw from `Geometric`: pymc has no Geometric parameterized by its logits; write the probability the logits name as probs
family:InverseWishart
Refused for: steps/sample_inverse_wishart_factor.
Renders on: numpyro, pyro, stan, turing.
Reported kinds:
pymc on steps/sample_inverse_wishart_factor reports:
pymc has no `InverseWishart` distribution: the family registry contains no matching target distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:MatrixNormal:plated
Refused for: steps/observe_matrix_normal_col_factor, steps/observe_matrix_normal_row_factor.
Renders on: edward2, gen, numpyro, pyro, stan, turing, webppl.
Reported kinds:
pymc on steps/observe_matrix_normal_col_factor reports:
the PyMC `MatrixNormal` distribution scores one event, so a `MatrixNormal` site under a plate has no form on this target. Draw or observe a single event, or write the plated site with a family this target scores row by row.
family:NegativeBinomial:logits
Refused for: steps/observe_negative_binomial_logits.
Renders on: edward2, pyro.
Reported kinds:
family:NegativeBinomial:logits: pymc has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
pymc on steps/observe_negative_binomial_logits reports:
pymc cannot score a draw from `NegativeBinomial`: pymc has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
family:OneHotCategorical
Refused for: steps/observe_onehot_categorical_logits, steps/sample_onehot_probs, steps/sample_onehot_sampled_probs.
Renders on: edward2, numpyro, pyro.
Reported kinds:
pymc on steps/observe_onehot_categorical_logits reports:
pymc has no `OneHotCategorical` distribution: the family registry contains no matching target distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:RelaxedBernoulli
Refused for: steps/observe_relaxed_bernoulli_logits.
Renders on: edward2, numpyro, pyro.
Reported kinds:
pymc on steps/observe_relaxed_bernoulli_logits reports:
pymc has no `RelaxedBernoulli` distribution: the family registry contains no matching target distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:RelaxedOneHotCategorical
Refused for: steps/observe_relaxed_onehot_logits, steps/sample_relaxed_onehot_probs.
Renders on: edward2, pyro.
Reported kinds:
pymc on steps/observe_relaxed_onehot_logits reports:
pymc has no `RelaxedOneHotCategorical` distribution: the family registry contains no matching target distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
marginalize:ungrouped-over-plate:tau
Refused for: steps/marginalize_factor_let_rows, changepoint.
Renders on: numpyro, pyro, stan, webppl.
Reported kinds:
pymc on steps/marginalize_factor_let_rows reports:
`marginalize tau` carries no index and no `over =` clause, so it declares one latent and every row of the plated `observe` inside it is conditioned on that single draw. Its density thus accumulates the body's rows and reduces over the latent once, and PyMC scores the rows the other way round, giving each its own draw. That is a different measure, not a different base measure, so it is refused rather than emitted. Give the latent the plate its rows share (`marginalize tau : A`) or a grouping `over =` clause, either of which this target does emit correctly.
marginalize:ungrouped-over-plate:z
Refused for: steps/marginalize_body_let_chain, steps/marginalize_body_plated_let, steps/marginalize_latent_gather, steps/marginalize_latent_value, steps/marginalize_let_probs, steps/marginalize_let_vector_probs.
Renders on: numpyro, pyro, stan, webppl.
Reported kinds:
pymc on steps/marginalize_body_let_chain reports:
`marginalize z` carries no index and no `over =` clause, so it declares one latent and every row of the plated `observe` inside it is conditioned on that single draw. Its density thus accumulates the body's rows and reduces over the latent once, and PyMC scores the rows the other way round, giving each its own draw. That is a different measure, not a different base measure, so it is refused rather than emitted. Give the latent the plate its rows share (`marginalize z : A`) or a grouping `over =` clause, either of which this target does emit correctly.
pyro¶
pyro renders every program any other backend renders. Its remaining refusals are the language-level gaps of section 2.
stan¶
Every program below renders on at least one other backend and is refused here.
data:per-row-vector-parameter:cuts
Refused for: steps/observe_vector_parameter_data.
Renders on: numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:cuts: the input fills a vector-valued family parameter with one vector per row of a plate, which stan has no rendering for
stan on steps/observe_vector_parameter_data reports:
The data input `cuts` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. stan cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which stan has no rendering for
data:per-row-vector-parameter:scores
Refused for: steps/observe_logits_data.
Renders on: edward2, numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:scores: the input fills a vector-valued family parameter with one vector per row of a plate, which stan has no rendering for
stan on steps/observe_logits_data reports:
The data input `scores` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. stan cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which stan has no rendering for
data:per-row-vector-parameter:weights
Refused for: steps/observe_probs_data.
Renders on: edward2, numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:weights: the input fills a vector-valued family parameter with one vector per row of a plate, which stan has no rendering for
stan on steps/observe_probs_data reports:
The data input `weights` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. stan cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which stan has no rendering for
declare:simplex:event-rank:0
Refused for: steps/sample_relaxed_onehot_probs.
Renders on: edward2, pyro.
Reported kinds:
stan on steps/sample_relaxed_onehot_probs reports:
the declared shape of a `simplex` parameter has no Stan declaration form: event-rank:0. The site's axes do not say which of them are event axes. Name them with `[over=...]`, or draw from a family that fixes its own event shape.: Stan simplex requires exactly one event dim
family:Geometric:logits
Refused for: steps/observe_geometric_logits.
Renders on: edward2, numpyro, pyro.
Reported kinds:
family:Geometric:logits: stan has no Geometric parameterized by its logits; write the probability the logits name as probs
stan on steps/observe_geometric_logits reports:
stan cannot score a draw from `Geometric`: stan has no Geometric parameterized by its logits; write the probability the logits name as probs
family:NegativeBinomial:logits
Refused for: steps/observe_negative_binomial_logits.
Renders on: edward2, pyro.
Reported kinds:
family:NegativeBinomial:logits: stan has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
stan on steps/observe_negative_binomial_logits reports:
stan cannot score a draw from `NegativeBinomial`: stan has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
family:no-stan-target:OneHotCategorical
Refused for: steps/observe_onehot_categorical_logits, steps/sample_onehot_probs, steps/sample_onehot_sampled_probs.
Renders on: edward2, numpyro, pyro.
Reported kinds:
stan on steps/observe_onehot_categorical_logits reports:
stan has no `OneHotCategorical` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:no-stan-target:RelaxedBernoulli
Refused for: steps/observe_relaxed_bernoulli_logits.
Renders on: edward2, numpyro, pyro.
Reported kinds:
stan on steps/observe_relaxed_bernoulli_logits reports:
stan has no `RelaxedBernoulli` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:no-stan-target:RelaxedOneHotCategorical
Refused for: steps/observe_relaxed_onehot_logits.
Renders on: edward2, pyro.
Reported kinds:
stan on steps/observe_relaxed_onehot_logits reports:
stan has no `RelaxedOneHotCategorical` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
let-expr:axis-reduction:stan
Refused for: let_expressions/let_reduce_nested.
Renders on: edward2, numpyro, pymc, pyro, webppl.
Reported kinds:
let-expr:axis-reduction:stan: `sum(...)` in 's' reduces only the last axis of an argument with several axes, and Stan's `sum` reduces every axis of an array or matrix
stan on let_expressions/let_reduce_nested reports:
stan cannot emit a `let` body the IR carries as `axis-reduction` as a `let` body: `sum(...)` in 's' reduces only the last axis of an argument with several axes, and Stan's `sum` reduces every axis of an array or matrix
let-expr:row:softmax
Refused for: seq2seq.
Renders on: edward2, numpyro, pymc, pyro.
Reported kinds:
let-expr:row:softmax: `softmax` acts along the axis whose row is selected, so its entries are not computed row by row
stan on seq2seq reports:
stan cannot emit a `let` body the IR carries as `row` as a `let` body: `softmax` acts along the axis whose row is selected, so its entries are not computed row by row
qiec:capability:distribution:noisy, qiec:capability:effectful-row:noisy, qiec:capability:non-scalar-parameter:noisy, qiec:capability:perform:noisy, qiec:capability:site:noisy, qiec:capability:weight:noisy
Refused for: steps/call_step.
Renders on: church, edward2, gen, numpyro, pymc, pyro, turing, webppl.
Reported kinds:
qiec:capability:distribution:noisy
qiec:capability:effectful-row:noisy
qiec:capability:non-scalar-parameter:noisy
qiec:capability:perform:noisy
qiec:capability:site:noisy
qiec:capability:weight:noisy
stan on steps/call_step reports:
stan cannot transpile this program:
- QIEC computation `noisy` requires the `distribution` QIEC capability, but Stan has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
- QIEC computation `noisy` requires the `effectful-row` QIEC capability, but Stan has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
- QIEC computation `noisy` requires the `non-scalar-parameter` QIEC capability, but Stan has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
- QIEC computation `noisy` requires the `perform` QIEC capability, but Stan has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
- QIEC computation `noisy` requires the `site` QIEC capability, but Stan has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
- QIEC computation `noisy` requires the `weight` QIEC capability, but Stan has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
qiec:capability:effectful-row:read, qiec:capability:perform:read
Refused for: statements/qiec_effectful_computation.
Renders on: church, edward2, gen, numpyro, pymc, pyro, turing, webppl.
Reported kinds:
stan on statements/qiec_effectful_computation reports:
stan cannot transpile this program:
- QIEC computation `read` requires the `effectful-row` QIEC capability, but Stan has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
- QIEC computation `read` requires the `perform` QIEC capability, but Stan has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
qiec:capability:weight:weighted_log_density
Refused for: statements/qiec_weight_primitives.
Renders on: church, edward2, gen, numpyro, pymc, pyro, turing, webppl.
Reported kinds:
stan on statements/qiec_weight_primitives reports:
QIEC computation `weighted_log_density` requires the `weight` QIEC capability, but Stan has no semantics-preserving lowering for it. Choose a target whose QIEC capability set includes this feature, or change the computation; silently erasing it would change the program.
sample:discrete-latent:group
Refused for: let_expressions/let_row_gather_drawn.
Renders on: church, edward2, gen, numpyro, pymc, pyro, turing, webppl.
Reported kinds:
sample:discrete-latent:group: Stan has no discrete parameters, so a Categorical draw must be marginalized rather than sampled
stan on let_expressions/let_row_gather_drawn reports:
stan cannot emit this `sample` step: Stan has no discrete parameters, so a Categorical draw must be marginalized rather than sampled
sample:discrete-latent:x
Refused for: options/option_flag, statements/bundle_decl, statements/category_decl, statements/composition_decl, statements/contraction_decl, statements/deduction_decl, statements/export_decl, statements/object_decl_finset, statements/rule_decl, statements/schema_decl, statements/syntax_decl.
Renders on: bugs, church, edward2, gen, jags, numpyro, pymc, pyro, turing, webppl.
Reported kinds:
sample:discrete-latent:x: Stan has no discrete parameters, so a Bernoulli draw must be marginalized rather than sampled
stan on options/option_flag reports:
stan cannot emit this `sample` step: Stan has no discrete parameters, so a Bernoulli draw must be marginalized rather than sampled
sample:discrete-latent:z
Refused for: steps/observe_gather_event_vector, steps/observe_gather_matrix_row, steps/sample_bernoulli_logits, steps/sample_class_code.
Renders on: church, edward2, gen, numpyro, pymc, pyro.
Reported kinds:
sample:discrete-latent:z: Stan has no discrete parameters, so a Bernoulli draw must be marginalized rather than sampled
sample:discrete-latent:z: Stan has no discrete parameters, so a Categorical draw must be marginalized rather than sampled
stan on steps/observe_gather_event_vector reports:
stan cannot emit this `sample` step: Stan has no discrete parameters, so a Categorical draw must be marginalized rather than sampled
turing¶
Every program below renders on at least one other backend and is refused here.
data:per-row-vector-parameter:cuts
Refused for: steps/observe_vector_parameter_data.
Renders on: numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:cuts: the input fills a vector-valued family parameter with one vector per row of a plate, which turing has no rendering for
turing on steps/observe_vector_parameter_data reports:
The data input `cuts` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. turing cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which turing has no rendering for
data:per-row-vector-parameter:weights
Refused for: steps/observe_probs_data.
Renders on: edward2, numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:weights: the input fills a vector-valued family parameter with one vector per row of a plate, which turing has no rendering for
turing on steps/observe_probs_data reports:
The data input `weights` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. turing cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which turing has no rendering for
family:Categorical:logits
Refused for: steps/observe_logits_data, seq2seq.
Renders on: edward2, numpyro, pyro.
Reported kinds:
family:Categorical:logits: the target only exposes the probability parameterization; apply softmax in QVR and pass the result as probs
turing on steps/observe_logits_data reports:
turing cannot score a draw from `Categorical`: the target only exposes the probability parameterization; apply softmax in QVR and pass the result as probs
family:Geometric:logits
Refused for: steps/observe_geometric_logits.
Renders on: edward2, numpyro, pyro.
Reported kinds:
family:Geometric:logits: turing has no Geometric parameterized by its logits; write the probability the logits name as probs
turing on steps/observe_geometric_logits reports:
turing cannot score a draw from `Geometric`: turing has no Geometric parameterized by its logits; write the probability the logits name as probs
family:MultivariateNormal:scale_tril
Refused for: steps/observe_mvn_host_factor, steps/observe_mvn_lkj_factor.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
family:MultivariateNormal:scale_tril: the MultivariateNormal's scale_tril is a Cholesky factor known only at run time, which turing has no Cholesky parameterization of MultivariateNormal to take; write it as a matrix literal
turing on steps/observe_mvn_host_factor reports:
turing cannot score a draw from `MultivariateNormal`: the MultivariateNormal's scale_tril is a Cholesky factor known only at run time, which turing has no Cholesky parameterization of MultivariateNormal to take; write it as a matrix literal
family:NegativeBinomial:logits
Refused for: steps/observe_negative_binomial_logits.
Renders on: edward2, pyro.
Reported kinds:
family:NegativeBinomial:logits: turing has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
turing on steps/observe_negative_binomial_logits reports:
turing cannot score a draw from `NegativeBinomial`: turing has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
family:OneHotCategorical
Refused for: steps/observe_onehot_categorical_logits, steps/sample_onehot_probs, steps/sample_onehot_sampled_probs.
Renders on: edward2, numpyro, pyro.
Reported kinds:
turing on steps/observe_onehot_categorical_logits reports:
family:OrderedLogistic
Refused for: steps/observe_ordinal_code.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
turing on steps/observe_ordinal_code reports:
family:OrderedProbit
Refused for: steps/observe_ordered_probit.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
turing on steps/observe_ordered_probit reports:
family:RelaxedBernoulli
Refused for: steps/observe_relaxed_bernoulli_logits.
Renders on: edward2, numpyro, pyro.
Reported kinds:
turing on steps/observe_relaxed_bernoulli_logits reports:
family:RelaxedOneHotCategorical
Refused for: steps/observe_relaxed_onehot_logits, steps/sample_relaxed_onehot_probs.
Renders on: edward2, pyro.
Reported kinds:
turing on steps/observe_relaxed_onehot_logits reports:
family:Wishart:scale_tril
Refused for: steps/sample_wishart_host_factor.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
family:Wishart:scale_tril: the Wishart's scale_tril is a Cholesky factor known only at run time, which turing has no Cholesky parameterization of Wishart to take; write it as a matrix literal
turing on steps/sample_wishart_host_factor reports:
turing cannot score a draw from `Wishart`: the Wishart's scale_tril is a Cholesky factor known only at run time, which turing has no Cholesky parameterization of Wishart to take; write it as a matrix literal
let-expr:axis-reduction:turing
Refused for: let_expressions/let_reduce_nested.
Renders on: edward2, numpyro, pymc, pyro, webppl.
Reported kinds:
let-expr:axis-reduction:turing: `sum(...)` reduces the last axis of a factor over more than two binders, which the nested vector form has no single broadcast for
turing on let_expressions/let_reduce_nested reports:
turing-helper cannot emit a `let` body the IR carries as `axis-reduction` as a `let` body: `sum(...)` reduces the last axis of a factor over more than two binders, which the nested vector form has no single broadcast for
let-expr:nested-slice-gather:row_slice
Refused for: let_expressions/let_slice_gather.
Renders on: bugs, church, edward2, jags, numpyro, pymc, pyro, stan.
Reported kinds:
let-expr:nested-slice-gather:row_slice: 'row_slice' gathers slices of 2 axes from the factor table 'table', which Julia holds as a nested tower of vectors, one level per binder; a site reads such a slice with one subscript per axis, which the tower does not take
turing on let_expressions/let_slice_gather reports:
turing cannot emit a `let` body the IR carries as `nested-slice-gather` as a `let` body: 'row_slice' gathers slices of 2 axes from the factor table 'table', which Julia holds as a nested tower of vectors, one level per binder; a site reads such a slice with one subscript per axis, which the tower does not take
marginalize:ungrouped-over-plate:tau
Refused for: steps/marginalize_factor_let_rows, changepoint.
Renders on: numpyro, pyro, stan, webppl.
Reported kinds:
turing on steps/marginalize_factor_let_rows reports:
`marginalize tau` carries no index and no `over =` clause, so it declares one latent and every row of the plated `observe` inside it is conditioned on that single draw. Its density thus accumulates the body's rows and reduces over the latent once, and Turing.jl scores the rows the other way round, giving each its own draw. That is a different measure, not a different base measure, so it is refused rather than emitted. Give the latent the plate its rows share (`marginalize tau : A`) or a grouping `over =` clause, either of which this target does emit correctly.
marginalize:ungrouped-over-plate:z
Refused for: steps/marginalize_body_let_chain, steps/marginalize_body_plated_let, steps/marginalize_latent_gather, steps/marginalize_latent_value, steps/marginalize_let_probs, steps/marginalize_let_vector_probs.
Renders on: numpyro, pyro, stan, webppl.
Reported kinds:
turing on steps/marginalize_body_let_chain reports:
`marginalize z` carries no index and no `over =` clause, so it declares one latent and every row of the plated `observe` inside it is conditioned on that single draw. Its density thus accumulates the body's rows and reduces over the latent once, and Turing.jl scores the rows the other way round, giving each its own draw. That is a different measure, not a different base measure, so it is refused rather than emitted. Give the latent the plate its rows share (`marginalize z : A`) or a grouping `over =` clause, either of which this target does emit correctly.
marginalize:weight-plate:theta_tok
Refused for: steps/marginalize_gathered_prior_data, lda.
Renders on: church, edward2, numpyro, pymc, pyro, stan, webppl.
Reported kinds:
turing on steps/marginalize_gathered_prior_data reports:
sample:event-axis-lift:x
Refused for: steps/observe_gather_matrix_row.
Renders on: church, edward2, gen, numpyro, pymc, pyro.
Reported kinds:
sample:event-axis-lift:x: the site declares the residual event axis ['Dim'] and its arguments index the surrounding batch axis. The broadcast-dot and `arraydist` forms both fix the drawn value at the family's own rank, so the residual axis has no Turing.jl spelling on either path
turing on steps/observe_gather_matrix_row reports:
turing cannot emit this `sample` step: the site declares the residual event axis ['Dim'] and its arguments index the surrounding batch axis. The broadcast-dot and `arraydist` forms both fix the drawn value at the family's own rank, so the residual axis has no Turing.jl spelling on either path
webppl¶
Every program below renders on at least one other backend and is refused here.
batch-rank:2
Refused for: axes/vector_independent_array, steps/observe_gather_matrix_row.
Renders on: church, edward2, gen, numpyro, pymc, pyro.
Reported kinds:
webppl on axes/vector_independent_array reports:
the site is plated over 2 axes, and a WebPPL draw carries one: WebPPL emits one batch axis per sample; multi-axis plates not implemented
batch-rank:3
Refused for: axes/observe_independent_array, axes/scalar_independent_array, let_expressions/let_slice_gather.
Renders on: bugs, church, edward2, jags, numpyro, pymc, pyro, stan.
Reported kinds:
batch-rank:3: WebPPL emits one batch axis per observation; multi-axis plates not implemented
batch-rank:3: WebPPL emits one batch axis per sample; multi-axis plates not implemented
webppl on axes/observe_independent_array reports:
the site is plated over 3 axes, and a WebPPL draw carries one: WebPPL emits one batch axis per observation; multi-axis plates not implemented
data:per-row-vector-parameter:cuts
Refused for: steps/observe_vector_parameter_data.
Renders on: numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:cuts: the input fills a vector-valued family parameter with one vector per row of a plate, which webppl has no rendering for
webppl on steps/observe_vector_parameter_data reports:
The data input `cuts` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. webppl cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which webppl has no rendering for
data:per-row-vector-parameter:weights
Refused for: steps/observe_probs_data.
Renders on: edward2, numpyro, pyro.
Reported kinds:
data:per-row-vector-parameter:weights: the input fills a vector-valued family parameter with one vector per row of a plate, which webppl has no rendering for
webppl on steps/observe_probs_data reports:
The data input `weights` fills a vector-valued family parameter (a mean vector, a concentration, a probability vector) with one vector per row of the draw's plate, so it is a matrix whose rows the plated draw reads one at a time. webppl cannot hand a plated draw a different parameter vector at each row: its plated draw takes one parameter vector shared by every row. Pass one vector shared by every row, or transpile to edward2, numpyro or pyro, which take one vector per row.: the input fills a vector-valued family parameter with one vector per row of a plate, which webppl has no rendering for
family:Binomial:logits
Refused for: steps/observe_binomial_logits.
Renders on: edward2, numpyro, pymc, pyro, stan, turing.
Reported kinds:
family:Binomial:logits: webppl has no Binomial parameterized by its logits; write the probability the logits name as probs
webppl on steps/observe_binomial_logits reports:
webppl cannot score a draw from `Binomial`: webppl has no Binomial parameterized by its logits; write the probability the logits name as probs
family:Categorical:logits
Refused for: steps/observe_logits_data, seq2seq.
Renders on: edward2, numpyro, pyro.
Reported kinds:
family:Categorical:logits: the target only exposes the probability parameterization; apply softmax in QVR and pass the result as probs
webppl on steps/observe_logits_data reports:
webppl cannot score a draw from `Categorical`: the target only exposes the probability parameterization; apply softmax in QVR and pass the result as probs
family:Geometric:logits
Refused for: steps/observe_geometric_logits.
Renders on: edward2, numpyro, pyro.
Reported kinds:
family:Geometric:logits: webppl has no Geometric parameterized by its logits; write the probability the logits name as probs
webppl on steps/observe_geometric_logits reports:
webppl cannot score a draw from `Geometric`: webppl has no Geometric parameterized by its logits; write the probability the logits name as probs
family:MultivariateNormal:scale_tril
Refused for: steps/observe_mvn_host_factor, steps/observe_mvn_lkj_factor.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
family:MultivariateNormal:scale_tril: the MultivariateNormal's scale_tril is a Cholesky factor known only at run time, which webppl has no Cholesky parameterization of MultivariateNormal to take; write it as a matrix literal
webppl on steps/observe_mvn_host_factor reports:
webppl cannot score a draw from `MultivariateNormal`: the MultivariateNormal's scale_tril is a Cholesky factor known only at run time, which webppl has no Cholesky parameterization of MultivariateNormal to take; write it as a matrix literal
family:NegativeBinomial:logits
Refused for: steps/observe_negative_binomial_logits.
Renders on: edward2, pyro.
Reported kinds:
family:NegativeBinomial:logits: webppl has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
webppl on steps/observe_negative_binomial_logits reports:
webppl cannot score a draw from `NegativeBinomial`: webppl has no NegativeBinomial parameterized by its logits; write the probability the logits name as probs
family:Wishart:scale_tril
Refused for: steps/sample_wishart_host_factor.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
family:Wishart:scale_tril: the Wishart's scale_tril is a Cholesky factor known only at run time, which webppl has no Cholesky parameterization of Wishart to take; write it as a matrix literal
webppl on steps/sample_wishart_host_factor reports:
webppl cannot score a draw from `Wishart`: the Wishart's scale_tril is a Cholesky factor known only at run time, which webppl has no Cholesky parameterization of Wishart to take; write it as a matrix literal
family:no-webppl-target:InverseWishart
Refused for: steps/sample_inverse_wishart_factor.
Renders on: numpyro, pyro, stan, turing.
Reported kinds:
webppl on steps/sample_inverse_wishart_factor reports:
webppl has no `InverseWishart` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:no-webppl-target:OneHotCategorical
Refused for: steps/observe_onehot_categorical_logits, steps/sample_onehot_probs, steps/sample_onehot_sampled_probs.
Renders on: edward2, numpyro, pyro.
Reported kinds:
webppl on steps/observe_onehot_categorical_logits reports:
webppl has no `OneHotCategorical` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:no-webppl-target:OrderedLogistic
Refused for: steps/observe_ordinal_code.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
webppl on steps/observe_ordinal_code reports:
webppl has no `OrderedLogistic` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:no-webppl-target:OrderedProbit
Refused for: steps/observe_ordered_probit.
Renders on: numpyro, pymc, pyro, stan.
Reported kinds:
webppl on steps/observe_ordered_probit reports:
webppl has no `OrderedProbit` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:no-webppl-target:RelaxedBernoulli
Refused for: steps/observe_relaxed_bernoulli_logits.
Renders on: edward2, numpyro, pyro.
Reported kinds:
webppl on steps/observe_relaxed_bernoulli_logits reports:
webppl has no `RelaxedBernoulli` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:no-webppl-target:RelaxedOneHotCategorical
Refused for: steps/observe_relaxed_onehot_logits, steps/sample_relaxed_onehot_probs.
Renders on: edward2, pyro.
Reported kinds:
webppl on steps/observe_relaxed_onehot_logits reports:
webppl has no `RelaxedOneHotCategorical` distribution. Pick a family this target supports, or write the density you want as an explicit `score` step.
family:no-webppl-target:Wishart
Refused for: steps/sample_wishart_covariance, steps/sample_wishart_factor, steps/sample_wishart_precision.
Renders on: numpyro, pymc, pyro, stan, turing.
Reported kinds:
webppl on steps/sample_wishart_covariance reports: