Giter Club home page Giter Club logo

lrd's People

Contributors

ysh-1998 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lrd's Issues

When running these four commands, I encountered the same issue regarding tensor type mismatch. I feel like this is not caused by tensor type mismatch, but more likely due to the virtual environment configuration issue.

Traceback (most recent call last):
File "main.py", line 132, in
main()
File "main.py", line 90, in main
logging.info('Test Before Training: ' + runner.print_res(model, data_dict['test']))
File "E:\LRD-main\src\helpers\BaseRunner.py", line 243, in print_res
result_dict = self.evaluate(model, data, self.topk, self.metrics)
File "E:\LRD-main\src\helpers\BaseRunner.py", line 206, in evaluate
predictions = self.predict(model, data)
File "E:\LRD-main\src\helpers\BaseRunner.py", line 225, in predict
out_dict = model(utils.batch_to_gpu(batch, model.device))
File "D:\Software\Anaconda\envs\dccf\lib\site-packages\torch\nn\modules\module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "E:\LRD-main\src\models\sequential\KDAPlus.py", line 148, in forward
prediction = self.rec_forward(feed_dict)
File "E:\LRD-main\src\models\sequential\KDAPlus.py", line 251, in rec_forward
context, target_attention = self.relational_dynamic_aggregation(
File "D:\Software\Anaconda\envs\dccf\lib\site-packages\torch\nn\modules\module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "E:\LRD-main\src\models\sequential\KDAPlus.py", line 466, in forward
target_attention = torch.where(valid_mask.squeeze(1).repeat(1,1,self.n_relation), target_attention, 0.)
RuntimeError: expected scalar type float but found double

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.