MCPcopy Create free account
hub / github.com/devcontainers/cli / asHostGPURequirements

Function asHostGPURequirements

src/spec-node/imageMetadata.ts:245–251  ·  view source on GitHub ↗
(a: undefined | boolean | 'optional' | HostGPURequirements)

Source from the content-addressed store, hash-verified

243}
244
245function asHostGPURequirements(a: undefined | boolean | 'optional' | HostGPURequirements): HostGPURequirements {
246 if (typeof a !== 'object') {
247 return {};
248 } else {
249 return a as HostGPURequirements;
250 }
251}
252
253function parseBytes(str: string) {
254 const m = /^(\d+)([tgmk]b)?$/.exec(str);

Callers 1

mergeGpuRequirementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected