Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,310 for effects (0.14 sec)

  1. tensorflow/compiler/mlir/lite/tests/pin-ops-with-side-effects.mlir

    // RUN: tf-opt %s -tfl-pin-ops-with-side-effects | FileCheck %s
    
    func.func @id(%arg0: tensor<1xf32>)->tensor<1xf32> {
      func.return %arg0 : tensor<1xf32>
    }
    
    func.func @noop()->() {
      func.return
    }
    
    // CHECK-LABEL: @tf_if_gets_control_node
    func.func @tf_if_gets_control_node(%arg0: tensor<1xi1>)->() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 17 10:45:19 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

      llvm::SmallDenseSet<Value, 8> processed_values;
      for (const auto& effect : effects) {
        Value value = effect.getValue();
        found_any_effect = true;
    
        // We only collect value-based side effects here for which we can use
        // resource alias analysis. Other side effects are treated as op-based
        // side effects.
        if (!ShouldUseResourceAliasAnalysis(effect)) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/side_effect_analysis_util.cc

    void MarkResourceAsReadAndWrite(
        Value value,
        SmallVectorImpl<SideEffects::EffectInstance<MemoryEffects::Effect>>&
            effects) {
      if (value.getType().cast<TensorType>().getElementType().isa<ResourceType>()) {
        effects.emplace_back(MemoryEffects::Read::get(), value,
                             ResourceEffects::Variable::get());
        effects.emplace_back(MemoryEffects::Write::get(), value,
                             ResourceEffects::Variable::get());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 16 00:33:17 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/collections/PendingSourceSpec.groovy

            }
            source.addPendingCollection(provider5)
    
            then:
            0 * _ // no side effects until elements are realized
    
            when:
            source.removePending(provider2)
            source.removePendingCollection(provider4)
    
            then:
            0 * _ // can remove pending without running side effects
    
            when:
            source.realizePending()
    
            then:
            0 * sideEffect1.execute("v1")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 25 12:24:17 UTC 2022
    - 3K bytes
    - Viewed (0)
  5. test/fixedbugs/issue5373.go

    		fmt.Printf("index after range with side-effect = %d want %d\n", i, want)
    		os.Exit(1)
    	}
    
    	i = n + 1
    	// i is shadowed here, so its value should be unchanged.
    	for i := range s {
    		s[i] = 0
    	}
    	if want := n + 1; i != want {
    		fmt.Printf("index after range without side-effect = %d want %d\n", i, want)
    		os.Exit(1)
    	}
    
    	// Index variable whose evaluation has side-effects
    	var x int
    	f := func() int {
    		x++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/WithSideEffectProviderTest.groovy

            provider.calculateExecutionTimeValue()
    
            then:
            0 * _ // no side effects when calculating wrapped values
    
            when:
            counter.set(23)
            def unpackedValue = provider.get()
    
            then:
            unpackedValue == 46
            // Side effect of the provider returned by transform is executed first.
            // See FlatMapProvider for details
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 26 06:53:07 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc

      }
    
      return nullptr;
    }
    
    // Returns true if the op can have side effects.
    bool TensorFlowDialect::CanHaveSideEffects(Operation *op) {
      // If the op has no memory side effects, it has no side effects
      if (isMemoryEffectFree(op)) return false;
    
      // If the op is marked stateless using the `is_stateless` attribute, then
      // it has no side effects.
      if (auto is_stateless = op->getAttrOfType<BoolAttr>("is_stateless"))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/pin_ops_with_side_effects.cc

      return tensor_type &&
             mlir::isa<mlir::TF::ResourceType>(tensor_type.getElementType());
    }
    
    // The default criterion for operations being considered as causing or being
    // dependent on side effects. Reflects the current runtime logic; see below.
    bool OpHasSideEffects(Operation *op) {
      // Note that TFL::IfOp are only ever instantiated in flatbuffer_export; until
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. cluster/addons/metrics-server/README.md

    ### Important notices
    
    Decreasing resource requirements for cluster addons may cause system instability. The effects may include (but are not limited to):
      - Horizontal Pod Autoscaler not working
      - `kubectl top` not working (starting with Kubernetes 1.10)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 18 13:04:48 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/testdata/deadcode/globalmap.go

    package main
    
    import "os"
    
    // Too small to trigger deadcode (currently)
    var small = map[string]int{"foo": 1}
    
    // Has side effects, which prevent deadcode
    var effect = map[string]int{"foo": os.Getpid()}
    
    // Large and side-effect free
    var large = map[string]int{
    	"11": 1, "12": 2, "13": 3, "14": 4, "15": 5, "16": 6, "17": 7, "18": 8, "19": 9, "110": 10,
    	"21": 1, "22": 2, "23": 3, "24": 4, "25": 5, "26": 6, "27": 7, "28": 8, "29": 9, "210": 10,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 20:56:47 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top