Unverified Commit 2cece69e authored by Caroline Chen's avatar Caroline Chen Committed by GitHub
Browse files

Fix Python spacing (#1670)

parent 9e7aeea1
...@@ -124,7 +124,7 @@ def split_process_dataset(dataset: str, ...@@ -124,7 +124,7 @@ def split_process_dataset(dataset: str,
def text_mel_collate_fn(batch: Tuple[Tensor, Tensor], def text_mel_collate_fn(batch: Tuple[Tensor, Tensor],
n_frames_per_step: int=1) -> Tuple[Tensor, Tensor, Tensor, Tensor, Tensor]: n_frames_per_step: int = 1) -> Tuple[Tensor, Tensor, Tensor, Tensor, Tensor]:
"""The collate function padding and adjusting the data based on `n_frames_per_step`. """The collate function padding and adjusting the data based on `n_frames_per_step`.
Modified from https://github.com/NVIDIA/DeepLearningExamples Modified from https://github.com/NVIDIA/DeepLearningExamples
......
...@@ -29,12 +29,12 @@ This example would generate a file named `output.wav` in the current working dir ...@@ -29,12 +29,12 @@ This example would generate a file named `output.wav` in the current working dir
The information reported at each iteration and epoch (e.g. loss) is printed to standard output in the form of one json per line. Here is an example python function to parse the output if redirected to a file. The information reported at each iteration and epoch (e.g. loss) is printed to standard output in the form of one json per line. Here is an example python function to parse the output if redirected to a file.
```python ```python
def read_json(filename): def read_json(filename):
""" """
Convert the standard output saved to filename into a pandas dataframe for analysis. Convert the standard output saved to filename into a pandas dataframe for analysis.
""" """
import pandas import pandas
import json import json
with open(filename, "r") as f: with open(filename, "r") as f:
data = f.read() data = f.read()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment