File: parameterized_utils.py

package info (click to toggle)
pytorch-audio 0.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,512 kB
  • sloc: python: 15,606; cpp: 1,352; sh: 257; makefile: 21
file content (10 lines) | stat: -rw-r--r-- 222 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
import json

from parameterized import param

from .data_utils import get_asset_path


def load_params(*paths):
    with open(get_asset_path(*paths), 'r') as file:
        return [param(json.loads(line)) for line in file]