Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 122 for lhs0 (0.11 sec)

  1. src/cmd/compile/internal/types2/decl.go

    		return
    	}
    
    	if debug {
    		// obj must be one of lhs
    		found := false
    		for _, lhs := range lhs {
    			if obj == lhs {
    				found = true
    				break
    			}
    		}
    		if !found {
    			panic("inconsistent lhs")
    		}
    	}
    
    	// We have multiple variables on the lhs and one init expr.
    	// Make sure all variables have been given the same type if
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  2. src/go/types/decl.go

    				check.declare(check.scope, name, lhs[i], scopePos)
    			}
    
    		case varDecl:
    			top := len(check.delayed)
    
    			lhs0 := make([]*Var, len(d.spec.Names))
    			for i, name := range d.spec.Names {
    				lhs0[i] = NewVar(name.Pos(), pkg, name.Name, nil)
    			}
    
    			// initialize all variables
    			for i, obj := range lhs0 {
    				var lhs []*Var
    				var init ast.Expr
    				switch len(d.spec.Values) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/assignments.go

    	// If the lhs doesn't have a type yet, use the type of x.
    	if lhs.typ == nil {
    		lhs.typ = x.typ
    	}
    
    	check.assignment(x, lhs.typ, "constant declaration")
    	if x.mode == invalid {
    		return
    	}
    
    	lhs.val = x.val
    }
    
    // initVar checks the initialization lhs = x in a variable declaration.
    // If lhs doesn't have a type yet, it is given the type of x,
    // or Typ[Invalid] in case of an error.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. src/go/types/assignments.go

    	// If the lhs doesn't have a type yet, use the type of x.
    	if lhs.typ == nil {
    		lhs.typ = x.typ
    	}
    
    	check.assignment(x, lhs.typ, "constant declaration")
    	if x.mode == invalid {
    		return
    	}
    
    	lhs.val = x.val
    }
    
    // initVar checks the initialization lhs = x in a variable declaration.
    // If lhs doesn't have a type yet, it is given the type of x,
    // or Typ[Invalid] in case of an error.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions_fusion.td

    def LiftDotGeneralWithBiasSameShape : Pat<
      (StableHLO_AddOp:$res
        (StableHLO_DotGeneralOp
            $lhs, $rhs, $dot_dimension_numbers, $precision_config),
        $bias),
      (LiftAsTFXlaCallModule<"composite_dot_general_with_bias_same_shape_fn">
        (ArgumentList $lhs, $rhs, $bias),
        (ResultList $res),
        (NamedAttributeList
          (NamedAttr<"dot_dimension_numbers"> $dot_dimension_numbers),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/tests/bridge/optimize.mlir

    // RUN: stablehlo-quant-opt -optimize-int-graph -split-input-file %s -verify-diagnostics | FileCheck %s
    
    // CHECK-LABEL: func @convolution_add_add
    func.func @convolution_add_add(
        %lhs: tensor<?x3x2x1xi8>, %rhs: tensor<2x1x1x1xi8>,
        %zp_offset: tensor<?x2x2x1xi32>, %bias: tensor<1xi32>
      ) -> tensor<?x2x2x1xi32> {
      // CHECK-DAG: %[[conv:.*]] = mhlo.convolution
      // CHECK-DAG: %[[combined:.*]] = chlo.broadcast_add %[[zp_offset:.*]], %[[bias:.*]]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 24 02:26:47 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. src/go/types/stmt.go

    		case token.ASSIGN, token.DEFINE:
    			if len(s.Lhs) == 0 {
    				check.error(s, InvalidSyntaxTree, "missing lhs in assignment")
    				return
    			}
    			if s.Tok == token.DEFINE {
    				check.shortVarDecl(inNode(s, s.TokPos), s.Lhs, s.Rhs)
    			} else {
    				// regular assignment
    				check.assignVars(s.Lhs, s.Rhs)
    			}
    
    		default:
    			// assignment operations
    			if len(s.Lhs) != 1 || len(s.Rhs) != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/openapi/values_test.go

    		SchemaProps: spec.SchemaProps{Type: []string{"object"}},
    	}
    )
    
    func TestEquality(t *testing.T) {
    	cases := []struct {
    		name  string
    		lhs   ref.Val
    		rhs   ref.Val
    		equal bool
    	}{
    		{
    			name: "map lists are equal regardless of order",
    			lhs: UnstructuredToVal([]interface{}{
    				map[string]interface{}{
    					"key": "a",
    					"val": 1,
    				},
    				map[string]interface{}{
    					"key": "b",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:30:17 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

            op, "unary einsum equation does not require transpose");
      } else if (needs_reduce_sum && !needs_transpose) {
        rewriter.replaceOp(op, lhs);
        return success();
      }
    
      lhs = createTransposeOp(lhs, lhs.getLoc(), lhs_transpose, &rewriter);
      rewriter.replaceOp(op, lhs);
      return success();
    }
    
    std::vector<int64_t> inverseTransposeVector(
        llvm::ArrayRef<int64_t> input, llvm::ArrayRef<int32_t> permutation) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/stmt.go

    	// so that the conversion below happens).
    
    	checkLHS := func(i int, typ *types.Type) {
    		if n := lhs[i]; typ != nil && ir.DeclaredBy(n, stmt) && n.Type() == nil {
    			base.Assertf(typ.Kind() == types.TNIL, "unexpected untyped nil")
    			n.SetType(defaultType(typ))
    		}
    		if lhs[i].Typecheck() == 0 {
    			lhs[i] = AssignExpr(lhs[i])
    		}
    		checkassign(lhs[i])
    	}
    
    	assignType := func(i int, typ *types.Type) {
    		checkLHS(i, typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:10:54 UTC 2023
    - 17.8K bytes
    - Viewed (0)
Back to top