inst/examples/hello.R

library(rTorch)

# hello <- torch$as_tensor(list("Hello Torch!"))
# print(hello)

a <- torch$as_tensor(10)
b <- torch$as_tensor(32)

print(a+b)

Try the rTorch package in your browser

Any scripts or data that you put into this service are public.

rTorch documentation built on Jan. 13, 2021, 4:32 p.m.