mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-07-07 11:12:19 +08:00
4 lines
151 B
Python
4 lines
151 B
Python
def assert_pts(condition: bool, message: str, *args, **kwargs) -> None:
|
|
if not condition:
|
|
raise Exception(message.format(*args, **kwargs))
|