Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 376 for r2devices (0.32 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

      auto& side_effect_analysis = getAnalysis<mlir::TF::SideEffectAnalysis>();
      // Get runtime devices information from the closest parent module.
      auto module = getOperation();
      mlir::TF::RuntimeDevices devices;
      if (failed(tensorflow::GetDevicesFromOp(module, &devices)))
        return signalPassFailure();
    
      OpBuilder builder(&getContext());
      llvm::SmallVector<mlir::tf_device::ClusterOp, 4> clusters;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/util/cgroups_linux.go

    }
    
    // getCgroupV1Path gets the file path to the "devices" subsystem of the desired cgroup.
    // cgroupPath is the path in the cgroup hierarchy.
    func getCgroupV1Path(cgroupPath string) (string, error) {
    	cgroupPath = libcontainerutils.CleanPath(cgroupPath)
    
    	mnt, root, err := libcontainercgroups.FindCgroupMountpointAndRoot(cgroupPath, "devices")
    	// If we didn't mount the subsystem, there is no point we make the path.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 12 07:50:19 UTC 2020
    - 2.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/test_util.cc

      for (const auto& device_name : device_names) {
        device_count->insert({device_name, 1});
      }
    
      std::vector<std::unique_ptr<Device>> devices;
      TF_CHECK_OK(DeviceFactory::AddDevices(
          options, "/job:localhost/replica:0/task:0", &devices));
      device_mgr_ = std::make_unique<StaticDeviceMgr>(std::move(devices));
    
      OptimizerOptions opts;
      lib_def_ = std::make_unique<FunctionLibraryDefinition>(OpRegistry::Global(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_device_helper.h

    class RuntimeDevices;
    
    // Returns true if at least one GPU device is available at runtime.
    bool CanUseGpuDevice(const RuntimeDevices &devices);
    
    // Returns true if all of the GPUs available at runtime support TensorCores
    // (NVIDIA compute capability >= 7.0).
    bool CanUseTensorCores(const RuntimeDevices &devices);
    
    // Returns true if operation does not have explicit device placement that would
    // prevent it from running on GPU device.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Nov 12 21:57:12 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/devicemanager/plugin/v1beta1/stub.go

    	klog.InfoS("ListAndWatch")
    
    	s.Send(&pluginapi.ListAndWatchResponse{Devices: m.devs})
    
    	for {
    		select {
    		case <-m.stop:
    			return nil
    		case updated := <-m.update:
    			s.Send(&pluginapi.ListAndWatchResponse{Devices: updated})
    		}
    	}
    }
    
    // Update allows the device plugin to send new devices through ListAndWatch
    func (m *Stub) Update(devs []*pluginapi.Device) {
    	m.update <- devs
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 11:19:10 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

        Builder* builder, OperationState* state, int n,
        std::optional<DictionaryAttr> devices,
        llvm::ArrayRef<std::pair<ValueRange, Type>> replicated_inputs,
        ValueRange packed_inputs, TypeRange replica_output_types) {
      DCHECK_GE(n, 2);
      state->addAttribute("n", builder->getI32IntegerAttr(n));
    
      if (devices.has_value()) state->addAttribute("devices", devices.value());
    
      Region* region = state->addRegion();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/tf_device_ops.mlir

    // -----
    
    // CHECK-LABEL: func @replicate_with_devices
    func.func @replicate_with_devices() {
      tf_device.replicate() {n = 2 : i32, devices = {TPU_REPLICATED_CORE_0 = ["/DEVICE:0", "/DEVICE:1"]}} {
        tf_device.return
      }
      func.return
    
    // CHECK:      tf_device.replicate
    // CHECK-SAME: devices = {TPU_REPLICATED_CORE_0 = ["/DEVICE:0", "/DEVICE:1"]}
    // CHECK-SAME: n = 2
    // CHECK-NEXT:   tf_device.return
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 23:53:20 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tpu-variable-runtime-reformatting.mlir

              // CHECK-SAME: devices = {TPU_REPLICATED_CORE_0 = ["/device:TPU:0", "/device:TPU:1"]
              %rep:2 = tf_device.replicate([%arg0, %arg1] as %arg30: tensor<*x!tf_type.resource<tensor<f32>>>,
                                  [%arg2, %arg3] as %arg31: tensor<*x!tf_type.resource<tensor<3x3x1x32xf32>>>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 25.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top