Replies: 5 comments 8 replies
-
Action items:
|
Beta Was this translation helpful? Give feedback.
-
Solution I: Description of current ad hoc fix When the metadata from the parent electron is being injected into the collected nodes, I've simply filtered out the |
Beta Was this translation helpful? Give feedback.
-
Copy-pasted from #1191: When Covalent auto-generates electrons for collections and dunder methods, filter out the calldeps generated by File Transfers (both
|
Beta Was this translation helpful? Give feedback.
-
@cjao Let's continue our discussion here going forward. For context, there are some good points mentioned in the PR #1190 . |
Beta Was this translation helpful? Give feedback.
-
I prefer the solution which involves entirely removing collection nodes, and instead injecting the variable mutation into the subsequent electron. Suppose that an electron has these inputs:
Currently this requires two collector electrons for
and also provide a surjective map that specifies how the args are re-packaged:
The mutation is defined as follows:
The output looks like
This is performed directly after the function and its args are unpickled on the remote backend, so that the function is called as
|
Beta Was this translation helpful? Give feedback.
-
Currently, we are running into a bug involving file transfers and electrons that return iterable outputs such as:
The underlying cause of this bug is as follows:
numpy.array(a, b)
, which again would require the numpy package to be able to unpack the iterables.task
executes successfully but when the unpacking action begins, the metadata in the parent electron is injected into the collected electron nodes. N.B. The unpacked iterables each are converted into electrons and it's these electrons where the parent electron metadata is injected.Now, there's a proposed fix for the bug in #1190. However, this is just a quick fix and we need to reconsider how to make file transfer, pip install dependencies and electron collection compatible in a more elegant manner.
Other issues
retval_keyword
represents inmetadata['call_before']['attributes']['retval_keyword']
This discussion is motivated by #1179 and #1191.
Beta Was this translation helpful? Give feedback.
All reactions