Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 54 for exp5 (0.04 sec)

  1. src/math/big/float_test.go

    	} {
    		x := makeFloat(test.x)
    		mant := makeFloat(test.mant)
    		m := new(Float)
    		e := x.MantExp(m)
    		if !alike(m, mant) || e != test.exp {
    			t.Errorf("%s.MantExp() = %s, %d; want %s, %d", test.x, m.Text('g', 10), e, test.mant, test.exp)
    		}
    	}
    }
    
    func TestFloatMantExpAliasing(t *testing.T) {
    	x := makeFloat("0.5p10")
    	if e := x.MantExp(x); e != 10 {
    		t.Fatalf("Float.MantExp aliasing error: got %d; want 10", e)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

    // Convert exp(x)/sum(exp(x)) into softmax.
    def OptimizeToSoftmax : Pat<
      (TFL_DivOp (TFL_ExpOp:$exp $input),
                 (TFL_SumOp:$sum $sum_input, (Arith_ConstantOp I32ElementsAttr: $axes),
                                 ConstBoolAttrTrue), TFL_AF_None),
      (TFL_SoftmaxOp $input, ConstF32Attr<"1.0">),
      [(IsSame $exp, $sum_input),
       (AxesIsLastDimension $axes, $sum_input),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/serviceentry/controller_test.go

    	if len(svcs) != len(expected) {
    		t.Fatalf("got more services than expected: %v vs %v", len(svcs), len(expected))
    	}
    	expe := [][]*model.IstioEndpoint{}
    	for _, o := range expected {
    		res := []*model.IstioEndpoint{}
    		for _, i := range o {
    			res = append(res, i.Endpoint)
    		}
    		expe = append(expe, res)
    	}
    	// The system is eventually consistent, so add some retries
    	retry.UntilSuccessOrFail(t, func() error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewrite.go

    	b := math.Float64bits(c)
    	man := b & (1<<52 - 1)
    	if man != 0 {
    		return false // not a power of 2, denormal, or NaN
    	}
    	exp := b >> 52 & (1<<11 - 1)
    	// exponent bias is 0x3ff.  So taking the reciprocal of a number
    	// changes the exponent to 0x7fe-exp.
    	switch exp {
    	case 0:
    		return false // ±0
    	case 0x7ff:
    		return false // ±inf
    	case 0x7fe:
    		return false // exponent is not representable
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  5. cmd/admin-handlers-users.go

    					return
    				}
    			}
    		}
    	}
    }
    
    func addExpirationToCondValues(exp *time.Time, condValues map[string][]string) error {
    	if exp == nil || exp.IsZero() || exp.Equal(timeSentinel) {
    		return nil
    	}
    	dur := exp.Sub(time.Now())
    	if dur <= 0 {
    		return errors.New("unsupported expiration time")
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 28 17:19:04 UTC 2024
    - 78.6K bytes
    - Viewed (0)
  6. src/runtime/malloc.go

    	case mean > 0x7000000:
    		mean = 0x7000000
    	case mean == 0:
    		return 0
    	}
    
    	// Take a random sample of the exponential distribution exp(-mean*x).
    	// The probability distribution function is mean*exp(-mean*x), so the CDF is
    	// p = 1 - exp(-mean*x), so
    	// q = 1 - p == exp(-mean*x)
    	// log_e(q) = -mean*x
    	// -log_e(q)/mean = x
    	// x = -log_e(q) * mean
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/sidecar_simulation_test.go

    					vh := r[tt.routeName]
    					exp := tt.expected
    					if variant == "httproute" && tt.expectedGateway != nil {
    						exp = tt.expectedGateway
    					}
    					if vh == nil && exp != nil {
    						t.Fatalf("route %q not found, have %v", tt.routeName, xdstest.MapKeys(r))
    					}
    					gotHosts := xdstest.ExtractVirtualHosts(vh)
    					for wk, wv := range exp {
    						got := gotHosts[wk]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  8. tests/query_test.go

    }
    
    func TestSelectWithVariables(t *testing.T) {
    	DB.Save(&User{Name: "select_with_variables"})
    
    	rows, _ := DB.Table("users").Where("name = ?", "select_with_variables").Select("? as fake", gorm.Expr("name")).Rows()
    
    	if !rows.Next() {
    		t.Errorf("Should have returned at least one row")
    	} else {
    		columns, _ := rows.Columns()
    		AssertEqual(t, columns, []string{"fake"})
    	}
    
    	rows.Close()
    }
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 49.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/go.sum

    golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
    golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
    golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc h1:mCRnTeVUjcrhlRmO0VK8a6k6Rrf6TF9htwo2pJVSjIU=
    golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 21:47:11 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/go.sum

    golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
    golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
    golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc h1:mCRnTeVUjcrhlRmO0VK8a6k6Rrf6TF9htwo2pJVSjIU=
    golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 21:47:11 UTC 2024
    - 49.2K bytes
    - Viewed (0)
Back to top