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. SparkSetMessage

spark.SparkSetMessage

export interface SparkSetMessage {
  type: 'set';
  /** Key of the value to set */
  key: string;
  /** New value */
  value: unknown;
}
type('set')
key(string)
– Key of the value to set
value(unknown)
– New value

Message sent to set a value in the worker.

Previous
SparkSaveOptions
Next
SparkState