-
Notifications
You must be signed in to change notification settings - Fork 766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pymc.math: unknown attribute #6406
Comments
Thanks for the issue. This is occurring because you're not importing pymc.math. You have to import that module for this to work. The fact that it runs is just a side effect of what the pymc module is doing. (It imports pymc.math itself) See this issue for more information (similar situation) And this documentation: |
This is not all.
I did this, and here is the code:
|
@rchiodo could you please re-open and look at this error? |
That would likely be because pymc.math.exp is not returning anything. Yeah the definition looks like this: @scalar_elemwise
def exp(a):
"""e^`a`""" There's actually no code there. I'm guessing pymc is a python wrapper around some C code? It would need to specify return types for this to work correctly. Or you can turn off type checking in your code. That error won't show up if 'typeCheckingMode' is off, or if you put |
Type: Bug
I am using pymc library - a well known, famous and respectful one.
Here is the problem:
Environment file (use conda to recreate this environment):
e.yml.txt
Code to reproduce:
Extension version: 2024.9.1
VS Code version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z)
OS version: Linux x64 6.5.0-45-generic
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: