question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ChainerX routines never raise Python primitive exception

See original GitHub issue

Currently, ChainerX routines raise only ChainerX specific exceptions. However, if a NumPy’s function raises a Python primitive exception, the corresponding ChainerX routine also should the same exception.

I have started wanting this compatibility when I was extending __getitem__ (https://github.com/chainer/chainer/pull/7561#issuecomment-505424397).

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
take-cheezecommented, Jul 1, 2019

Seems we need an exception policy in C++ code and binding code. I’ve faced the same problem when implementing clip function( https://github.com/chainer/chainer/pull/7285 ): https://github.com/chainer/chainer/blob/139de248629a3efccf6734565f64ab39a2fabbfb/chainerx_cc/chainerx/python/routines.cc#L674-L676

0reactions
stale[bot]commented, Nov 9, 2019

This issue is closed as announced. Feel free to re-open it if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ChainerX Tutorial — Chainer 7.8.1 documentation
The following example demonstrates how you can create an array and access its most basic attributes. Note that the APIs are identical to...
Read more >
Multi-engine multi-level simulation for system specification ...
the primitive components and objects, and to then develop them and the ... interface with programs written in C, C++, Java and Python....
Read more >
THESE Fangyan LI | Manualzz
The overarching goal is to define the primitive components and objects, ... ect., and it can interface with programs written in C, C++,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found