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
Copy file name to clipboardExpand all lines: ppsci/arch/dgmr.py
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -226,8 +226,8 @@ def forward(
226
226
Perform the sampling from Skillful Nowcasting with GANs
227
227
228
228
Args:
229
-
conditioning_states: Outputs from the `ContextConditioningStack` with the 4 input states, ordered from largest to smallest spatially
230
-
latent_dim: Output from `LatentConditioningStack` for input into the ConvGRUs
229
+
conditioning_states (List[paddle.Tensor]): Outputs from the `ContextConditioningStack` with the 4 input states, ordered from largest to smallest spatially
230
+
latent_dim (paddle.Tensor): Output from `LatentConditioningStack` for input into the ConvGRUs
231
231
Returns:
232
232
forecast_steps-length output of images for future timesteps
Copy file name to clipboardExpand all lines: ppsci/data/dataset/atmospheric_dataset.py
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
+
from __future__ importannotations
16
+
15
17
fromtypingimportList
16
18
fromtypingimportNamedTuple
17
19
fromtypingimportOptional
@@ -212,9 +214,9 @@ def stacked_to_dataset(
212
214
All variables must have preserved_dims dimensions.
213
215
214
216
Args:
215
-
stacked_array: Data in BHWC layout, encoded the same as dataset_to_stacked would if it was asked to encode `template_dataset`.
216
-
template_dataset: A template Dataset (or other mapping of DataArrays) demonstrating the shape of output required (variables, shapes, coordinates etc).
217
-
preserved_dims: dimensions from the target_template that were not folded in the predictions channels. The preserved_dims need to be a subset of the dims of all the variables of template_dataset.
217
+
stacked_array (xarray.Variable): Data in BHWC layout, encoded the same as dataset_to_stacked would if it was asked to encode `template_dataset`.
218
+
template_dataset (xarray.Dataset): A template Dataset (or other mapping of DataArrays) demonstrating the shape of output required (variables, shapes, coordinates etc).
219
+
preserved_dims (Tuple[str, ...]): dimensions from the target_template that were not folded in the predictions channels. The preserved_dims need to be a subset of the dims of all the variables of template_dataset.
218
220
219
221
Returns:
220
222
An xarray.Dataset (or other mapping of DataArrays) with the same shape and type as template_dataset.
0 commit comments