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
When reshaping a ConcreteRArray and performing pairwise multiplication, the result returns a standard Array rather than retaining the ConcreteRArray type. This behavior seems to deviate from the expected functionality, as it would be ideal for the result of such operations to preserve the ConcreteRArray type to ensure consistency in further operations. This issue becomes problematic when used within Lux neural networks. Specifically, when performing matrix operations on reshaped ConcreteRArray objects, the type mismatch between ConcreteRArray and Array triggers an ArgumentError due to objects being on different devices (ReactantDevice and CPUDevice). This disrupts the execution of the model and leads to errors in subsequent operations since Lux.Utils.make_abstract_matrix is involved internally.
Description
When reshaping a
ConcreteRArray
and performing pairwise multiplication, the result returns a standardArray
rather than retaining theConcreteRArray
type. This behavior seems to deviate from the expected functionality, as it would be ideal for the result of such operations to preserve theConcreteRArray
type to ensure consistency in further operations. This issue becomes problematic when used withinLux
neural networks. Specifically, when performing matrix operations on reshapedConcreteRArray
objects, the type mismatch betweenConcreteRArray
andArray
triggers anArgumentError
due to objects being on different devices (ReactantDevice
andCPUDevice
). This disrupts the execution of the model and leads to errors in subsequent operations sinceLux.Utils.make_abstract_matrix
is involved internally.Steps to reproduce
This triggers an error:
The text was updated successfully, but these errors were encountered: