You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue occurs specifically when ps is stored as a ComponentArray. Note that this works perfectly well on the CPU, or even on the GPU if ps is kept as a tuple instead of a ComponentArray. However, I need this setup to work with Optimization.jl, which requires using ComponentArray for parameter handling.
Could you help identify the source of this type instability? Is there a workaround to make the output type concrete while maintaining the architecture as defined? Any insights or debugging tips would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
I am trying to implement a neural network architecture inspired by the design outlined in this paper. Here's the code I am working with:
Problem Description
When running the
@code_warntype
analysis on the chain function call, I observe that the output type is non-concrete. Here is a snippet of the warning:The issue occurs specifically when
ps
is stored as aComponentArray
. Note that this works perfectly well on the CPU, or even on the GPU ifps
is kept as a tuple instead of aComponentArray
. However, I need this setup to work withOptimization.jl
, which requires usingComponentArray
for parameter handling.Here is a snippet of my environment:
Request
Could you help identify the source of this type instability? Is there a workaround to make the output type concrete while maintaining the architecture as defined? Any insights or debugging tips would be greatly appreciated.
The text was updated successfully, but these errors were encountered: