Skip to content

ValueError when running DR_system.py #5

@reactingflow

Description

@reactingflow

Hi Developers,

I encountered an issue while running the code that generates data. Here are the details:

Using backend: pytorch
Other supported backends: tensorflow.compat.v1, tensorflow, jax, paddle.
paddle supports more examples now and is recommended.
Generating operator data...
Traceback (most recent call last):
File "/home/wu/mionet-main/data/DR_system.py", line 134, in
main()
File "/home/wu/mionet-main/data/DR_system.py", line 130, in main
run(space, m, k, T, Nt, num_train, num_test)
File "/home/wu/mionet-main/data/DR_system.py", line 117, in run
np.savez_compressed("DR_train.npz", X_train=X_train, y_train=y_train)
File "/home/wu/.local/lib/python3.10/site-packages/numpy/lib/npyio.py", line 710, in savez_compressed
_savez(file, args, kwds, True)
File "/home/wu/.local/lib/python3.10/site-packages/numpy/lib/npyio.py", line 740, in _savez
val = np.asanyarray(val)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (3,) + inhomogeneous part.

Could you please provide guidance on how to resolve this issue? If additional information is required, please let me know.

Best regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions