Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 204 for r2devices (0.23 sec)

  1. pkg/kubelet/cm/dra/claiminfo.go

    		prepared:       false,
    	}
    	for pluginName, devices := range info.CDIDevices {
    		annotations, _ := cdi.GenerateAnnotations(info.ClaimUID, info.DriverName, devices)
    		info.annotations[pluginName] = append(info.annotations[pluginName], annotations...)
    	}
    	return info
    }
    
    // setCDIDevices adds a set of CDI devices to the claim info.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:31 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_test_util.cc

          TF_NewStatus(), TF_DeleteStatus);
      TF_DeviceList* devices = TFE_ContextListDevices(ctx, status.get());
      CHECK_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      const int num_devices = TF_DeviceListCount(devices);
      for (int i = 0; i < num_devices; ++i) {
        const string dev_type(TF_DeviceListType(devices, i, status.get()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/core/saved_variable_loading_test.cc

        SessionOptions options;
        options.config.mutable_device_count()->insert({"CPU", 3});
        std::vector<std::unique_ptr<Device>> devices;
        TF_CHECK_OK(DeviceFactory::AddDevices(
            options, "/job:localhost/replica:0/task:0", &devices));
        device_mgr_ = absl::make_unique<StaticDeviceMgr>(std::move(devices));
        ctx_ = testing::CreateTestingEagerContext(device_mgr_.get());
      }
    
      EagerContext* context() { return ctx_.get(); }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 09:34:33 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_host_send_recv_device_context_test.cc

        auto device_factory = DeviceFactory::GetFactory(device_type);
        SessionOptions options;
        std::vector<std::unique_ptr<Device>> devices;
        Status s = device_factory->CreateDevices(
            options, "/job:worker/replica:0/task:0", &devices);
        device_ = std::move(devices[0]);
    
        AllocatorAttributes host_alloc_attr;
        host_alloc_attr.set_on_host(true);
        host_allocator_ = device_->GetAllocator(host_alloc_attr);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_experimental.h

                                                       size_t proto_len,
                                                       TF_Status* status);
    
    // TODO(b/166642410): It would be nice, for custom devices and for other users,
    // to have a non-string representation of devices (TF_Device) extracted from
    // tensors/ops/etc. and usable in APIs like OpSetDevice/ResetOp/etc.
    
    #define TFE_CUSTOM_DEVICE_VERSION 4
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/dra/claiminfo_test.go

    		expectedResult []kubecontainer.CDIDevice
    	}{
    		{
    			description: "empty CDI devices",
    			claimInfo: &ClaimInfo{
    				ClaimInfoState: state.ClaimInfoState{
    					CDIDevices: map[string][]string{},
    				},
    			},
    		},
    		{
    			description: "nil CDI devices",
    			claimInfo:   &ClaimInfo{},
    		},
    		{
    			description: "valid CDI devices",
    			claimInfo: &ClaimInfo{
    				ClaimInfoState: state.ClaimInfoState{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:31 UTC 2024
    - 21K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/flags.h

        // Once the rollout to GPU is complete, this flag can be deprecated.
        bool enabled_for_gpu_;
    
       private:
        // Devices for which using Device API (PjRt) is allowed in the XlaLaunch op.
        // This can only be modified programmatically.
        absl::flat_hash_set<std::string> xla_launch_allowed_devices_;
        // Devices for which using Device API (PjRt) is allowed in the
        // XlaCompileOnDemand op. This can only be modified programmatically.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 18:52:57 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/dra/manager.go

    				annotations = append(annotations, claimAnnotations...)
    
    				devices := claimInfo.cdiDevicesAsList()
    				klog.V(3).InfoS("Add CDI devices", "claim", *claimName, "CDI devices", devices)
    				cdiDevices = append(cdiDevices, devices...)
    
    				return nil
    			})
    			if err != nil {
    				return nil, fmt.Errorf("locked cache operation: %w", err)
    			}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:23:29 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  9. pkg/kubelet/apis/podresources/server_v1.go

    func NewV1PodResourcesServer(providers PodResourcesProviders) podresourcesv1.PodResourcesListerServer {
    	return &v1PodResourcesServer{
    		podsProvider:             providers.Pods,
    		devicesProvider:          providers.Devices,
    		cpusProvider:             providers.Cpus,
    		memoryProvider:           providers.Memory,
    		dynamicResourcesProvider: providers.DynamicResources,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 21 13:00:09 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

        int64_t device_id;
        if (!device_attr) {
          device_id = kAnyDevice;
        } else if (devices.find(device_attr) != devices.end()) {
          device_id = devices[device_attr];
        } else {
          device_id = 1 + devices.size();
          devices[device_attr] = device_id;
        }
    
        auto& alias_analysis = side_effect_analysis.GetAliasAnalysis();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
Back to top