MCPcopy
hub / github.com/PriorLabs/TabPFN / get

Method get

src/tabpfn/inference.py:1433–1440  ·  view source on GitHub ↗

Return the model on the given device. Raises: KeyError: If a device is specified that was not included in the last call to .to()

(self, device: torch.device)

Source from the content-addressed store, hash-verified

1431 self._models = {device: get_on_device(device) for device in devices}
1432
1433 def get(self, device: torch.device) -> Architecture:
1434 """Return the model on the given device.
1435
1436 Raises:
1437 KeyError: If a device is specified that was not included in the last call to
1438 .to()
1439 """
1440 return self._models[device]
1441
1442 def set_dtype(self, dtype: torch.dtype) -> None:
1443 """Set the dtype of the model's parameters."""

Callers 15

_has_displayFunction · 0.80
get_cached_tokenFunction · 0.80
_get_license_nameFunction · 0.80
check_license_acceptedFunction · 0.80
ensure_license_acceptedFunction · 0.80
save_as_safetensorsFunction · 0.80
get_cache_dirFunction · 0.80
log_model_init_paramsFunction · 0.80
load_fitted_tabpfn_modelFunction · 0.80
_call_modelMethod · 0.80

Calls

no outgoing calls