All pages
Diagnostic codes
Every diagnostic has a code, a primary span in a file you own, the expected and
actual facts, and a fix when one is known; see
check. A wrong name gets the nearest one
that exists, a wrong count or keyword the signature, and a value of the wrong
kind its type and text. W-* codes are warnings and never stop a compilation.
sexpgpu check <file> --json gives them as an array.
Reading and evaluating
| code | what it means | usual fix |
|---|---|---|
E-READ-001 | the file ends inside a form or a string; the message names the form by its first line | add the closer; the note marks the first line inside it that starts a list or vector at the opener's indentation or an outer indentation, where it most likely belongs |
E-READ-002 | a ) or ] with nothing open, or the wrong one for what is open | remove it, or close with the bracket the fix names; the note shows the open one |
E-READ-003 | a token that is not a number, keyword, string or symbol, including an out-of-range integer | 0.5 not .5; use an i64-range integer; : plus a name for a keyword; a symbol is letters, digits and -+*/<>=!?.&_% |
E-READ-004 | forms nest more than 256 deep, counting brackets and quotes; the span is the opener that goes past. What a macro expands to may nest deeper | name inner forms with let* or defun, or build deep data with a function |
E-EVAL-001 | the program called (error ...) | read the message |
E-EVAL-002 | an (assert ...) failed | read the message |
E-EVAL-003 | a name is not bound, or setq of one that is not, a knob used before its defknobs included. A name a macro wrote is looked up in the macro's module and the prelude, which the message names | the fix names the module that defines it, or the nearest name; for a macro's name, define it in the macro's module or pass it as an argument |
E-EVAL-004 | calling something that is not a function, or a macro as a function | the span is the head and the message states its value; wrap a macro in a lambda |
E-EVAL-005 | a malformed special form, lambda list, or a binding of reserved syntax | the fix writes the form's shape; see special forms |
E-EVAL-006 | an argument of the wrong type, a bad destructuring, a bad dtype keyword, a draw's :stream that is not a name or is in a parameter initializer | the message states the value it found, type and text; min or max of a tensor given a second value points to minimum or maximum |
E-EVAL-007 | integer overflow, mod and the numbers in front of a tensor in + - * / included; floor of a float no integer holds; or division by a zero number, as (mod x 0) | an integer is 64-bit: write one operand as a float, as 2.0; check the divisor |
E-EVAL-010 | a keyword argument that is not a keyword, unknown, or has no value | the fix names the nearest keyword and lists the accepted ones, or prints the signature; a note shows the definition |
E-EVAL-011 | the wrong number of arguments | the fix prints the signature, and a note shows the definition |
E-EVAL-030 | a file requires itself; the message spells the loop | move what both files need into a third file that both require |
E-EVAL-031 | a required file cannot be read; the message names the path it looked for | paths are relative to the file holding the require |
E-EVAL-032 | a require path is neither relative nor a package | ./name.sx, or sexpgpu/<module> |
E-EVAL-033 | no such standard module | the fix lists the ones that exist |
E-EVAL-034 | a require names nothing or is in a local scope | list names, at module top level |
E-EVAL-035 | a require names what the file does not define | the fix is the nearest name it does |
E-EVAL-036 | a name bound twice in one file, by two imports (from one module or two) or an import and a definition | rename, or import once |
E-EVAL-037 | an import the file never writes outside its requires. A name on a branch the selection skips counts as used, as does a contract name imported into the run file | take the name out of the require |
E-EVAL-040 | recursion deeper than 256 calls; the message names the function and points at its recursive call | no tail calls; check the base case, or loop with repeat, reduce or dotimes |
E-EVAL-041 | compile-time work budget exceeded or invalid | raise SEXPGPU_EVAL_LIMIT for finite generators |
E-EVAL-042 | --expr received zero or multiple forms | pass one form; combine forms with progn or let* |
E-EVAL-043 | a macro expands to itself, directly or through others: the call is still a macro call after 10,000 expansions in a row | give the macro a case that expands to something other than a macro call, or recurse in a function |
E-PROBE-001 | a probe reads loaded or runtime state, or emits metrics, counters, guards or selected diagnostics | return tensors computed from initialized parameters; use run for runtime state; --diagnostics '' selects none |
E-PROBE-002 | probe intermediate and output elements exceed --max-elements | shrink the fixture or explicitly raise the limit |
E-PROBE-003 | the reference interpreter refused an operation; the message is its reason, after initializing <path>: when the operation is in the initializer of a parameter or buffer the expression reads | check the shapes and values the expression or that initializer gives the operation |
Tensors and staging
| code | what it means | usual fix |
|---|---|---|
E-DIM-001 | shapes do not fit; the message names the axis or the dims that disagree. Also a shape whose dim or element count is past the largest integer, written or made by an operation, an axis of a rank-0 value, which has none, a sum or max listing one axis twice ([1 -1] on a rank-2 tensor), a table-scan :start that is not a state of its table, and a matrix-scan whose a is not [.., n, n] on b's [.., n, m] or whose n is above 16 | the note names both operands as you wrote them; the fix states the rule, or says to list each axis once |
E-DIM-002 | dtypes differ, :x is not a dtype, a where mask that is not :bool, a table-scan table or symbols are not :i32, integer ids or indices given as floats, a float operation given an integer tensor, or an operation inside high-precision does not support F64 | (cast x :f32); dtypes are :f64 :f32 :bf16 :i32 :i64 :bool; keep unsupported operations outside high-precision |
E-DIM-003 | a tensor was expected; the message states what was found | |
E-DIM-004 | reshape has multiple -1 extents, a nondivisible element count or an ambiguous zero product | use one inferred extent and an exactly dividing nonzero known product |
E-EINSUM-001 | malformed spec, operand count mismatch or an output label absent from all operands | write a string spec such as "bij,bjk->bik" with one tensor per input term |
E-EINSUM-002 | a repeated label within one operand or the output | extract diagonals explicitly; list each output label once |
E-EINSUM-003 | operand rank, shared extent or grouped extent mismatch | match the labels to tensor axes; shared extents must agree or be 1 |
E-FLOW-001 | compile-time truth on a tensor; includes the final operand of and or or | use logical-and, logical-or, logical-not, logical-xor, or select with (where test then else) |
E-FLOW-002 | a tensor from another graph; the message names its first binding | recompute it in this graph instead of keeping it in a variable |
E-FLOW-003 | a tensor operation with no graph being traced | tensors exist in prepare, a model, objective, evaluate, an optimizer body, an initializer or curriculum |
E-FUNC-001 | Invalid functional-call bindings or a missing trainable, buffer or frozen path | Combine (parameters model), (buffers model) and (frozen-parameters model) with tree-merge; see functional-call |
E-FUNC-002 | Functional-call binding has the wrong shape or kind | Match the parameter declaration's shape and kind |
E-FUNC-003 | A model-value query ran before canonical model paths were assigned during top-level loading | Query parameters, buffers or frozen-parameters inside a function or lambda |
E-TREE-001 | Invalid tensor/model-root tree, mismatched structure or conflicting merge/shared leaves | Use compatible trees and disjoint merge keys, or reuse the same tensor for overlaps; see tree-merge |
E-TRANSFORM-001 | Invalid function, argument selection or transform option | Pass a callable and distinct static argument indices; see grad |
E-TRANSFORM-002 | Invalid differentiated tree, cotangent/tangent type or scalar grad result | Use matching float trees for vjp/jvp; grad requires a scalar float result |
E-TRANSFORM-003 | A transformed call declares training objects or emits reporting/guard effects | Return auxiliary data and report or validate it outside the transformed function |
E-TRANSFORM-004 | The named derivative operation cannot be transformed | Use the supported pure tensor operations or simplify the derivative composition |
E-GRAD-001 | (gradient y x) where y is not one float value; the message gives its shape and dtype | reduce y with sum or mean first |
E-GRAD-002 | (gradient y x) where x is an integer or boolean tensor | take it with respect to a float tensor y is computed from |
E-GRAD-003 | (gradient y x) where y is not computed from x, so the gradient would be zeros | differentiate with respect to a tensor y reads, or write (zeros-like x) |
E-GRAD-004 | (gradient y x) where y reads the gradient a tap-gradient lambda is given, which exists only after the training backward | take gradient of a value computed without it |
E-GRAD-005 | (checkpoint body...) whose body records no tensor operation, as (checkpoint state) does; the message gives what it returns | wrap the computation that carries the state, (setq state (checkpoint (step state))); see recomputing a loop body |
E-GRAD-006 | a derivative through an operation that has none, qr | wrap its argument in stop-gradient to use the result as a constant; see qr |
E-CREDIT-001 | a forward-credit argument belongs to another graph | compute all four arguments in the same training graph |
E-CREDIT-002 | the local credit score is not a floating tensor with the activation's shape | compute an activation-shaped floating error |
E-CREDIT-003 | the local-credit activation is not floating point, or its input is neither floating point nor integer ids | cast the activation to :f32, or use a floating layer input or integer embedding ids |
E-CREDIT-004 | the local-credit activation and input do not share their leading axes | use the layer input and output for the same batch and sequence axes |
E-CREDIT-005 | the mapped value is not a direct parameter read | pass the parameter itself, without a reshape, transpose, cast or stop-gradient |
E-CREDIT-006 | the parameter shape does not match the input and activation feature axes; matrices use [input, output] | use a matching outer-product map, or mark the parameter :trainable false |
E-SCAN-001 | malformed element-scan call, a :reverse that is not true or false, implicit parameter or context read, a :state-axis that is not the sequences' last axis, or a body outside the lane contract: pointwise math, and with :state-axis reductions of vectors of at most 16 values | pass tensor reads as explicit sequences and return one f32 value of the state's shape; see element scans |
E-SCAN-002 | invalid scan length, sequence shape, carried shape, dtype or structure | keep a fixed tensor state and matching sequence lengths; see scan |
E-SCAN-003 | a declaration or reporting effect inside a scan body | declare state outside and return tensors to report after the scan |
E-SCAN-004 | a scan used with an unsupported training mode or inspection operation | use reverse-mode training and inspect the full document |
Models and optimizers
| code | what it means | usual fix |
|---|---|---|
E-PARAM-002 | defparam outside a model | parameters live inside defmodel |
E-PARAM-003 | an initializer reads another value | an initializer is closed: shapes, constants, random nodes |
E-PARAM-004 | a model body does not end in a function; the message shows the form it ends in | return (lambda (x) ...) last |
E-PARAM-005 | named on something that is not a model or a parameter | |
E-PARAM-006 | an unknown parameter option, or :numerics other than :high | the fix names the nearest; the options are :tags, :numerics, :trainable and :load |
E-PARAM-007 | :trainable that is not a boolean, or :load that is not a file and a tensor name; a with-loaded header that is not a file, a function and optional :trainable and :buffers booleans, or a function returning a non-string for a path, which the message names with the value | :trainable false, :load ["model.safetensors" "name"], a name function that returns a string |
E-PARAM-008 | a model under two parameter roots: bound to two top-level names, or reachable from two roots; the note shows the other binding | bind each model to one top-level name |
E-PARAM-009 | a graph reads a parameter of a model not bound by itself at the top level: built in a let, a function or a top-level list | bind it with defvar at the top of the run file, or build it inside the defmodel that uses it |
E-PARAM-010 | a model or parameter name holds a ., which joins the names of a path | write - or _ within a name |
E-PARAM-011 | distinct parameters share one checkpoint path; the diagnostic names the path and the declarations or model constructions | give each parameter or model instance a unique name with named; include the index for repeated construction; tie weights by reusing one parameter value |
E-BUFFER-001 | a defbuffer with an unknown option, :trainable or :load, or without an :after-step function; or whose update changes its shape or dtype, reads a field, a gradient, rank-local context or a random draw, or emits a metric, counter or guard; the message names which | (defbuffer average weight :after-step (lambda (old ctx) (+ (* 0.99 old) (* 0.01 weight)))); :tags, :numerics and a buffer outside a model report as for defparam |
W-PARAM-001 | a model is never bound to a name | bind it with let, or named |
E-OPT-001 | a selector matches no parameter | the fix names the nearest parameter path and lists them; or widen the glob |
E-OPT-002 | a parameter is in more than one group | narrow one selector with select-not |
E-OPT-003 | a misplaced or duplicate state, or a state initializer that is not a zero constant | start it at zero: zeros-like, zeros or a zero full |
E-OPT-004 | an optimizer body does not end in optimizer-update, or drops a state; the message lists declared and returned states | return every declared state exactly once |
E-OPT-005 | a malformed select, group, :groups or :optimizer, a negative rank in select, or an inner optimizer with :groups; the message states what was given | the fix prints the shape |
E-OBJ-001 | objective does not return one float scalar | reduce the loss; report the parts with metric |
E-OBJ-002 | invalid objective-term: not a float scalar in objective, duplicate or invalid name, or absent from the returned objective | register each complete weighted scalar once under a unique metric-style name, and sum the returned values |
The contract
| code | what it means | usual fix |
|---|---|---|
E-CONTRACT-001 | a required top-level name is missing | the fix writes the form that defines it, (defrun :steps 300 :microbatches 4); see the run file |
E-CONTRACT-002 | a contract name is the wrong kind of value; the span is where the file defines or imports it | the fix writes the form that defines it |
E-CONTRACT-003 | an unknown keyword in a configuration form or a builtin's options, negative :steps, :seed or :diagnose-first, a count below 1 or past what it holds (:batch-size, :microbatches, :checkpoint-every, :diagnose-every, a pass's :every or :batches), a bad :precision or :evaluate, an :ema decay below 0 or not below 1, a top-level model bound to ema under :ema, :ema-debias without :ema or not a boolean, a pass's :ema or a matrix-scan :reverse or :projective that is not a boolean, a pass's :prepare or :evaluate that is not a function, a manifest :subsets that is not a non-empty vector of strings, or a loader or stage :shuffle that is not a positive integer | the fix names the nearest keyword and lists the accepted ones, or the range a value takes; a nonnegative :steps; :subsets ["context:512"]; a positive :shuffle, or none for source order |
E-CONTRACT-004 | prepare did not return :inputs and :targets; the message lists the keys it did | (list :inputs ... :targets ...); the fix names a near miss |
E-CONTRACT-005 | the batch has no such field | the fix lists what the loader declares |
E-CONTRACT-010 | counter outside prepare | count where records are counted |
E-CONTRACT-011 | metric in an optimizer body | a diagnostic, or compute it in objective or evaluate |
E-CONTRACT-012 | a metric's metadata is over what Metrics accepts, runtime keys counted | fewer or shorter keys |
E-CONTRACT-013 | two defeval passes share a name | |
E-CONTRACT-014 | evaluate or curriculum with no evaluation pass (an explicit empty selection may disable inherited evaluate) | declare a pass |
E-CONTRACT-015 | a diagnostic without :reduce, with an unknown one, or two reducers for one name | one of :mean :min :max :sum |
E-CONTRACT-016 | a diagnostics selection that names nothing the file defines | the fix lists the names |
E-CONTRACT-017 | a metric, or a guard other than a diagnostic's bound, inside a tap-gradient lambda | report the gradient with diagnostic, and bound it with :below or :above |
E-CONTRACT-018 | defrun :evaluate :offline (or run --evaluate offline) with no :checkpoint-every while a pass has an :every, or one that does not divide it: sexpgpu evaluate would miss that pass's steps | a :checkpoint-every that divides every :every, or evaluate :inline; see evaluation |
E-CONTRACT-019 | a guard in a generator, a parameter initializer or the curriculum, which no step stops at; a diagnostic's bound in a generator is dropped with the diagnostic instead | guard in objective, evaluate or an optimizer body |
E-CONTRACT-020 | a guard whose count is a bool | (count-where mask), or (cast flag :f32) |
E-CONTRACT-021 | a source's :weight is NaN or infinite | finite positive weights |
E-CONTRACT-022 | a selected diagnostic reads a tap-gradient or requests per-term parameter gradients in a forward-only run, which computes no reverse gradient for it | select it in a :gradient :reverse run, or leave it out of :diagnostics |
E-CONTRACT-023 | the training loaders declare one field name twice, or two that have stages name them differently | give one field another name, keeping its column with :from; the same stage names in the same order, or one stage |
E-INFER-001 | the model alone, which a run's checkpoints hold and export writes, returns something other than tensors; the message shows it. A run says so and checkpoints without it | return only tensors from the model; see running a trained model |
Generation
E-GEN-008 reports an unsupported
persistent generator configuration or
reset mask. Use one device, one trip without :until, and state rows that
belong to one training loader. Return a bool vector with one reset flag per
slot, or with several loaders a list of one mask per loader. Resume with the
checkpoint's persistent state schema, loaders and microbatches, fork with the
checkpoint's training loaders unchanged, or start a fresh run with loaded model
weights.
| code | what it means | usual fix |
|---|---|---|
E-GEN-001 | a generator's :init, :step or :finish returned something other than a plist of tensors; the span is the lambda, the message shows what it returned | (list :sequence s :cache c), a keyword before each tensor |
E-GEN-002 | :step returned other keys, shapes or dtypes than :init made; the message shows both | the state keeps its keys, shapes and dtypes on every trip |
E-GEN-003 | the generator makes a name the training loader or a pass's loader reads as a field; the span is the lambda that returned it. A pass whose loader differs from the training loader in fields or batch size does not run the generator, so its prepare reading a generated name is E-CONTRACT-005 | rename it where the generator returns it; give the pass the training loader's fields and batch size, or name it in a generator's :passes |
E-GEN-004 | a metric inside a generator, which would never be reported. A diagnostic there, or in a model the generator runs, is dropped; a selection naming only such a one is E-CONTRACT-016 | return the value in the state and report it from objective |
E-GEN-005 | defgenerate without :trips, :init or :step, or :trips below 1; the message shows the value | (defgenerate :trips 15 :init start :step next) |
E-GEN-006 | a generator's :until returns anything but one bool scalar; the span is the lambda, the message shows the shape and dtype it returned | reduce over the rows to one flag, as in (> (min done) 0.5) |
E-GEN-007 | :passes is not a vector of pass names, or names a pass no defeval declares, or a pass another :passes names; or the file has two generators without :passes. The note shows the first | the fix names the nearest pass; name each pass in one :passes, and keep one training generator |
Records
| code | what it means | usual fix |
|---|---|---|
E-REC-001 | a record outside a pass's graph and the :finish of a generator of :passes: in training, or in a prepare training shares with the pass | record in the pass's own :prepare or :evaluate, or its generator's :finish |
E-REC-002 | a record without a table name or a column, a table name of other than letters, digits, ., _ and - or starting with ., a column without a first axis or whose first axis differs from the others, a :keep of more than one value a row, a column twice, or a table recorded twice in one graph or by a pass and its generator | give every column the rows as its first axis and each table a name of its own; the message names the column and its shape |
Knobs
| code | what it means | usual fix |
|---|---|---|
E-KNOB-001 | a knob is declared twice | the note shows the first; delete one |
E-KNOB-002 | a knob the file declares and never reads; setting it in a variant, a sweep or --set is not a read | read it, or delete it |
E-KNOB-003 | a variant or sweep sets something that is not a knob | the fix names the nearest and lists the knobs |
E-KNOB-004 | --variant or a sweep names a variant the file does not declare; the span is the nearest declaration | the fix names the nearest and lists the variants |
E-KNOB-005 | --set, or a checkpoint's recorded selection, names a knob the file does not declare; the span is the nearest declaration | the fix names the nearest and lists the knobs; for a recorded one, --drop-recorded-knob |
E-KNOB-006 | a variant declared twice, or after defknobs | the note shows the first or the knobs; move every defvariant above defknobs |
E-KNOB-007 | a sweep axis lists one value twice, or its :rows one row twice in any key order: two points would be one run under one slug. The message says which | drop the repeat |
E-KNOB-008 | --set seed=v in a file that declares no seed knob, with a v that is not a nonnegative integer; the span is the file's first line | --set seed=N with a nonnegative integer |
E-KNOB-009 | a sweep declared twice; the note shows the first | sexpgpu sweep names a sweep, so rename one or delete it |
E-KNOB-010 | --steps N in a file whose knob steps is not what defrun :steps reads, so the knob would say N while the run has another length. The span is :steps's value, the note the knob | (defrun :steps steps ...), or rename a knob that counts something else |
Run time and tools
| code | what it means | usual fix |
|---|---|---|
E-DP-001 .. E-DP-008 | several GPUs or nodes: configuration, rendezvous and resume | see devices |
E-CKPT-001 | a run without --resume into a checkpoint location that has checkpoints, or one forking --resume <location>/step-<n> into one whose first checkpoint was not forked from that path; the message names the location | --resume latest to continue it, or a new, empty --checkpoint-dir; see checkpoints |
E-CKPT-002 | another run opened this run's o41:// location, so this run stopped at its next checkpoint without saving it | nothing: the other run continues the location; see checkpoints |
E-CKPT-003 | a checkpoint a verb read, to resume, evaluate, bundle, take its choices or print it, is of a format this version does not read; the message names the version that wrote it | resume or evaluate it with that version, installed beside this one with the line the message gives, or train the run again; see checkpoints |
E-CHOICE-001 | a pinned run cannot take a recorded choice here: a stacking that does not fit or is not offered, a cuDNN engine this version cannot use on this device, a convolution the record has none for, or another dtype between nodes; the message names it | a device like the recorded one, SEXPGPU_NODE_GRADIENTS as recorded, --choices missing for a choice the record has none for, or --choices fresh; see determinism |
E-CHOICE-002 | --choices names no checkpoint or file with recorded choices, or --deterministic was given with --choices <record> or SEXPGPU_NODE_GRADIENTS=bf16 | a checkpoint written by this version, or one of the two |
E-GUARD-001 | a guard counted something at a step, an evaluation pass, a parameter's update or the first microbatch of sexpgpu gradients; the message names the guard, its metadata, the count (an optimizer's names the first parameter that counted), the step and where it is written | the run stopped at that step and its last checkpoint stands; resume from it with a fix, or look at the guard/<name> series |
E-DATA-001 | check --data could not read source metadata or project a sample record; the message names the loader or pass, file and expected/actual structure | check file access and the declared field shape/dtype; use nested lists for a multi-axis field, or declare a flat field and reshape it in prepare; see data samples |
E-LOAD-001 | a resume whose :load file is not the one the checkpoint's run read: another tensor, size or version (ETag, or SHA-256 of a local file); the message shows both | restore the file, or start the run again; see checkpoints |
E-MEM-001 | the smallest memory plan does not fit on the device, even with no execution cache; the message names the number and the largest part | fewer rows per microbatch (raise :microbatches), recompute a loop body with checkpoint, or a device with more memory; across nodes the default gradient transfer costs 10 bytes per parameter per GPU and SEXPGPU_NODE_GRADIENTS=f32 saves 6 of them; see devices |
E-MEM-002 | on Metal, a buffer exceeds the device's per-buffer limit, or allocation fails; the message names the bytes and the tensor | a smaller shape or more :microbatches; Metal has no memory plan, so this is its only check; see devices |
E-MEM-003 | a CUDA training microbatch could not allocate even after a retry with the caches released, or was the third in a row to fail: the run needs more memory than planned. The message names the step, the microbatch, the planned memory and what is free now | fewer rows per microbatch (raise :microbatches), a smaller model, or a device with more memory; see devices |
E-FMT-001 | the formatter refused its own output; the file was left as it was | a bug in SexpGPU: report it with sexpgpu feedback |
E-INTERNAL-001 | the compiled program failed validation | a bug in SexpGPU, never the experiment's fault: report it with sexpgpu feedback |
Training phases
| code | meaning | fix |
|---|---|---|
E-PHASE-001 | duplicate or reserved phase name | use a unique name other than default |
E-PHASE-002 | stage index outside the declared training stages | select a declared zero-based stage index |
E-PHASE-003 | phase preparation declares different counters | declare the same counters in the same order |
Run composition and pass values
| Code | Expected and actual | Fix |
|---|---|---|
E-RUN-001 | a literal first-form readable base path; malformed, misplaced or imported declaration instead | start the run with (extends "./base.sx"); use require for libraries |
E-RUN-002 | an acyclic chain of at most 64 links; a cycle or deeper chain instead | remove the circular link or shorten the chain |
E-RUN-003 | one override per name and setting per layer; conflicting declarations instead | keep one declaration; the note locates the other |
E-PASS-001 | a nonempty pass name and a generator value when supplied; invalid constructor inputs instead | use (eval-pass "dev" :loader dev-loader) and :generator (generator ...) |
E-PASS-002 | a list of evaluation pass values; another type or element instead | write defrun :evals (list (eval-pass "dev" :loader dev-loader)) |
E-PASS-003 | a list of declared pass names; wrong types or absent names instead | write defrun :drop-evals ["dev"] naming declared passes |
Batch mapping
| Code | Meaning | Fix |
|---|---|---|
E-VMAP-001 | Invalid function/axis signature, or no mapped tensor to infer an extent. | Supply a function and a static axis or one axis/nil per argument. |
E-VMAP-002 | Axis outside the tensor rank or unequal lane extents. | Select an existing axis with the same extent in all mapped leaves. |
E-VMAP-003 | A result cannot be stacked, or a captured input cannot be shared. | Return a tensor tree and pass runtime tensors as explicit arguments. |
See vmap for shared arguments and randomness.
Initialized state and transitions
| code | what it means | usual fix |
|---|---|---|
E-BRANCH-001 | Lazy branch predicate or branch schemas differ | Use a bool scalar and equal structures, shapes, kinds, aliases and static reporting schemas |
E-BRANCH-002 | A lazy branch contains an unsupported reporting effect | Keep record tables, forward-credit and adjoint taps outside lazy branches |
E-BRANCH-003 | A tensor-predicate branch occurs inside scan or vmap | Use where for eager selection |
E-BRANCH-004 | Differentiating changing-presence branches would exceed 16 specialized continuations | Give both arms the same dependence, or move the named branches outside the differentiated function |
E-BRANCH-005 | An optimizer's lazy branch depends on device data | Build the condition from host-known scalar ctx values and constants, or use where for eager selection |