Skip to main content
torch.js has not been released yet.
torch.js logotorch.js logotorch.js
PlaygroundContact
Login
Documentation
IntroductionType SafetyTensor ExpressionsTensor IndexingEinsumEinopsAutogradTraining a ModelProfiling & MemoryPyTorch MigrationBest PracticesRuntimesPerformancePyTorch CompatibilityBenchmarksDType Coverage
torch.js· 2026
LegalTerms of UsePrivacy Policy
/
/
  1. docs
  2. Spark
  3. spark
  4. disableDirectSave

spark.disableDirectSave

function disableDirectSave(): void

Disable direct saves (use RPC-proxied saves instead).

Reverts to RPC-proxied saves through the parent window. Useful for testing or temporarily disabling direct saves.

Examples

spark.disableDirectSave();
// Saves will now use RPC proxy
Previous
deleteLocal
Next
enableDirectSave