Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 225 for IsSwitch (0.27 sec)

  1. tensorflow/compiler/jit/deadness_analysis.cc

    }
    
    Status DeadnessAnalysisImpl::HandleNode(Node* n,
                                            std::vector<bool>* should_revisit,
                                            bool use_optimistic_mode) {
      if (n->IsSwitch()) {
        TF_RETURN_IF_ERROR(HandleSwitch(n, should_revisit));
      } else if (n->IsMerge()) {
        TF_RETURN_IF_ERROR(HandleMerge(n, should_revisit, use_optimistic_mode));
      } else if (n->IsControlTrigger()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 60.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/mark_for_compilation_pass.cc

      }
    
      // Check if the Identity is driven by a Switch on its true path.
      auto it = absl::c_find_if(node->in_edges(), [](const Edge* e) {
        return e->src()->IsSwitch() && e->src_output() == 1;
      });
      if (it == node->in_edges().end()) {
        return false;
      }
      const Node* switch_node = (*it)->src();
    
      // Check if the Switch is driven by LoopCond.
      const Node* maybe_loop_cond;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/parser.go

    		}
    		return p.simpleStmt(lhs, 0)
    	}
    
    	switch p.tok {
    	case _Var:
    		return p.declStmt(p.varDecl)
    
    	case _Const:
    		return p.declStmt(p.constDecl)
    
    	case _Type:
    		return p.declStmt(p.typeDecl)
    	}
    
    	p.clearPragma()
    
    	switch p.tok {
    	case _Lbrace:
    		return p.blockStmt("")
    
    	case _Operator, _Star:
    		switch p.op {
    		case Add, Sub, Mul, And, Xor, Not:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/deadness_analysis_test.cc

    }
    
    TEST(DeadnessAnalysisTest, AndOfOr) {
      Scope root = Scope::NewRootScope().ExitOnError();
    
      ops::Switch sw_0 = CreateSwitch(root, "0");
      ops::Switch sw_1 = CreateSwitch(root, "1");
      ops::Switch sw_2 = CreateSwitch(root, "2");
      ops::Switch sw_3 = CreateSwitch(root, "3");
    
      ops::Merge m0(root.WithOpName("m0"), {sw_0.output_false, sw_1.output_false});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/prove.go

    					old.umax = old.umin
    					if int64(old.umin) >= 0 {
    						old.min, old.max = int64(old.umin), int64(old.umin)
    					}
    				}
    			}
    		}
    		lim := noLimit
    		switch d {
    		case signed:
    			c := w.AuxInt
    			switch r {
    			case lt:
    				lim.max = c - 1
    			case lt | eq:
    				lim.max = c
    			case gt | eq:
    				lim.min = c
    			case gt:
    				lim.min = c + 1
    			case lt | gt:
    				lim = old
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:21 UTC 2024
    - 48.9K bytes
    - Viewed (0)
  6. src/go/parser/parser.go

    	if name != nil {
    		p.tok = token.IDENT // force token.IDENT case in switch below
    	} else if typeSetsOK && p.tok == token.TILDE {
    		// "~" ...
    		return field{nil, p.embeddedElem(nil)}
    	}
    
    	switch p.tok {
    	case token.IDENT:
    		// name
    		if name != nil {
    			f.name = name
    			p.tok = ptok
    		} else {
    			f.name = p.parseIdent()
    		}
    		switch p.tok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  7. cmd/bucket-stats_gen.go

    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	for zb0001 > 0 {
    		zb0001--
    		field, err = dc.ReadMapKeyPtr()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "ReplicatedSize":
    			z.ReplicatedSize, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "ReplicatedSize")
    				return
    			}
    		case "ReplicaSize":
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  8. src/go/types/expr.go

    		goto Error
    	}
    
    	// check if comparison is defined for operands
    	code = UndefinedOp
    	switch op {
    	case token.EQL, token.NEQ:
    		// spec: "The equality operators == and != apply to operands that are comparable."
    		switch {
    		case x.isNil() || y.isNil():
    			// Comparison against nil requires that the other operand type has nil.
    			typ := x.typ
    			if x.isNil() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/riscv/obj.go

    func markRelocs(p *obj.Prog) {
    	switch p.As {
    	case AMOV, AMOVB, AMOVH, AMOVW, AMOVBU, AMOVHU, AMOVWU, AMOVF, AMOVD:
    		switch {
    		case p.From.Type == obj.TYPE_ADDR && p.To.Type == obj.TYPE_REG:
    			switch p.From.Name {
    			case obj.NAME_EXTERN, obj.NAME_STATIC:
    				p.Mark |= NEED_PCREL_ITYPE_RELOC
    			}
    		case p.From.Type == obj.TYPE_MEM && p.To.Type == obj.TYPE_REG:
    			switch p.From.Name {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 07 03:32:27 UTC 2024
    - 77K bytes
    - Viewed (0)
  10. src/go/printer/testdata/parser.go

    func (p *parser) parseLhsList() []ast.Expr {
    	list := p.parseExprList(true)
    	switch p.tok {
    	case token.DEFINE:
    		// lhs of a short variable declaration
    		p.shortVarDecl(p.makeIdentList(list))
    	case token.COLON:
    		// lhs of a label declaration or a communication clause of a select
    		// statement (parseLhsList is not called when parsing the case clause
    		// of a switch statement):
    		// - labels are declared by the caller of parseLhsList
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
Back to top