Skip to content
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

How get the value from model dataset, such as norm_prediction? #70

Open
chufall opened this issue Apr 24, 2024 · 0 comments
Open

How get the value from model dataset, such as norm_prediction? #70

chufall opened this issue Apr 24, 2024 · 0 comments

Comments

@chufall
Copy link

chufall commented Apr 24, 2024

Hi.
The code has used the Xarray.dataset to store the intermediate varaiables .
Such as , norm_predictions which type is Xarray.dataset composed of several Xarray.DataArray 。

But how get the value from it? When I try to convert it to Numpy.narray with "norm_prediction.values()" ,
it gave me the following error:
{TracerArrayConversionError}The numpy.ndarray conversion method array() was called on traced array with shape float32[1,1,721,1440].

So how fix it?
Thanks a lot!
qc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant