Git Product home page Git Product logo

Comments (6)

Aipura avatar Aipura commented on July 22, 2024 1

train_dataloader = TrainDataLoader(
in_path = "./benchmarks/MetaQA/TransE/",
nbatches = 100,
threads = 8,
sampling_mode = "normal",
bern_flag = 1,
filter_flag = 1,
neg_ent = 25,
neg_rel = 0)

add "/" at the end of in_path line, and then solved the Segmentation fault problem.

from openke.

LoneChristmas avatar LoneChristmas commented on July 22, 2024

抱歉再来打扰一下,我执行train_rotate_WN18RR_adv.py(openke自带的rotate例子)的时候会出现:Finish initializing...
0%| | 0/1500 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/mnt/d/learning/kgqa/KGQA-master/OpenKE/train_rotate.py", line 47, in
trainer.run()
File "/mnt/d/learning/kgqa/KGQA-master/OpenKE/openke/config/Trainer.py", line 94, in run
loss = self.train_one_step(data)
File "/mnt/d/learning/kgqa/KGQA-master/OpenKE/openke/config/Trainer.py", line 53, in train_one_step
loss.backward()
File "/home/stone/.local/lib/python3.10/site-packages/torch/_tensor.py", line 487, in backward
torch.autograd.backward(
File "/home/stone/.local/lib/python3.10/site-packages/torch/autograd/init.py", line 200, in backward
Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass
RuntimeError: CUDA error: unknown error
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.
这样的情况,想问一下这个是由于cuda和pytorch版本对不上的问题吗?我用的是wsl+ubuntu,但是运行其他模型的训练例子代码都没什么问题,想请教一下有没有什么解决的思路。

from openke.

hp962183985 avatar hp962183985 commented on July 22, 2024

我也有segmentation fault的错误,请问你是怎么解决的?存储格式也是按照examples里数据集改的

from openke.

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.