Spenso · latest
On this page

set_symbolica_rayon_enabled

symbolica.community.tensor Function

set_symbolica_rayon_enabled(policy: SymbolicParallelism) -> bool

Set the threading policy for Spenso's Symbolica operations.

Parameters

policy SymbolicParallelism

Auto checks the license at this call; Serial disables symbolic parallelism; Parallel enables it without that automatic check.

Returns

bool

Whether the resolved policy permits parallel execution. Individual operations may still choose serial execution for small workloads.

Notes

This changes the process-wide policy, not just one tensor or network.

Examples

from symbolica.community.tensor import SymbolicParallelism, set_symbolica_rayon_enabled
allowed = set_symbolica_rayon_enabled(SymbolicParallelism.Auto)