Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 718 for divides (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/testdata/spmd.mlir

    module attributes {tf.versions = {producer = 888 : i32}, tf.devices = ["/job:localhost/replica:0/task:0/device:CPU:0", "/job:localhost/replica:0/task:0/device:TPU_SYSTEM:0", "/job:localhost/replica:0/task:0/device:TPU:0", "/job:localhost/replica:0/task:0/device:TPU:1", "/job:localhost/replica:0/task:0/device:TPU:2", "/job:localhost/replica:0/task:0/device:TPU:3", "/job:localhost/replica:0/task:0/device:TPU:4", "/job:localhost/replica:0/task:0/device:TPU:5", "/job:localhost/replica:0/task:0/device:TPU:6",...
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 12 04:22:33 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. pkg/util/procfs/procfs_fake.go

    limitations under the License.
    */
    
    package procfs
    
    type FakeProcFS struct{}
    
    // GetFullContainerName gets the container name given the root process id of the container.
    // E.g. if the devices cgroup for the container is stored in /sys/fs/cgroup/devices/docker/nginx,
    // return docker/nginx. Assumes that the process is part of exactly one cgroup hierarchy.
    func (fakePfs *FakeProcFS) GetFullContainerName(pid int) (string, error) {
    	return "", nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 09:22:35 UTC 2023
    - 986 bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/compile_mlir_util/convert_mhlo_quant_to_int.mlir

        func.return %1 : tensor<f32>
      }
    }
    
    // CHECK-LABEL: HloModule main
    // CHECK:       ENTRY %main.{{[0-9]+}} ([[ARG0:.*]]: f32[]) -> (f32[]) {
    // CHECK:         %[[DIV:.*]] = f32[] divide(f32[] %[[ARG0]],
    // CHECK:         %[[ADD:.*]] = f32[] add(f32[] %[[DIV]], f32[]
    // CHECK:         %[[CLAMP:.*]] = f32[] clamp(f32[] %[[MIN:.*]], f32[] %[[ADD]],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 07 16:28:50 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. src/cmd/link/internal/sym/reloc.go

    	RV_POWER_LO
    	RV_POWER_HI
    	RV_POWER_HA
    	RV_POWER_DS
    
    	// RV_390_DBL is a s390x-specific relocation variant that indicates that
    	// the value to be placed into the relocatable field should first be
    	// divided by 2.
    	RV_390_DBL
    
    	RV_CHECK_OVERFLOW RelocVariant = 1 << 7
    	RV_TYPE_MASK      RelocVariant = RV_CHECK_OVERFLOW - 1
    )
    
    func RelocName(arch *sys.Arch, r objabi.RelocType) string {
    	switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 15:33:31 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/compile/internal/test/testdata/divbyzero_test.go

    package main
    
    import (
    	"runtime"
    	"testing"
    )
    
    func checkDivByZero(f func()) (divByZero bool) {
    	defer func() {
    		if r := recover(); r != nil {
    			if e, ok := r.(runtime.Error); ok && e.Error() == "runtime error: integer divide by zero" {
    				divByZero = true
    			}
    		}
    	}()
    	f()
    	return false
    }
    
    //go:noinline
    func div_a(i uint, s []int) int {
    	return s[i%uint(len(s))]
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 1K bytes
    - Viewed (0)
  10. test/fixedbugs/issue43099.go

    // compile
    
    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Check to make sure we don't try to constant fold a divide by zero.
    // This is a tricky test, as we need a value that's not recognized as 0
    // until lowering (otherwise it gets handled in a different path).
    
    package p
    
    func f() {
    	var i int
    	var s string
    	for i > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 10 03:18:00 UTC 2020
    - 858 bytes
    - Viewed (0)
Back to top