Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for tilde (0.14 sec)

  1. src/go/parser/parser.go

    		x = t
    	}
    	return x
    }
    
    func (p *parser) embeddedTerm() ast.Expr {
    	if p.trace {
    		defer un(trace(p, "EmbeddedTerm"))
    	}
    	if p.tok == token.TILDE {
    		t := new(ast.UnaryExpr)
    		t.OpPos = p.pos
    		t.Op = token.TILDE
    		p.next()
    		t.X = p.parseType()
    		return t
    	}
    
    	t := p.tryIdentOrType()
    	if t == nil {
    		pos := p.pos
    		p.errorExpected(pos, "~ term or type")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/parser.go

    }
    
    // EmbeddedTerm = [ "~" ] Type .
    func (p *parser) embeddedTerm() Expr {
    	if trace {
    		defer p.trace("embeddedTerm")()
    	}
    
    	if p.tok == _Operator && p.op == Tilde {
    		t := new(Operation)
    		t.pos = p.pos()
    		t.Op = Tilde
    		p.next()
    		t.X = p.type_()
    		return t
    	}
    
    	t := p.typeOrNil()
    	if t == nil {
    		t = p.badExpr()
    		p.syntaxError("expected ~ term or type")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  3. src/go/types/expr.go

    			x.mode = invalid
    			return
    		}
    
    		x.mode = commaok
    		x.typ = ch.elem
    		check.hasCallOrRecv = true
    		return
    
    	case token.TILDE:
    		// Provide a better error position and message than what check.op below would do.
    		if !allInteger(x.typ) {
    			check.error(e, UndefinedOp, "cannot use ~ outside of interface or type constraint")
    			x.mode = invalid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/expr.go

    			x.mode = invalid
    			return
    		}
    		x.mode = commaok
    		x.typ = ch.elem
    		check.hasCallOrRecv = true
    		return
    
    	case syntax.Tilde:
    		// Provide a better error position and message than what check.op below would do.
    		if !allInteger(x.typ) {
    			check.error(e, UndefinedOp, "cannot use ~ outside of interface or type constraint")
    			x.mode = invalid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  5. src/go/printer/nodes.go

    func isTypeElem(x ast.Expr) bool {
    	switch x := x.(type) {
    	case *ast.ArrayType, *ast.StructType, *ast.FuncType, *ast.InterfaceType, *ast.MapType, *ast.ChanType:
    		return true
    	case *ast.UnaryExpr:
    		return x.Op == token.TILDE
    	case *ast.BinaryExpr:
    		return isTypeElem(x.X) || isTypeElem(x.Y)
    	case *ast.ParenExpr:
    		return isTypeElem(x.X)
    	}
    	return false
    }
    
    func (p *printer) signature(sig *ast.FuncType) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  6. tensorflow/cc/gradients/math_grad.cc

      auto tile_scaling = SafeDivHelper(scope, input_shape, output_shape_kept_dims);
    
      // grad = [[g1], [g2]]
      auto grad = Reshape(scope, grad_inputs[0], output_shape_kept_dims);
    
      // tile(grad, tile_scaling) = [[g1, g1, g1], [g2, g2, g2]]
      return Tile(scope, grad, tile_scaling);
    }
    
    Status SumGrad(const Scope& scope, const Operation& op,
                   const std::vector<Output>& grad_inputs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 50.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

      "TFL::HasOneUseOrUsedByOnlyBinaryOps($0)">>;
    
    // Pattern for skipping Tile if it is mainly for broadcasting and the
    // Op is already supporting broadcasting.
    multiclass FuseTileBroadcastIntoFollowingBinary<Op BinaryOp> {
      def FuseTileBroadcastToBinaryOp1#BinaryOp : Pat<
        (BinaryOp:$result (TFL_TileOp $input, (Arith_ConstantOp $tile)),
         $operand, $act_func),
        (BinaryOp $input, $operand, $act_func),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
  8. src/runtime/mbitmap.go

    // s.heapBits()[i] boundaries).
    //
    // For larger objects, if t is the type for the object starting at "start",
    // within some span whose mspan is s, then the bitmap at t.GCData is "tiled"
    // from "start" through "start+s.elemsize".
    // Specifically, the first bit of t.GCData corresponds to the word at "start",
    // the second to the word after "start", and so on up to t.PtrBytes. At t.PtrBytes,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/mark_for_compilation_pass.cc

    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
Back to top