MCPcopy Create free account
hub / github.com/NVIDIA/cuda-tile / __init__

Method __init__

python/cuda_tile/dialects/cuda_tile_ops.py:1355–1362  ·  view source on GitHub ↗
(self, ty, values, *, loc=None, ip=None)

Source from the content-addressed store, hash-verified

1353 """Specialization for the constant op class."""
1354
1355 def __init__(self, ty, values, *, loc=None, ip=None):
1356 assert isinstance(ty, TileType), "expected tile type"
1357 el_ty = ty.element_type
1358 assert isinstance(
1359 el_ty, (_ods_ir.FloatType, _ods_ir.IntegerType)
1360 ), "expected integer or float element type"
1361 attrs = [_ensure_attr(v, el_ty) for v in values]
1362 super().__init__(_ods_ir.DenseElementsAttr.get(attrs, ty), loc=loc, ip=ip)
1363
1364
1365@_ods_cext.register_operation(_Dialect, replace=True)

Callers

nothing calls this directly

Calls 3

_ensure_attrFunction · 0.85
getMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected