Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/huggingface/transformers
/ use_kernels
Method
use_kernels
src/transformers/modeling_utils.py:4692–4693 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
4690
4691
@property
4692
def
use_kernels(self) -> bool:
4693
return
getattr(self,
"_use_kernels"
, False)
4694
4695
@use_kernels.setter
4696
def
use_kernels(self, value: bool) -> None:
Callers
nothing calls this directly
Calls
2
kernelize
Method · 0.95
warning_once
Method · 0.80
Tested by
no test coverage detected