jit_unserialize | R Documentation |
Unserializes a script module from a raw vector (generated with jit_serialize
').
jit_unserialize(obj)
obj |
( |
script_module
model <- jit_trace(nn_linear(1, 1), torch_randn(1))
serialized <- jit_serialize(model)
model2 <- jit_unserialize(serialized)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.