Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for withDevices (0.31 sec)

  1. pkg/kubelet/cm/devicemanager/manager_test.go

    type containerAllocateResponseBuilderOption func(*containerAllocateResponseBuilder)
    
    // withDevices sets the devices for the containerAllocateResponseBuilder
    func withDevices(devices map[string]string) containerAllocateResponseBuilderOption {
    	return func(b *containerAllocateResponseBuilder) {
    		b.devices = devices
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/devicemanager/pod_devices_test.go

    	podID := "pod1"
    	contID := "con1"
    	devices := checkpoint.DevicesPerNUMA{0: []string{"dev1"}, 1: []string{"dev1"}}
    
    	podDevices.insert(podID, contID, resourceName1,
    		devices,
    		newContainerAllocateResponse(
    			withDevices(map[string]string{"/dev/r1dev1": "/dev/r1dev1", "/dev/r1dev2": "/dev/r1dev2"}),
    			withMounts(map[string]string{"/home/r1lib1": "/usr/r1lib1"}),
    		),
    	)
    
    	resContDevices := podDevices.getContainerDevices(podID, contID)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/flow-services/src/main/kotlin/org/gradle/internal/flow/services/FlowScheduler.kt

        instantiatorFactory: InstantiatorFactory,
        serviceRegistry: ServiceRegistry,
    ) {
        private
        val instantiator by lazy {
            instantiatorFactory
                .injectScheme()
                .withServices(injectableServicesOf(serviceRegistry))
                .instantiator()
        }
    
        fun schedule(scheduled: List<RegisteredFlowAction>) {
            scheduled.forEach { flowAction ->
                instantiator
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:01:34 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/internal/service/scopes/ProjectScopeServices.java

                DefaultPluginManager.class,
                get(PluginRegistry.class),
                new PluginInstantiator(
                    instantiatorFactory.injectScheme().withServices(this).instantiator(),
                    pluginScheme.getInstantiationScheme().withServices(this).instantiator()
                ),
                pluginTarget,
                buildOperationRunner,
                userCodeApplicationContext,
                decorator,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 09:21:42 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultValueSourceProviderFactory.java

            // TODO - dedupe logic copied from DefaultBuildServicesRegistry
            this.paramsInstantiator = instantiatorFactory.decorateScheme().withServices(services).instantiator();
            this.specInstantiator = instantiatorFactory.decorateLenientScheme().withServices(services).instantiator();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:25 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/services/internal/DefaultBuildServicesRegistry.java

            this.isolatableFactory = isolatableFactory;
            this.leaseRegistry = leaseRegistry;
            this.paramsInstantiator = instantiatorFactory.decorateScheme().withServices(services).instantiator();
            this.specInstantiator = instantiatorFactory.decorateLenientScheme().withServices(services).instantiator();
            this.listener = listener;
            listenerManager.addListener(new ServiceCleanupListener());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 19:15:45 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanPropertyReader.kt

        }
    
        override fun ReadContext.newBean(generated: Boolean): Any = if (generated) {
            val services = ownerService<ServiceRegistry>()
            instantiationScheme.withServices(services).deserializationInstantiator().newInstance(beanType, Any::class.java)
        } else {
            constructorForSerialization.newInstance()
        }
    
        override suspend fun ReadContext.readStateOf(bean: Any) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/flow-services/src/main/kotlin/org/gradle/internal/flow/services/FlowParametersInstantiator.kt

                }
            )
            DefaultTypeValidationContext.throwOnProblemsOf(type, problems.build())
        }
    
        private
        val instantiator by lazy {
            instantiatorFactory.decorateScheme().withServices(services).instantiator()
        }
    
        private
        val problemsService = services.get(Problems::class.java)
    
        private
        val inspection by lazy {
            inspectionSchemeFactory.inspectionScheme(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:01:34 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/api/services/internal/RegisteredBuildServiceProvider.java

            return new ServiceLifecycleException("Failed to create service '" + getName() + "'.", e);
        }
    
        private T instantiate(ServiceLookup instantiationServices) {
            return instantiationScheme.withServices(instantiationServices).instantiator().newInstance(getImplementationType());
        }
    
        private ServiceLookup instantiationServicesFor(@Nullable P isolatedParameters) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 09:24:00 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. tensorflow/cc/framework/scope.h

      /// control dependencies on other operations.
      Scope WithNoControlDependencies() const;
    
      /// Return a new scope. All ops created within the returned scope will have
      /// the device field set to 'device'.
      Scope WithDevice(const string& device) const;
    
      /// Returns a new scope.  All ops created within the returned scope will have
      /// their assigned device set to `assigned_device`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 09:08:33 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top