MCPcopy
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
3except ImportError:
4 def _assert(condition: bool, message: str):
5 assert condition, message
6
7
8def _float_to_int(x: float) -> int:

Callers 15

forwardMethod · 0.90
feature_take_indicesFunction · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
interpolateMethod · 0.90
window_partitionFunction · 0.90
grid_partitionFunction · 0.90
window_partition_nchwFunction · 0.90
grid_partition_nchwFunction · 0.90
get_resized_maskFunction · 0.90
forwardMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected