Open 3DTOPO opened 7 years ago
Have you tried to copy torch.framework (or the nn lua files) to the output target in XCode?
Yes; the torch.framework is being copied. I followed this tutorial and this works:
if torch == nil then
require "torch"
end
a = torch.rand(100,1)
b = torch.rand(1,100)
c = torch.dot(a,b)
print (c)
Can someone show me an example how using nn is supposed to look like? This is how I am trying to use it:
if nn == nil then
require "nn"
end
Should there be a nn.lua file or one of the files it is looking for above?
As far as I know you needn't import the nn package inside the lua script as it will already be loaded using the lua c api.
for an example.
I am attempting to use a lua script that imports 'nn', but I get the error:
I see there is already an nn folder in 3rd party, but I don't see any file called nn.lua or nn.dylib, etc. anywhere. Is it possible to use the 'nn' module?