Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 113 for ABS (0.03 sec)

  1. src/cmd/go/internal/modload/modfile.go

    	if filepath.IsAbs(r.Path) || r.Version != "" || modRoot == "" {
    		return r
    	}
    	workFilePath := WorkFilePath()
    	if workFilePath == "" {
    		return r
    	}
    	abs := filepath.Join(modRoot, r.Path)
    	if rel, err := filepath.Rel(filepath.Dir(workFilePath), abs); err == nil {
    		return module.Version{Path: ToDirectoryPath(rel), Version: r.Version}
    	}
    	// We couldn't make the version's path relative to the workspace's path,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 17:53:40 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc

          bias_quantized_type != nullptr) {
        double bias_half_range = 0.0f;
        for (auto bias : bias_values.getValues<APFloat>()) {
          if (bias_half_range < std::abs(bias.convertToFloat())) {
            bias_half_range = std::abs(bias.convertToFloat());
          }
        }
        if (bias_half_range / bias_quantized_type.getScale() < kBiasMax) {
          return SetOperandParams(op, bias_index, params);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 38.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/driver/html/common.js

      }
    
      function panStart(x, y) {
        moved = false;
        panLastX = x;
        panLastY = y;
      }
    
      function panMove(x, y) {
        let dx = x - panLastX;
        let dy = y - panLastY;
        if (Math.abs(dx) <= 2 && Math.abs(dy) <= 2) return; // Ignore tiny moves
    
        moved = true;
        panLastX = x;
        panLastY = y;
    
        // Firefox workaround: get dimensions from parentNode.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 20K bytes
    - Viewed (0)
  4. src/debug/gosym/symtab.go

    		if pc == 0 {
    			return 0, nil, &UnknownLineError{file, line}
    		}
    		return pc, t.PCToFunc(pc), nil
    	}
    
    	abs, err := obj.alineFromLine(file, line)
    	if err != nil {
    		return
    	}
    	for i := range obj.Funcs {
    		f := &obj.Funcs[i]
    		pc := f.LineTable.LineToPC(abs, f.End)
    		if pc != 0 {
    			return pc, f, nil
    		}
    	}
    	return 0, nil, &UnknownLineError{file, line}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  5. pkg/credentialprovider/config_test.go

    	if err != nil {
    		t.Fatalf("Creating tmp dir fail: %v", err)
    		return
    	}
    	defer os.RemoveAll(preferredPath)
    	absDockerConfigFileLocation, err := filepath.Abs(filepath.Join(preferredPath, configJSONFileName))
    	if err != nil {
    		t.Fatalf("While trying to canonicalize %s: %v", preferredPath, err)
    	}
    
    	if _, err := os.Stat(absDockerConfigFileLocation); os.IsNotExist(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 19 15:11:57 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

          maxs[i] = std::max(maxs[i], 0.0);
          mins[i] = std::min(mins[i], 0.0);
        }
        if (symmetric) {
          for (int i = 0; i < dim_size; ++i) {
            maxs[i] = std::max(std::abs(mins[i]), std::abs(maxs[i]));
            mins[i] = -maxs[i];
          }
        }
      }
    }
    
    Type GetUniformQuantizedTypeForWeight(
        const ElementsAttr attr, const bool symmetric, const unsigned num_bits,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    	abs := fmt.Sprintf("%#x", curr)
    	if prevInfo == nil {
    		return abs
    	}
    
    	prev := prevInfo.Address
    	if prev == curr {
    		return "*"
    	}
    
    	diff := int64(curr - prev)
    	relative := fmt.Sprintf("%+d", diff)
    
    	// Only bother to use the relative address if it is actually shorter.
    	if len(relative) < len(abs) {
    		return relative
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  8. src/path/filepath/path_windows_test.go

    		{`\\host`, `\\host`},
    		{`\\.\NUL`, `\\.\NUL`},
    		{`NUL`, `\\.\NUL`},
    		{`COM1`, `\\.\COM1`},
    		{`a/NUL`, `\\.\NUL`},
    	} {
    		got, err := filepath.Abs(test.path)
    		if err != nil || got != test.want {
    			t.Errorf("Abs(%q) = %q, %v; want %q, nil", test.path, got, err, test.want)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 20:38:54 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/telemetry/internal/upload/reports.go

    		}
    		// and turn it into a float64
    		x := math.Float64frombits(binary.LittleEndian.Uint64(b))
    		if math.IsNaN(x) || math.IsInf(x, 0) {
    			continue
    		}
    		x = math.Abs(x)
    		if x < 0x1p-1000 { // avoid underflow patterns
    			continue
    		}
    		frac, _ := math.Frexp(x) // 52 bits of randomness
    		return frac*2 - 1
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. src/cmd/go/internal/work/action.go

    		if err != nil {
    			base.Fatalf("go: creating work dir: %v", err)
    		}
    		if !filepath.IsAbs(tmp) {
    			abs, err := filepath.Abs(tmp)
    			if err != nil {
    				os.RemoveAll(tmp)
    				base.Fatalf("go: creating work dir: %v", err)
    			}
    			tmp = abs
    		}
    		b.WorkDir = tmp
    		builderWorkDirs.Store(b, b.WorkDir)
    		if cfg.BuildX || cfg.BuildWork {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 32.7K bytes
    - Viewed (0)
Back to top