I have learned Tensorflow2 for several months but I meet some difficulty.For example,I create one tensor like:
import tensorflow as tf
v=tf.random.normal((20,30,40))
Now I just want to save tensor v into suitable file.Actually speaking ,v is created from .nc data.I use packages "netCDF4" to read it and select some variables,whose dimensions are (time,lon,lat),to concat them into v with dimensions of (time,lon,lat,var_num).
But v's size is large (for example,(1000,224,224,5)).So I need to save v in case of reading netcdf for many times. I search some questions but little can help me because they are either about saving variables in tf1.X or saving models(or variables in models) in tf 2.
So I come here and seek handsome persons's help.Thanks a lot in advance.