Row 61332

Row ID: 61332 | Dataset Entry | Axioma AXP Content Repository

Content Data

This page contains data entry 61332 from the Axioma AXP content repository. The structured data below represents the complete record for this entry.

I am working on an AI for an open source game. But when I try to load the pt file (the pytorch model) onto c++ using <torch/script.h> library, the program fails to execute torch::jit::script::Module model = torch::jit::load(filePath). The error I get is: main: Exception caught : open file failed because of errno 2 on fopen: No such file or directory, file path.

The obvious would be to check if the file path is correct, but it is. I know this because on an isolated environment, just a c++ main file using cmake, I am able to execute the exact same lines of code and the model is loaded and able to be used. Additionally, I am able to open the pt file using fstream on the game environment. Any help would be so much appreciated, this is for my thesis. Thank you in advance!

FieldValue
text I am working on an AI for an open source game. But when I try to load the pt file (the pytorch model) onto c++ using <torch/script.h> library, the program fails to execute torch::jit::script::Module model = torch::jit::load(filePath). The error I get is: main: Exception caught : open file failed because of errno 2 on fopen: No such file or directory, file path. The obvious would be to check if the file path is correct, but it is. I know this because on an isolated environment, just a c++ main …
label r/pytorch
dataType post
communityName r/pytorch
datetime 2024-05-23
username_encoded Z0FBQUFBQm5Lak1aekM0U3d5c0xqVEhGV3ZVMVh2TWhkNUhPYk5memRjUzRwVHVPUk5POFpCZ25YOGJlMmxVYjAxWElWMlAyOHJ2dllUazVHX1c0TTNaOWRzWTItZl9ZbGc9PQ==
url_encoded Z0FBQUFBQm5Lak9wOXgzd3plWUFGSXRsRXAxUlNRWEFFakk1azZGLUV5STV5MmhENEJRN3g5elMyT05hcTFqVVpsSGM3RzFMdGdtc3RuU0M4REtKbUduQmZXMWJkRXNKVlJNa3JSUEFsVjRTbWxzcHd6dldrbE9yc2d1c0pqYkRnVTZ3QllTS01BajJkTGc3TjA0a0xFR3VYZ1RYQmdRdjZIdUNBcHV5bFZtY3Bfamo0SWxyR0cyc2ZyZDRLbk9lTWNmYjFCQ2xFWmpZ

Raw Record

{
  "text": "I am working on an AI for an open source game. But when I try to load the pt file (the pytorch model) onto c++ using <torch/script.h> library, the program fails to execute torch::jit::script::Module model = torch::jit::load(filePath). The error I get is: main: Exception caught : open file failed because of errno 2 on fopen: No such file or directory, file path. \n\nThe obvious would be to check if the file path is correct, but it is. I know this because on an isolated environment, just a c++ main file using cmake, I am able to execute the exact same lines of code and the model is loaded and able to be used. Additionally, I am able to open the pt file using fstream on the game environment. Any help would be so much appreciated, this is for my thesis. Thank you in advance!",
  "label": "r/pytorch",
  "dataType": "post",
  "communityName": "r/pytorch",
  "datetime": "2024-05-23",
  "username_encoded": "Z0FBQUFBQm5Lak1aekM0U3d5c0xqVEhGV3ZVMVh2TWhkNUhPYk5memRjUzRwVHVPUk5POFpCZ25YOGJlMmxVYjAxWElWMlAyOHJ2dllUazVHX1c0TTNaOWRzWTItZl9ZbGc9PQ==",
  "url_encoded": "Z0FBQUFBQm5Lak9wOXgzd3plWUFGSXRsRXAxUlNRWEFFakk1azZGLUV5STV5MmhENEJRN3g5elMyT05hcTFqVVpsSGM3RzFMdGdtc3RuU0M4REtKbUduQmZXMWJkRXNKVlJNa3JSUEFsVjRTbWxzcHd6dldrbE9yc2d1c0pqYkRnVTZ3QllTS01BajJkTGc3TjA0a0xFR3VYZ1RYQmdRdjZIdUNBcHV5bFZtY3Bfamo0SWxyR0cyc2ZyZDRLbk9lTWNmYjFCQ2xFWmpZ"
}

Entry Information