mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-07-10 08:20:16 +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))
|