threads | R Documentation |
Get and set the numbers used by torch computations.
torch_set_num_threads(num_threads)
torch_set_num_interop_threads(num_threads)
torch_get_num_interop_threads()
torch_get_num_threads()
num_threads |
number of threads to set. |
For details see the CPU threading article in the PyTorch documentation.
torch_set_threads do not work on macOS system as it must be 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.