torch

    2热度

    2回答

    我有两个数据集x,y,x1,y1。我想用一个数字来绘制它们。 require 'gnuplot' local x,y,x1,y1 = unpack(data) gnuplot.xlabel('PPL') gnuplot.ylabel('Epoch #') gnuplot.plot({x,y},{x1,y1}) 这工作好,但我希望有直线,而不是虚线。另外,我想在右上角添加一个图例。 唉

    0热度

    1回答

    我目前使用的是Torch 7,我需要自定义丢失函数,特别是交叉熵错误函数。 我想添加一些交叉熵错误函数的参数,我找不到应修改的部分。 我看了CrossEntropyCriterion.lua,但仍然不知道方式,因为我没有看到这个文件中的任何方程式。 谁能告诉我方程在哪里?或者我应该修改哪个文件?

    0热度

    1回答

    dlualkuma57985:torch-hdf5 asuma2$ luarocks make hdf5-0-0.rockspec 按在这个环节上给予Missing dependency for hdf5: totem我试图 wget https://raw.githubusercontent.com/deepmind/torch-totem/master/rocks/totem-0-0.ro

    0热度

    1回答

    我使用的是Ubuntu 16.04。我有一个完美运行深层神经网络的码头集装箱。但是,如果我指定要使用CUDA,它抛出以下错误: /root/torch/install/bin/luajit: /root/torch/install/share/lua/5.1/trepl/init.lua:384: module 'cutorch' not found:No LuaRocks module foun

    -1热度

    1回答

    如何转换matlab代码mat1(mat2(1:idx, 2)) = 0至火炬没有循环?由于下面的循环版真的需要时间。 这里MAT1是vecter其长度为Ñ,MAT2是一个垫(Ñ,2)。 for i=1,idx do local idx = mat2[2][i] mat1[idx] = 0 end

    0热度

    1回答

    我有一个简单的问题。我想了解为什么gpu(cuda)和cpu给出的网络响应有很大差异。这里有一个小例子: require 'torch' require 'nn' require 'cunn' require 'paths' -- a small convnet net = nn.Sequential() net:add(nn.SpatialConvolution(3,16, 3,3

    2热度

    1回答

    我想执行的张量逻辑元素智能opertaions,但似乎“和”关键字进行逻辑或,而“或”关键字进行逻辑和 : a = torch.zeros(3) a[1] = 1 -- a will be [1,0,0] b = torch.ones(3) b[3] = 0 -- b will be [1,1,0] c = torch.eq(a,1) a

    1热度

    1回答

    使用unsqueeze():使用 view() input = torch.Tensor(2, 4, 3) # input: 2 x 4 x 3 print(input.unsqueeze(0).size()) # prints - torch.size([1, 2, 4, 3]) : input = torch.Tensor(2, 4, 3) # input: 2 x 4 x 3 pri

    8热度

    2回答

    因为我只有AMD A10-7850 APU,并且没有资金花在800美元到1200美元的NVIDIA图形卡上,所以我试图通过我拥有的资源来加速通过张量流的深度学习/ keras。 最初,我使用了Tensorflow的预编译版本。 InceptionV3需要大约1000-1200秒来计算1个纪元。它一直非常缓慢。 为了加速计算,我首先用优化器(使用AVX和SSE4指令)自编Tensorflow。这导致

    1热度

    1回答

    我试图用这个命令我的Linux CentOS的7计算机上安装luasql: luarocks install luasql-postgres 但不幸的是我得到了以下错误: Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luasql-postgres-2.3.5-2.