Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for x2val (0.11 sec)

  1. src/runtime/map_test.go

    func TestSingleBucketMapStringKeys_NoDupLen(t *testing.T) {
    	testMapLookups(t, map[string]string{
    		"x":                      "x1val",
    		"xx":                     "x2val",
    		"foo":                    "fooval",
    		"xxxx":                   "x4val",
    		"xxxxx":                  "x5val",
    		"xxxxxx":                 "x6val",
    		strings.Repeat("x", 128): "longval",
    	})
    }
    
    func testMapLookups(t *testing.T, m map[string]string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  2. utils/utils.go

    }
    
    func AssertEqual(x, y interface{}) bool {
    	if reflect.DeepEqual(x, y) {
    		return true
    	}
    	if x == nil || y == nil {
    		return false
    	}
    
    	xval := reflect.ValueOf(x)
    	yval := reflect.ValueOf(y)
    	if xval.Kind() == reflect.Ptr && xval.IsNil() ||
    		yval.Kind() == reflect.Ptr && yval.IsNil() {
    		return false
    	}
    
    	if valuer, ok := x.(driver.Valuer); ok {
    		x, _ = valuer.Value()
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 22 06:43:02 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/aot/tests/make_test_graphs.py

      y = variables.Variable(1.0, name='y')
      updates = control_flow_ops.no_op()
      for _ in range(3):
        with ops.control_dependencies([updates]):
          x_val = x.read_value() + y
          updates = x.assign_sub(0.1 * x_val)
    
      array_ops.identity(updates, name='result')
    
    
    def write_graph(build_graph, out_dir):
      """Build a graph using build_graph and write it out."""
      g = ops.Graph()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 15 15:25:23 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  4. src/go/types/expr.go

    func (check *Checker) shift(x, y *operand, e ast.Expr, op token.Token) {
    	// TODO(gri) This function seems overly complex. Revisit.
    
    	var xval constant.Value
    	if x.mode == constant_ {
    		xval = constant.ToInt(x.val)
    	}
    
    	if allInteger(x.typ) || isUntyped(x.typ) && xval != nil && xval.Kind() == constant.Int {
    		// The lhs is of integer type or an untyped constant representable
    		// as an integer. Nothing to do.
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/expr.go

    func (check *Checker) shift(x, y *operand, e syntax.Expr, op syntax.Operator) {
    	// TODO(gri) This function seems overly complex. Revisit.
    
    	var xval constant.Value
    	if x.mode == constant_ {
    		xval = constant.ToInt(x.val)
    	}
    
    	if allInteger(x.typ) || isUntyped(x.typ) && xval != nil && xval.Kind() == constant.Int {
    		// The lhs is of integer type or an untyped constant representable
    		// as an integer. Nothing to do.
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  6. src/fmt/scan_test.go

    	{"%d%%", "42%", &intVal, 42}, // %% at end of string.
    
    	// Corner cases
    	{"%x", "FFFFFFFF\n", &uint32Val, uint32(0xFFFFFFFF)},
    
    	// Custom scanner.
    	{"%s", "  sss ", &xVal, Xs("sss")},
    	{"%2s", "sssss", &xVal, Xs("ss")},
    
    	// Fixed bugs
    	{"%d\n", "27\n", &intVal, 27},         // ok
    	{"%d\n", "28 \n", &intVal, 28},        // was: "unexpected newline"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 20:25:13 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

      if (shape_x.size() == shape_y.size()) {
        llvm::SmallVector<int64_t, 4> out_shape(shape_x.size());
        for (int i = 0; i < shape_x.size(); i++) {
          auto x_val = shape_x[i];
          auto y_val = shape_y[i];
          out_shape[i] = std::max(x_val, y_val);
        }
        return tensorflow::GetTypeFromTFTensorShape(out_shape, element_type);
      }
    
      auto shape_large = shape_x.size() > shape_y.size() ? shape_x : shape_y;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
Back to top