Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadsharif1 committed Nov 12, 2024
1 parent 85ec39e commit 82f2712
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions benchmarks/decoders/benchmark_decoders_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import subprocess
import urllib.request
from concurrent.futures import ThreadPoolExecutor, wait
from dataclasses import dataclass
from itertools import product
from pathlib import Path
from typing import NamedTuple

import matplotlib.pyplot as plt
import numpy as np
Expand Down Expand Up @@ -480,7 +480,8 @@ def get_metadata(video_file_path: str) -> VideoStreamMetadata:
return VideoDecoder(video_file_path).metadata


class BatchParameters(NamedTuple):
@dataclass
class BatchParameters:
num_threads: int
batch_size: int

Expand Down

0 comments on commit 82f2712

Please sign in to comment.