MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / dtype

Function dtype

tests/unit/inference/test_inference.py:131–132  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

129
130@pytest.fixture(params=[torch.float, torch.half], ids=["fp32", "fp16"])
131def dtype(request):
132 return request.param
133
134
135@pytest.fixture(params=[True, False], ids=["CG", "noCG"])

Callers 2

_autocast_dtypeFunction · 0.50
_get_pointersMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected