Functions unavailable in DiffSharp
I have successfully installed DiffSharp (along with TorchSharp, Libsharp etc.), using the following F# script:
#r &quot;nuget: DiffSharp.Core&quot;
#r &quot;nuget: DiffSharp.Backends.Reference&quot;
#r &quot;nuget: DiffSharp.Data&quot;
#r &quot;nuget: DiffSharp.Backends.Torch&quot;
#r &quot;nuget: TorchSharp&quot;
#r &quot;nuget: LibTorchSharp&quot;

open System
open DiffSharp
open DiffSharp.Data
open DiffSharp.Model
open DiffSharp.Compose
open DiffSharp.Util
open DiffSharp.Optim

The following functions however, are not available (which should be, according to the DiffSharp API reference):
dsharp.config(backend=Backend.Torch, device=Device.CPU)
dsharp.seed(1)
let x = dsharp.randn([1024; 5])

Any ideas why? Am I missing any library or open statement?

I'm not sure why this is not working, but the DiffSharp installation isntructions recommend using the DiffSharp-cpu package (or one for cuda or lite version if you have LibTorch already) and that works fine for me:
#r &quot;nuget: DiffSharp-cpu&quot;

open DiffSharp

dsharp.config(backend=Backend.Torch, device=Device.CPU)
dsharp.seed(1)
let x = dsharp.randn([1024; 5])

Produces:
val x: Tensor =
  tensor([[-1.5256, -0.7502, -0.6540, -1.6095, -0.1002], ...])

