MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / filter

Function filter

dnn/scripts/cutlass_generator/generator.py:1041–1051  ·  view source on GitHub ↗
(t: TileDescription)

Source from the content-addressed store, hash-verified

1039 )
1040
1041 def filter(t: TileDescription) -> bool:
1042 nonlocal tile
1043 return (
1044 t.threadblock_shape[0] == tile.threadblock_shape[0]
1045 and t.threadblock_shape[1] == tile.threadblock_shape[1]
1046 and t.threadblock_shape[2] == tile.threadblock_shape[2]
1047 and t.warp_count[0] == tile.warp_count[0]
1048 and t.warp_count[1] == tile.warp_count[1]
1049 and t.warp_count[2] == tile.warp_count[2]
1050 and t.stages == tile.stages
1051 )
1052
1053 if not any(t for t in tile_descriptions if filter(t)):
1054 continue

Callers 15

check_windowsFunction · 0.85
merge_trace_eventsFunction · 0.85
prune_reshape_oprsFunction · 0.85
_merge_getattr_exprMethod · 0.85
forwardMethod · 0.85
__init__Method · 0.85
einsum_implFunction · 0.85
fFunction · 0.85
check_windowsFunction · 0.85
test_multibatchsizeFunction · 0.85
filterMethod · 0.85
filter_engine_configsFunction · 0.85

Calls

no outgoing calls

Tested by 2

fFunction · 0.68
test_multibatchsizeFunction · 0.68