Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for withDevices (0.15 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. tensorflow/compiler/jit/clone_constants_for_better_clustering_test.cc

    }
    
    TEST(CloneConstantsForBetterClusteringTest, HostConstantPlacedOnCpu) {
      Scope root = Scope::NewRootScope().ExitOnError();
      Scope on_gpu = root.WithAssignedDevice(kGPU).WithDevice(kGPU);
      Scope on_cpu = root.WithAssignedDevice(kCPU).WithDevice(kCPU);
    
      Output in0 = ops::Placeholder(on_gpu.WithOpName("in0"), DT_FLOAT);
      Output in1 = ops::Placeholder(on_gpu.WithOpName("in1"), DT_FLOAT);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/DefaultInstantiationSchemeTest.groovy

        def "can specify a set of services to inject"() {
            def services = Mock(ServiceLookup)
            _ * services.get(String) >> "value"
    
            when:
            def value = scheme.withServices(services).instantiator().newInstance(WithServices)
    
            then:
            value.prop == "value"
        }
    
        def "can create instances without invoking their constructor to use for deserialization"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/DefaultInstantiatorFactory.java

            return decoratingLenientScheme.withServices(services).instantiator();
        }
    
        @Override
        public InstantiationScheme decorateScheme() {
            return decoratingScheme;
        }
    
        @Override
        public InstanceGenerator decorate(ServiceLookup services) {
            return decoratingScheme.withServices(services).instantiator();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  6. tensorflow/cc/framework/while_gradients_test.cc

            // Place body on cpu1
            Scope cpu1_scope = s.WithDevice("/cpu:1");
            outputs->push_back(ops::AddN(cpu1_scope, {inputs[0], inputs[1]}));
            outputs->push_back(inputs[1]);
            return cpu1_scope.status();
          });
    
      // Build gradient graph on cpu1
      Scope cpu1_scope = scope_.WithDevice("/cpu:1");
      TF_ASSERT_OK(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 27 20:32:17 UTC 2017
    - 7.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/InstantiationScheme.java

        /**
         * Creates a new {@link InstantiationScheme} which creates instances using the given services, based on the configuration of this scheme.
         */
        InstantiationScheme withServices(ServiceLookup services);
    
        /**
         * Returns the instantiator which creates instances using a default set of services, based on the configuration of this scheme.
         */
        InstanceGenerator instantiator();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

      return fdef_lib;
    }
    
    TEST_F(BuildXlaOpsTest, ControlDepsPreserved) {
      const char* kXlaDeviceName = "/job:worker/replica:0/task:0/device:XLA_CPU:0";
      Scope root = Scope::NewRootScope().WithDevice(kXlaDeviceName).ExitOnError();
    
      FunctionDefLibrary fdef_lib =
          CreateFunctionDefLibWithConstFunction("cluster_0");
      TF_ASSERT_OK(root.graph()->AddFunctionLibrary(fdef_lib));
      Node* call;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top