Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/huggingface/pytorch-image-models
/ _assert
Function
_assert
timm/layers/trace_utils.py:4–5 ·
view source on GitHub ↗
(condition: bool, message: str)
Source
from the content-addressed store, hash-verified
2
from
torch
import
_assert
3
except
ImportError:
4
def
_assert(condition: bool, message: str):
5
assert condition, message
6
7
8
def
_float_to_int(x: float) -> int:
Callers
15
forward
Method · 0.90
feature_take_indices
Function · 0.90
forward
Method · 0.90
forward
Method · 0.90
forward
Method · 0.90
interpolate
Method · 0.90
window_partition
Function · 0.90
grid_partition
Function · 0.90
window_partition_nchw
Function · 0.90
grid_partition_nchw
Function · 0.90
get_resized_mask
Function · 0.90
forward
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected