MCPcopy Create free account
hub / github.com/dagger/dagger / experimental_with_gpu

Method experimental_with_gpu

sdk/python/src/dagger/client/gen.py:2150–2167  ·  view source on GitHub ↗

EXPERIMENTAL API! Subject to change/removal at any time. Configures the provided list of devices to be accessible to this container. This currently works for Nvidia devices only. Parameters ---------- devices: List of devices to be acces

(self, devices: list[str])

Source from the content-addressed store, hash-verified

2148 return Container(_ctx)
2149
2150 def experimental_with_gpu(self, devices: list[str]) -> Self:
2151 """EXPERIMENTAL API! Subject to change/removal at any time.
2152
2153 Configures the provided list of devices to be accessible to this
2154 container.
2155
2156 This currently works for Nvidia devices only.
2157
2158 Parameters
2159 ----------
2160 devices:
2161 List of devices to be accessible to this container.
2162 """
2163 _args = [
2164 Arg("devices", devices),
2165 ]
2166 _ctx = self._select("experimentalWithGPU", _args)
2167 return Container(_ctx)
2168
2169 async def export(
2170 self,

Callers

nothing calls this directly

Calls 3

ArgClass · 0.90
_selectMethod · 0.80
ContainerClass · 0.70

Tested by

no test coverage detected