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,
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`.
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
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
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 json
import pandas
import json
with open(filename, "r") as f:
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