Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for num_uses (0.1 sec)

  1. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer_test.cc

            AddOperation(/*is_stateful=*/false);
          }
          for (int i = 0; i < num_uses; ++i) {
            AddUse(some_operation(rng), some_tensor(rng));
          }
        }
      };
    };
    
    TEST_F(RematSimulationTest, SimulationAgreesWithReality) {
      constexpr int kNumOperations = 128;
      constexpr int kNumTensors = 32;
      constexpr int kNumUses = kNumOperations * kNumTensors / 4;
    
      std::mt19937 rng;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc

      const int num_uses = std::distance(dequant_op.getResult().use_begin(),
                                         dequant_op.getResult().use_end());
    
      // Whether to replace quantization params of the first dequantize op
      // after the quantized value is produced.
      // If there is a use other than the requantize states, then we can't clobber.
      bool clobber_first = num_uses <= states.size();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 38.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

          int64_t block_size = GetConv2DBlockSize(conv2d);
          auto arg_num = arg_num_and_num_users.value().arg_num;
          auto num_users = arg_num_and_num_users.value().num_users;
          argnum_and_convolutions[arg_num].emplace_back(conv2d, block_size);
          argnum_num_users[arg_num] = num_users;
          return WalkResult::interrupt();
        }
        return WalkResult::advance();
      });
      if (!conv2d_result.wasInterrupted()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  4. src/reflect/benchmark_test.go

    		cases = append(cases, SelectCase{
    			Dir:  SelectRecv,
    			Chan: ValueOf(channel),
    		})
    	}
    	for _, numCases := range []int{1, 4, 8} {
    		b.Run(strconv.Itoa(numCases), func(b *testing.B) {
    			b.ReportAllocs()
    			for i := 0; i < b.N; i++ {
    				_, _, _ = Select(cases[:numCases])
    			}
    		})
    	}
    }
    
    func BenchmarkCall(b *testing.B) {
    	fv := ValueOf(func(a, b string) {})
    	b.ReportAllocs()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Nov 19 17:09:03 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  5. pilot/pkg/xds/discovery_test.go

    		}
    		time.Sleep(time.Millisecond * 10)
    	}
    	for queue.Pending() > 0 {
    		time.Sleep(time.Millisecond)
    	}
    	pushesMu.Lock()
    	defer pushesMu.Unlock()
    	for proxy, numPushes := range pushes {
    		if numPushes == 0 {
    			t.Fatalf("Proxy %v had 0 pushes", proxy)
    		}
    	}
    }
    
    func TestSendPushesSinglePush(t *testing.T) {
    	stopCh := make(chan struct{})
    	defer close(stopCh)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/rulegen.go

    			anyUnused = false
    			for _, obj := range u.scope.objects {
    				if obj.numUses > 0 {
    					continue
    				}
    				u.unused[obj.pos] = true
    				for _, used := range obj.used {
    					if used.numUses--; used.numUses == 0 {
    						anyUnused = true
    					}
    				}
    				// We've decremented numUses for each of the
    				// objects in used. Zero this slice too, to keep
    				// everything consistent.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  7. src/strings/strings_test.go

    	// Make a string of all the runes.
    	numRunes := int(unicode.MaxRune + 1)
    	if testing.Short() {
    		numRunes = 1000
    	}
    	a := make([]rune, numRunes)
    	for i := range a {
    		a[i] = rune(i)
    	}
    	s := string(a)
    	// convert the cases.
    	upper := ToUpper(s)
    	lower := ToLower(s)
    
    	// Consistency checks
    	if n := utf8.RuneCountInString(upper); n != numRunes {
    		t.Error("rune count wrong in upper:", n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_test.cc

          context.get(), components, device_name, status.get());
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
      int num_axes = TFE_TensorHandleNumDims(combined_value.get(), status.get());
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
      EXPECT_EQ(num_axes, 1);
    }
    
    TEST(PARALLEL_DEVICE, TestNestedParallelDevices) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 08 23:47:35 UTC 2021
    - 29.3K bytes
    - Viewed (0)
  9. src/regexp/syntax/parse.go

    	instSize = 5 * 8 // byte, 2 uint32, slice is 5 64-bit words
    )
    
    // maxRunes is the maximum number of runes allowed in a regexp tree
    // counting the runes in all the nodes.
    // Ignoring character classes p.numRunes is always less than the length of the regexp.
    // Character classes can make it much larger: each \pL adds 1292 runes.
    // 128 MB is enough for 32M runes, which is over 26k \pL instances.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:59:01 UTC 2024
    - 52.1K bytes
    - Viewed (0)
Back to top