MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / find_approximate_hw

Function find_approximate_hw

datasets/bucket.py:8–12  ·  view source on GitHub ↗
(hw, hw_dict, approx=0.8)

Source from the content-addressed store, hash-verified

6
7
8def find_approximate_hw(hw, hw_dict, approx=0.8):
9 for k, v in hw_dict.items():
10 if hw >= v * approx:
11 return k
12 return None
13
14
15def find_closet_smaller_bucket(t, t_dict, frame_interval):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected