MCPcopy Create free account
hub / github.com/NVIDIA/cutlass / argument

Method argument

python/cutlass_cppgen/backend/frontend.py:101–109  ·  view source on GitHub ↗
(tensor, is_output=False)

Source from the content-addressed store, hash-verified

99
100 @staticmethod
101 def argument(tensor, is_output=False):
102 if is_numpy_tensor(tensor):
103 return NumpyFrontend.argument(tensor, is_output)
104 elif is_torch_tensor(tensor):
105 return TorchFrontend.argument(tensor)
106 elif is_cupy_tensor(tensor):
107 return CupyFrontend.argument(tensor)
108 else:
109 raise NotImplementedError("Unknown Tensor Type")

Callers

nothing calls this directly

Calls 4

is_numpy_tensorFunction · 0.90
is_torch_tensorFunction · 0.90
is_cupy_tensorFunction · 0.90
argumentMethod · 0.45

Tested by

no test coverage detected