-
Notifications
You must be signed in to change notification settings - Fork 46
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
conv func by myia #152
Comments
Hi dj, The indent in your code blocks got messed up when you copy/pasted it, it looks like. The first error is due to the fact the bprop function is not treated as a primitive but parsed as Myia code, and Myia does not support this kind of slicing at the moment (it will in the future), nor does it support setting slices (this feature will be added, but with a different syntax which lets us keep Myia pure functional). So it's a syntax error basically, and Myia doesn't report these cleanly at the moment. The second error is because To clarify, Keep in mind that this is still pre-alpha software, so some features that would be essential for a release are still missing, the error reporting is patchy, and the process to add ops is not well documented (mainly because it's probably going to change). We do plan to add a conv op, but we have yet to determine what would be the best interface for it -- you're welcome to discuss it with us and to try to come up with a prototype. We probably won't be very responsive in the next two weeks, though, because we'll all be on holiday. |
Thanks for reply. Just begin to add some array allocation ops and read more code. Some module is confused to me. 1.Not sure what 'specialize' will modify after the typer inference. Hmm, I think I'm still not very familiar with myia. |
Sorry for the late reply, I was on holidays.
|
A very interesting project. I read the paper and try to write some convolution functions by myia, still not work. Here is my code.
Then met the error as below:
File "/Users/kpy/src/opensrc/myia/myia/parser.py", line 420, in process_Subscript slice = self.process_node(block, node.slice) File "/Users/kpy/src/opensrc/myia/myia/parser.py", line 283, in process_node raise NotImplementedError(node) # pragma: no cover
Guess that it may be related by using slice, then I tried another method.
Got another error information:
File "/Users/kpy/src/opensrc/myia/myia/pipeline/resources.py", line 423, in renormalize _, context = self.infer(graph, argspec, outspec, clear=True) File "/Users/kpy/src/opensrc/myia/myia/pipeline/resources.py", line 411, in infer tracks=self.required_tracks File "/Users/kpy/src/opensrc/myia/myia/infer/graph_infer.py", line 843, in run self.run_coroutine(_check()) File "/Users/kpy/src/opensrc/myia/myia/infer/graph_infer.py", line 907, in run_coroutine raise err myia.infer.core.MyiaTypeMismatchError: ('Tuple[Int[64], Int[64]] != Array[Float[64]]', [<myia.infer.graph_infer.Reference object at 0x11c0d7c88>])
Do you have any idea what is wrong with my code?
The text was updated successfully, but these errors were encountered: