Giter Club home page Giter Club logo

Comments (1)

aigujin avatar aigujin commented on August 12, 2024

Hi again,

I did a little of code modification and included option for using an OpenCL libraries. You can see that my GPU card has been recognized:

using OpenCL on GPU 0...    
loading data files...    
Word vocab size: 43617, Char vocab size: 84    
reshaping tensors...    
data load done. Number of batches in train: 653, val: 110, test: 1    
Word vocab size: 43617, Char vocab size: 84, Max word length (incl. padding):     53    
creating an LSTM-CNN with 2 layers    
Using Apple , OpenCL platform: Apple
Using OpenCL device: ATI Radeon HD 6770M
number of parameters in the model: 15431727    
cloning rnn    
cloning criterion 

However, the code breaks after that with this message:

/User/**/torch/install/bin/luajit: ...v/torch/install/share/lua/5.1/nn/TemporalConvolution.lua:41: attempt to call field 'TemporalConvolution_updateOutput' (a nil value)
stack traceback:
    .../torch/install/share/lua/5.1/nn/TemporalConvolution.lua:41: in function 'func'
    .../torch/install/share/lua/5.1/nngraph/gmodule.lua:311: in function 'neteval'
    .../torch/install/share/lua/5.1/nngraph/gmodule.lua:346: in function 'func'
    .../torch/install/share/lua/5.1/nngraph/gmodule.lua:311: in function 'neteval'
    .../torch/install/share/lua/5.1/nngraph/gmodule.lua:346: in function 'forward'
    main.lua:368: in function 'feval'
    main.lua:435: in main chunk
    [C]: in function 'dofile'
    .../torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
    [C]: at 0x010cf78bb0

I cannot get a hold of this error but I see they are from nn library. Does it mean that OpenCL project do not have the same set of operations in nn package when comparing to CUDA project?

from lstm-char-cnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.