Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for posFor (0.22 sec)

  1. src/errors/wrap_test.go

    var poserPathErr = &fs.PathError{Op: "poser"}
    
    func (p *poser) Error() string     { return p.msg }
    func (p *poser) Is(err error) bool { return p.f(err) }
    func (p *poser) As(err any) bool {
    	switch x := err.(type) {
    	case **poser:
    		*x = p
    	case *errorT:
    		*x = errorT{"poser"}
    	case **fs.PathError:
    		*x = poserPathErr
    	default:
    		return false
    	}
    	return true
    }
    
    func TestAs(t *testing.T) {
    	var errT errorT
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:49:49 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/errors.go

    	invalidOp  = "invalid operation: "
    )
    
    // The poser interface is used to extract the position of type-checker errors.
    type poser interface {
    	Pos() syntax.Pos
    }
    
    func (check *Checker) error(at poser, code Code, msg string) {
    	err := check.newError(code)
    	err.addf(at, "%s", msg)
    	err.report()
    }
    
    func (check *Checker) errorf(at poser, code Code, format string, args ...any) {
    	err := check.newError(code)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/util.go

    func hasDots(call *syntax.CallExpr) bool { return call.HasDots }
    
    // dddErrPos returns the node (poser) for reporting an invalid ... use in a call.
    func dddErrPos(call *syntax.CallExpr) *syntax.CallExpr {
    	// TODO(gri) should use "..." instead of call position
    	return call
    }
    
    // argErrPos returns the node (poser) for reporting an invalid argument count.
    func argErrPos(call *syntax.CallExpr) *syntax.CallExpr { return call }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/version.go

    // is allowed to use version v. If the position is unknown, the specified
    // module version (Config.GoVersion) is used. If that version is invalid,
    // allowVersion returns true.
    func (check *Checker) allowVersion(at poser, v goVersion) bool {
    	fileVersion := check.conf.GoVersion
    	if pos := at.Pos(); pos.IsKnown() {
    		fileVersion = check.versions[pos.FileBase()]
    	}
    
    	// We need asGoVersion (which calls version.Lang) below
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 20:44:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/mark_input_output_aliases.cc

                        "assigns to "
                        "the same resource from tf_device.cluster_func outputs. "
                        "This can "
                        "lead to poor memory management on device.\n");
    
          return failure();
        }
        alias_info.output_index = result.getResultNumber();
      }
    
      for (auto& operand : cluster_func->getOpOperands()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 04:14:26 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. src/runtime/os_wasm.go

    }
    
    //go:linkname syscall_now syscall.now
    func syscall_now() (sec int64, nsec int32) {
    	sec, nsec, _ = time_now()
    	return
    }
    
    //go:nosplit
    func cputicks() int64 {
    	// runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
    	return nanotime()
    }
    
    // gsignalStack is unused on js.
    type gsignalStack struct{}
    
    const preemptMSupported = false
    
    func preemptM(mp *m) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/device_util.h

      // return false.
      //
      // TODO(sanjoy): Change this to take a typed std::function if that's
      // performance neutral.
      template <typename FnTy>
      void ForEach(FnTy func) const {
        // This is really a poor man's iterator, we should consider writing a proper
        // iterator if this ends up being used widely.
        for (int word_index = 0, end = storage_.size(); word_index < end;
             word_index++) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 17:18:31 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. src/runtime/mcentral.go

    	//
    	// TODO(austin,mknyszek): This still has bad worst-case
    	// throughput. For example, this could find just one free slot
    	// on the 100th swept span. That limits allocation latency, but
    	// still has very poor throughput. We could instead keep a
    	// running free-to-used budget and switch to fresh span
    	// allocation if the budget runs low.
    	spanBudget := 100
    
    	var s *mspan
    	var sl sweepLocker
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top