Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 194 for yield4x (0.13 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

        }
      }
      OpBuilder::atBlockEnd(&island_body)
          .create<YieldOp>(new_island.getLoc(), yield_operands);
    
      // remap results of the new islands to the user outside of the island.
      int current_result = 0;
      Value control = new_island.getControl();
      for (IslandOp island : islands) {
        YieldOp yield_op = island.GetYield();
        for (const auto& idx_result : llvm::enumerate(island.getOutputs())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/decompose_reduce_dataset.cc

      auto while_input_types = dataset_while.getOperandTypes();
      cond_block->addArguments(
          while_input_types, SmallVector<Location>(while_input_types.size(), loc));
      builder.create<YieldOp>(loc, cond_block->getArgument(0));
    }
    
    // Create an IfRegionOp with a predicate from `optional_has_value`.  If true, it
    // uses `get_next` to get the next value and calls `reduce_func`.  `body_args`
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

      regions accept the current value of the iteration variables as inputs.
    
      The condition region yields a tensor<i1> which, if false, will exit the loop.
      It can also, optionally and additionally, yield the iteration variables, which
      must be unchanged.
    
      The body region always has to yield the (possibly updated) iteration variables.
    
      The iteration variables are initialized to the Op input, and the results of the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

      def _simple_model_data_gen(self) -> repr_dataset.RepresentativeDataset:
        """Creates an interable of representative samples.
    
        Yields:
          Representative samples, which is basically a mapping of: input key ->
          input value.
        """
        for _ in range(8):
          yield {
              'input_tensor': ops.convert_to_tensor(
                  np.random.uniform(low=0, high=150, size=(1, 4)).astype('f4')
              ),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/cluster_outlining.mlir

          %3 = "tf_device.cluster"() ({
            %4 = "tf.B"(%2) : (tensor<?xi32>) -> tensor<?xi32>
            tf_device.return %4 : tensor<?xi32>
          }) {} : () -> tensor<?xi32>
    
          // CHECK: tf_executor.yield %[[CLUSTER_OUTPUT]]
          tf_executor.yield %3 : tensor<?xi32>
        }
        tf_executor.fetch %1#0 : tensor<?xi32>
      }
      func.return %0 : tensor<?xi32>
    }
    
    // CHECK: func private @[[CLUSTER]]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/testprog/iter-pull.go

    				break
    			}
    			iterChans[0] <- i
    		}
    	}()
    	wg.Wait()
    
    	// End of traced execution.
    	trace.Stop()
    }
    
    func pullRange(n int) intIter {
    	next, stop := iter.Pull(func(yield func(v int) bool) {
    		for i := range n {
    			yield(i)
    		}
    	})
    	return intIter{next: next, stop: stop}
    }
    
    type intIter struct {
    	next func() (int, bool)
    	stop func()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/metrics_test.go

            	apiextensions_apiserver_validation_ratcheting_seconds_sum 5e-09
            	apiextensions_apiserver_validation_ratcheting_seconds_count 5
    			`,
    			iters: 5,
    		},
    		{
    			desc: "valid change yields no metrics",
    			obj: &unstructured.Unstructured{
    				Object: map[string]interface{}{
    					"foo": "bar",
    				},
    			},
    			old: &unstructured.Unstructured{
    				Object: map[string]interface{}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/BuildScriptErrorIntegrationTest.groovy

                    .assertHasLineNumber(4)
        }
    
        @Issue("https://github.com/gradle/gradle/issues/14984")
        def "referencing a non-existing closure-taking method yields a helpful error message"() {
            buildFile << """
                plugins {
                    id("java")
                }
    
                java {
                    toolchains { // should be toolchain
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 17:01:37 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. src/slices/iter_test.go

    			}
    			ev++
    			cnt++
    		}
    		if cnt != size {
    			t.Errorf("read %d values expected %d", cnt, size)
    		}
    	}
    }
    
    func testSeq(yield func(int) bool) {
    	for i := 0; i < 10; i += 2 {
    		if !yield(i) {
    			return
    		}
    	}
    }
    
    var testSeqResult = []int{0, 2, 4, 6, 8}
    
    func TestAppendSeq(t *testing.T) {
    	s := AppendSeq([]int{1, 2}, testSeq)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. src/maps/iter_test.go

    			t.Errorf("Values(%v) = %v, want %v", m, got, want)
    		}
    	}
    }
    
    func TestInsert(t *testing.T) {
    	got := map[int]int{
    		1: 1,
    		2: 1,
    	}
    	Insert(got, func(yield func(int, int) bool) {
    		for i := 0; i < 10; i += 2 {
    			if !yield(i, i+1) {
    				return
    			}
    		}
    	})
    
    	want := map[int]int{
    		1: 1,
    		2: 1,
    	}
    	for i, v := range map[int]int{
    		0: 1,
    		2: 3,
    		4: 5,
    		6: 7,
    		8: 9,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:44:19 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top