Determinism-only gate for a schema.
Equivalent to the first half of SchemaGuard's constructor.
Exists so callers that do not need AMP dtype resolution can perform
just the determinism check without paying for the (small) extra work.
Parameters
schemaconst OpSchema&The op's schema record. Only the
deterministic, determinism_note, and name fields are read.Raises
LucidErrorThrown when
Determinism::is_enabled is true and schema.deterministic is false. The message starts with "non-deterministic op called under set_deterministic(True)" and appends schema.determinism_note in parentheses when non-empty.Notes
When determinism is not globally enabled, this function is a no-op and adds only a single relaxed atomic load to the call site.