Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 718 for divides (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc

      (*module_ref)->setAttr("tf.devices", device_dict);
    
      mlir::TF::RuntimeDevices devices;
      EXPECT_TRUE(mlir::succeeded(GetDevicesFromOp(*module_ref, &devices)));
    
      ASSERT_EQ(devices.NumDevices(), 1);
      ASSERT_EQ(devices.device_names().size(), 1);
      ASSERT_EQ(DeviceNameUtils::ParsedNameToString(devices.device_names()[0]),
                "/job:worker/replica:0/task:0/device:CPU:0");
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. pkg/kubelet/apis/podresources/server_v1alpha1_test.go

    		pods             []*v1.Pod
    		devices          []*podresourcesv1.ContainerDevices
    		expectedResponse *v1alpha1.ListPodResourcesResponse
    	}{
    		{
    			desc:             "no pods",
    			pods:             []*v1.Pod{},
    			devices:          []*podresourcesv1.ContainerDevices{},
    			expectedResponse: &v1alpha1.ListPodResourcesResponse{},
    		},
    		{
    			desc: "pod without devices",
    			pods: []*v1.Pod{
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h

    // Finds the TPU compilation device and execution devices from `devices` for a
    // TPU computation subgraph. Compilation device is determined from looking up
    // all TPU_SYSTEM:0 devices and choosing the CPU device associated to the first
    // TPU_SYSTEM device sorted lexicographically by replica and task. Execution
    // devices are determined by looking up all TPU devices associated with each
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  4. src/testing/benchmark_test.go

    			slices.SortFunc(s, func(a, b int) int {
    				compares++
    				return cmp.Compare(a, b)
    			})
    		}
    		// This metric is per-operation, so divide by b.N and
    		// report it as a "/op" unit.
    		b.ReportMetric(float64(compares)/float64(b.N), "compares/op")
    		// This metric is per-time, so divide by b.Elapsed and
    		// report it as a "/ns" unit.
    		b.ReportMetric(float64(compares)/float64(b.Elapsed().Nanoseconds()), "compares/ns")
    	})
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/resource/scale_int.go

    	// fast path when unscaled < max.Int64 and exp(10,dif) < max.Int64
    	const log10MaxInt64 = 19
    	if unscaled.Cmp(maxInt64) < 0 && dif < log10MaxInt64 {
    		divide := int64(math.Pow10(dif))
    		result := unscaled.Int64() / divide
    		mod := unscaled.Int64() % divide
    		if mod != 0 {
    			return result + 1
    		}
    		return result
    	}
    
    	// We should only convert back to int64 when getting the result.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 29 20:41:44 UTC 2017
    - 2.5K bytes
    - Viewed (0)
  6. test/recover3.go

    	f()
    }
    
    func main() {
    	var x int
    	var x64 int64
    	var p *[10]int
    	var q *[10000]int
    	var i int
    
    	check("int-div-zero", func() { println(1 / x) }, "integer divide by zero")
    	check("int64-div-zero", func() { println(1 / x64) }, "integer divide by zero")
    
    	check("nil-deref", func() { println(p[0]) }, "nil pointer dereference")
    	check("nil-deref-1", func() { println(p[1]) }, "nil pointer dereference")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.6K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/devicemanager/manager_test.go

    	callback  func(string, []pluginapi.Device)
    }
    
    func (m *wrappedManagerImpl) PluginListAndWatchReceiver(r string, resp *pluginapi.ListAndWatchResponse) {
    	var devices []pluginapi.Device
    	for _, d := range resp.Devices {
    		devices = append(devices, *d)
    	}
    	m.callback(r, devices)
    }
    
    func tmpSocketDir() (socketDir, socketName, pluginSocketName string, err error) {
    	socketDir, err = os.MkdirTemp("", "device_plugin")
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_cpu_device.cc

     public:
      Status ListPhysicalDevices(std::vector<string>* devices) override;
      Status CreateDevices(const SessionOptions& options, const string& name_prefix,
                           std::vector<std::unique_ptr<Device>>* devices) override;
    };
    
    Status XlaCpuDeviceFactory::ListPhysicalDevices(std::vector<string>* devices) {
      XlaDeviceFlags* flags = GetXlaDeviceFlags();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/device_util.cc

            "Multiple CPU devices ", device_info_cache.DebugString(devices)));
      }
    
      if (multiple_gpu_devices) {
        FAILED_TO_PICK_DEVICE(errors::Internal(
            "Multiple GPU devices ", device_info_cache.DebugString(devices)));
      }
    
      if (multiple_unknown_devices) {
        FAILED_TO_PICK_DEVICE(errors::Internal(
            "Multiple unknown devices ", device_info_cache.DebugString(devices)));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/devicemanager/topology_hints_test.go

    			request:     5,
    			devices: func() []pluginapi.Device {
    				devices := []pluginapi.Device{}
    				for i := 0; i < 100; i++ {
    					id := fmt.Sprintf("Dev%d", i)
    					devices = append(devices, makeNUMADevice(id, 0))
    				}
    				for i := 100; i < 200; i++ {
    					id := fmt.Sprintf("Dev%d", i)
    					devices = append(devices, makeNUMADevice(id, 1))
    				}
    				return devices
    			}(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 47.5K bytes
    - Viewed (0)
Back to top