Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
59 views

I made a minimal example that crashes. For the crash it is required that the torch libraries are linked. I made sure that GLIBCXX_USE_CXX11_ABI=0 for all 3 components. Setup is Ubuntu, g++, C++17. Any ...
mzw's user avatar
  • 11
0 votes
1 answer
11k views

Im using the latest LibTorch with CUDA 12.6 installed on Windows 10 Libtorch is showing CUDA is available, however, I get this error when I try to use device = torch::Device(torch::kCUDA, 0); ...
Mich's user avatar
  • 3,704
3 votes
0 answers
71 views

I am currently working on optimizing PyTorch code running on CPU. On CUDA, you can write fused multiple operators into specialized kernels to reduce memory transfers, avoid intermediate data ...
Green 绿色's user avatar
  • 3,203
1 vote
0 answers
107 views

Environment Libtorch 2.5.0.dev (latest nightly) (built with CUDA 12.4) CUDA 12.4 TensorRT 10.1.0.27 PyTorch 2.4.0+cu124 Torch-TensorRT 2.4.0 Python 3.12.8 Windows 10 Compile Torch-TensorRT with ...
Mmmmyy's user avatar
  • 11
0 votes
0 answers
40 views

The problem I am faced with is to be able to fit a series of models starting with progressively different inputs. I am using the R interface to torch for this, which is based on pytorch. I have to use ...
Chechy Levas's user avatar
  • 2,406
1 vote
0 answers
43 views

I'm getting a segmentation fault when I'm trying to copy memory from gst buffer to torch tensor. Here is code. I'll mark where the segfault originates from: static GstPadProbeReturn on_probe( ...
vizn's user avatar
  • 26
2 votes
1 answer
159 views

I'm encountering an issue when trying to load a TorchScript model in my C++ application using LibTorch. The model loads and works fine in debug mode, but I get an exception when switching to release ...
Nimasha Konara's user avatar
0 votes
0 answers
40 views

I successfully built libtorch and generated the binary for the following simple function (torch::rand({2, 3});) to simulate it with gem5 in SE mode. However, the simulation takes a very long time, so ...
Cliff Wu's user avatar
1 vote
0 answers
163 views

I'm trying to load a traced PyTorch model in C++ using LibTorch but encountering a std::bad_alloc error. I've set up a minimal example to demonstrate the issue. The Problem: When running my C++ ...
works's user avatar
  • 127
1 vote
0 answers
58 views

I am looking for ways to batch inference instead of inference one request at a time in c++ For example, assuming each request in requests is a single prediction containing n feature, each feat for (...
progr's user avatar
  • 73
1 vote
1 answer
159 views

I am developing an AI chat desktop application targeting Apple M chips. The app utilizes embedding models and reranker models, for which I chose Rust-Bert due to its capability to handle such models ...
GraphicalDot's user avatar
  • 2,881
4 votes
0 answers
85 views

Ubuntu 24 system; CLion IDE. When trying to run code using OpenCV and Libtorch, the following errors occur: main.cpp:34:(.text+0xa28): undefined reference to `cv::putText(cv::_InputOutputArray const&...
Oleg Chaika's user avatar
0 votes
1 answer
323 views

I have the following tensor operation in Python: A = A[ :, h_offset:h_offset + fineSize, w_offset:w_offset + fineSize ] where *_offset and fineSize are some integers. I am ...
rbaleksandar's user avatar
  • 9,862
-1 votes
1 answer
149 views

Using VS Code launched from Visual Studio 2019 professional developer terminal (windows 11). I am trying to include torch/extension.h by including the path of the conda environment in which I have ...
Erik 's user avatar
0 votes
0 answers
103 views

After Installing MKL I can't find those dll files. And the error continues. Intel MKL FATAL ERROR: cannot load mkl_vml_avx2.1.dll or mkl_vml_def.1.dll, at runtime. Libtorch Distrib I'm using is: CUDA ...
David Huelves Ramos's user avatar
1 vote
1 answer
1k views

I trained simple model for MNIST using it https://github.com/pytorch/examples/blob/main/cpp/mnist/mnist.cpp I added code for saving model like below string model_path = "model.pt"; torch::...
John's user avatar
  • 25
0 votes
0 answers
46 views

I am trying to transfer data between Aramdillo matrix and LibTorch tensor. I referenced this project, but the conversion failed in my Linux environment. Then I tried to convert using the from_blob ...
一碗给力嗯's user avatar
0 votes
0 answers
668 views

Hello and thanks in advance! When following the official LibTorch installation guide, I ran across a four separate errors when building the project. I have not found solutions to the last two errors ...
Evan Abbott's user avatar
0 votes
0 answers
50 views

I have a RTX 4070 and it said nvidia-driver-535 is recommended. and I installed the driver. but when I type nvidia-smi, it said CUDA version: 12.2 but I want to get CUDA 11.8 or 12.1 Question : ...
Hyeonseop Lim's user avatar
0 votes
0 answers
80 views

I use a small net. The net converges and the accuracy is 1.0 after 400 iterations. So far, so good. conv1(torch::nn::Conv2dOptions(1, 15, /*kernel_size=*/3)), conv2(torch::nn::Conv2dOptions(15, 30,...
Dirk10000's user avatar
2 votes
1 answer
234 views

What would be the most efficient way to create libtorch (tch-rs) tensor from polars dataframe? I can only make it working with as_slice->from_slice like Tensor::from_slice( series.f64()? ....
user656449's user avatar
  • 3,074
0 votes
1 answer
922 views

Apologies if this isn't the best place to post this. I'm trying to learn how to do Pytorch in Rust. Have previous experience with Libtorch in C++ and Pytorch in Python. I'm running into issues setting ...
rootware's user avatar
1 vote
0 answers
96 views

I'm trying to run example of object detection using YOLO and libtorch. Here is the source code: //main.cpp #include <ATen/core/stack.h> #include <opencv2/core.hpp> #include <opencv2/...
JustLap's user avatar
  • 23
1 vote
0 answers
54 views

I'd like to reuse my Linux libtorch installation in Pytorch as well. The benefits would be: reducing unpacked Python package size by ~600MB of shared objects certainty that I'm using the same backend ...
mwlon's user avatar
  • 1,096
1 vote
0 answers
491 views

My problem is not related to the code, it is related to the "GPU memory" listed in the Windows task manager. Briefly about the problem: I have an RTX4090 video card with 24GB of video memory....
Alexander Korovin's user avatar

1
2 3 4 5
7