GithubHelp home page GithubHelp logo

Comments (8)

Chriskuei avatar Chriskuei commented on May 30, 2024 1

The latest version of MatchZoo-py (v1.1.1) has solved this issue

When I run the drmm code in tutorials, there is an error says:
Traceback (most recent call last):
File "pydrmm.py", line 64, in
callback=padding_callback
TypeError: init() got an unexpected keyword argument 'batch_size'
Why it occured?

DRMM tutorial has not been updated yet, you can refer to DRMMTKS tutorial

from matchzoo-py.

Chriskuei avatar Chriskuei commented on May 30, 2024

Please check if CUDA is currently available by using torch.cuda.is_available().

from matchzoo-py.

czt616 avatar czt616 commented on May 30, 2024

torch.cuda.is_available() returned true. But the speed seems the same as running on CPU.

from matchzoo-py.

lianrzh avatar lianrzh commented on May 30, 2024

@czt616 Try to change the parameter 'device' by setting device=torch.device('cpu') to check the speed of cpu. The default value of 'device' is torch.device('cuda') when CUDA is available.

from matchzoo-py.

PathricLee avatar PathricLee commented on May 30, 2024

I have the same problems, when torch.cuda.is_available() returned true, but the speed is still now. the gpu rate of utilization is about 10% and most of time is 0%.

from matchzoo-py.

Zhiyu-Chen avatar Zhiyu-Chen commented on May 30, 2024

It may result from this issue: #109

from matchzoo-py.

Chriskuei avatar Chriskuei commented on May 30, 2024

The latest version of MatchZoo-py (v1.1.1) has solved this issue

from matchzoo-py.

czt616 avatar czt616 commented on May 30, 2024

The latest version of MatchZoo-py (v1.1.1) has solved this issue

When I run the drmm code in tutorials, there is an error says:
Traceback (most recent call last):
File "pydrmm.py", line 64, in
callback=padding_callback
TypeError: init() got an unexpected keyword argument 'batch_size'
Why it occured?

from matchzoo-py.

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.