Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 126 for Cond (0.16 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/freeze_variables.mlir

        func.return %1 : tensor<2xf32>
      }
    }
    
    // -----
    
    // Test for immutable case on while loop.
    module {
      // CHECK-LABEL: @cond(%arg0: tensor<0xf32>) -> tensor<i1>
      func.func private @cond(%arg0:tensor<0xf32>, %arg1:tensor<*x!tf_type.resource>) -> tensor<i1> {
        %val = "tf.ReadVariableOp"(%arg1) : (tensor<*x!tf_type.resource>) -> (tensor<0xf32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  2. src/crypto/internal/nistec/p256_asm.go

    //
    //go:noescape
    func p256FromMont(res, in *p256Element)
    
    // If cond is not 0, sets val = -val mod p.
    //
    //go:noescape
    func p256NegCond(val *p256Element, cond int)
    
    // If cond is 0, sets res = b, otherwise sets res = a.
    //
    //go:noescape
    func p256MovCond(res, a, b *P256Point, cond int)
    
    //go:noescape
    func p256BigToLittle(res *p256Element, in *[32]byte)
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  3. src/runtime/defer_test.go

    func TestDeferForFuncWithNoExit(t *testing.T) {
    	cond := 1
    	defer func() {
    		if cond != 2 {
    			t.Fatalf("cond: wanted 2, got %v", cond)
    		}
    		if recover() != "Test panic" {
    			t.Fatal("Didn't find expected panic")
    		}
    	}()
    	x := 0
    	// Force a stack copy, to make sure that the &cond pointer passed to defer
    	// function is properly updated.
    	growStackIter(&x, 1000)
    	cond = 2
    	doPanic()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:57:24 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

      LogicalResult rewriteOpWithDynamicInput(Operation* op,
                                              PatternRewriter& rewriter) const {
        auto cond = op->getOperand(0);
        auto lhs = op->getOperand(1);
        auto rhs = op->getOperand(2);
        auto out = op->getResult(0);
    
        // Matches fail when lhs|rhs|cond is unranked tensor.
        // TODO(b/176202543): Support unranked tensor.
        if (!mlir::cast<ShapedType>(lhs.getType()).hasRank() ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  5. tests/integration/ambient/waypoint_test.go

    				}
    				cond := kstatus.GetCondition(gwc.Status.Conditions, string(k8s.GatewayClassConditionStatusAccepted))
    				if cond.Status != metav1.ConditionTrue {
    					return fmt.Errorf("failed to find accepted condition: %+v", cond)
    				}
    				if cond.ObservedGeneration != gwc.Generation {
    					return fmt.Errorf("stale GWC generation: %+v", cond)
    				}
    				return nil
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. src/runtime/os_darwin.go

    				pthread_mutex_unlock(&mp.mutex)
    				return -1
    			}
    			var t timespec
    			t.setNsec(ns - spent)
    			err := pthread_cond_timedwait_relative_np(&mp.cond, &mp.mutex, &t)
    			if err == _ETIMEDOUT {
    				pthread_mutex_unlock(&mp.mutex)
    				return -1
    			}
    		} else {
    			pthread_cond_wait(&mp.cond, &mp.mutex)
    		}
    	}
    }
    
    //go:nosplit
    func semawakeup(mp *m) {
    	if g := getg(); g == g.m.gsignal {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/rearrange_function_argument_pass_test.cc

        Output arg1 = ops::_Arg(s.WithOpName("arg1"), DT_RESOURCE, 1);
        Output arg2 = ops::_Arg(s.WithOpName("arg2"), DT_INT32, 2);
        Output cond = ops::Const(s.WithOpName("const"), true, TensorShape({}));
        auto ret0 = ops::_Retval(s.WithOpName("ret0"), cond, 0);
        std::unique_ptr<Graph> g(new Graph(OpRegistry::Global()));
        TF_CHECK_OK(s.ToGraph(g.get()));
        FunctionDef *xla_fdef = fdl.add_function();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/tests/mlrt/tf_to_mlrt.mlir

    // CHECK: [[cond:%.*]] = tf_mlrt.predicate [[cond_tensor]]
    // CHECK: [[z:%.*]] = mlrt.cond [[cond]] @then @else([[x]], [[y]])
    // CHECK: return [[z]]
    func.func @main(%cond: tensor<i1>, %x: tensor<i32>, %y: tensor<i32>) -> tensor<i32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

            /*only_one_return_value=*/false);
      }
    
      // Look through ToBool operations for the condition.
      Value cond = if_region.getCond();
      auto to_bool = dyn_cast_or_null<ToBoolOp>(cond.getDefiningOp());
      if (to_bool) cond = to_bool.getOperand();
    
      // Once we have the `then` and `else` functions ready (either outlined or
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/parse.go

    //
    //	{label:} WORD[.cond] [ arg {, arg} ] (';' | '\n')
    //
    // It adds any labels to p.pendingLabels and returns the word, cond,
    // operand list, and true. If there is an error or EOF, it returns
    // ok=false.
    //
    // line may reuse the memory from scratch.
    func (p *Parser) line(scratch [][]lex.Token) (word, cond string, operands [][]lex.Token, ok bool) {
    next:
    	// Skip newlines.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 14:34:57 UTC 2024
    - 36.9K bytes
    - Viewed (0)
Back to top