Skip to main content
-1 votes
1 answer
61 views

I'm updating a Node.js project to support both CommonJS and ES Modules (Dual Package). My current issue appears when trying to load the module from the project root using exports field instead of main....
Hector Socarras's user avatar
3 votes
1 answer
115 views

Consider the following translation unit: export module Example; export inline void fn1(); export void fn2(); export void fn3(); void fn1() {} void fn2() {} module :private; void fn3() {} Firstly, ...
Tristan Brindle's user avatar
1 vote
0 answers
92 views

I try to execute the follow code fragment (actually the calling of JavaScript module inside of the python code): from py_mini_racer import MiniRacer ctx = MiniRacer() ctx.eval(""" ...
monteis's user avatar
  • 11
1 vote
2 answers
126 views

After converting module A to CPU, the origin parameter tensor still stays on the GPU? When it is released? Is it wrong if I reuse the parameter? My code: import torch.nn as nn class A(nn.Module): ...
jiwei zhang's user avatar
-2 votes
2 answers
80 views

I've inherited a GitHub job I don't understand well and that has stopped compiling. It creates a .a library for iOS. The source consists of a set of modules, each declared thus: export module x; ...
Imer Satz's user avatar
0 votes
2 answers
71 views

When I attempt to import a module from a local package (from core import config), VSCode's syntax highlighting isn't working. When hovering over config, it shows "config: Any" (the editor ...
Иван Чернецов's user avatar
1 vote
1 answer
46 views

I am trying to build a Python extension (module) with D and the pyd (https://github.com/ariovistus/pyd) and dub and ldc2 compiler on Windows. I have the following dub.sdl: name "hello" ...
Sam Saint-Pettersen's user avatar
0 votes
0 answers
87 views

I'm debugging a C++ program, and in order to do that, I'd like to have a look at objects, defined in imported libraries. However, the "Modules" window mentions some symbols not to be loaded ...
Dominique's user avatar
  • 17.6k
1 vote
1 answer
124 views

I’ve built a modular JavaFX application using JDK 21 and JavaFX SDK 21.0.1. The project runs perfectly inside my IDE (IntelliJ IDEA), but when I try to export it as a .jar file and run it outside the ...
Rohan's user avatar
  • 18
1 vote
1 answer
75 views

I tried training a BC algorithm using offline data and enabled the RL module in the algorithm configuration. I ran the code on Google Colab, which only provides 2 CPUs, and encountered the following ...
Alan Yu's user avatar
  • 19
7 votes
1 answer
101 views

Suppose I have a Rust crate mycrate with lib.rs: mod internal { pub struct X(); pub fn x() -> X { X() } } pub use internal::x; This works fine on Rust 2024 and any consumer ...
user31734535's user avatar
0 votes
0 answers
29 views

I hope you can help me with one, it's drivinig me crazy :( I recently splitted a giant file called admin.js into many modules, using these two WordPress functions: wp_register_script_module ...
Mauro Cassani's user avatar
3 votes
1 answer
136 views

In a blank new PyCharm Project I create a file "runner.py" with following code: import random print(random.random()) Next to this file I create a file "random.py" which stays ...
Silentfury's user avatar
1 vote
0 answers
119 views

I have some code I am working on that has a certain struct object Permissions:- // Stores permissions with a bit flag /// 1 << ? - Vote - Anyone with a weight > 0 can vote. /// 1 << ? -...
abelmarnk's user avatar
  • 119
0 votes
1 answer
108 views

I’m building a personal finance management app in Streamlit with multiple pages (dashboard.py, transactions.py, budget.py, export.py). I have a db.py file that contains all database functions, ...
Srijan Roy's user avatar

15 30 50 per page
1
2 3 4 5
1515