jit_unserialize: Unserialize a Script Module

View source: R/trace.R

jit_unserializeR Documentation

Unserialize a Script Module

Description

Unserializes a script module from a raw vector (generated with jit_serialize').

Usage

jit_unserialize(obj)

Arguments

obj

(raw)
Serialized model.

Value

script_module model <- jit_trace(nn_linear(1, 1), torch_randn(1)) serialized <- jit_serialize(model) model2 <- jit_unserialize(serialized)


torch documentation built on Aug. 21, 2025, 5:50 p.m.