Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 266 for walkIf (0.23 sec)

  1. operator/cmd/mesh/profile-dump.go

    			decoded = v
    		}
    	}
    	setflags, err := walk("", "", decoded)
    	if err != nil {
    		return []string{}, err
    	}
    	sort.Strings(setflags)
    	return setflags, nil
    }
    
    func walk(path, separator string, obj any) ([]string, error) {
    	switch v := obj.(type) {
    	case map[string]any:
    		accum := make([]string, 0)
    		for key, vv := range v {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/lower_cluster_to_runtime_ops_test.cc

          *mlir_module_, DeviceType(DEVICE_TPU_XLA_JIT)));
    
      FuncOp main = mlir_module_->lookupSymbol<FuncOp>("main");
      ASSERT_TRUE(main);
    
      bool has_cluster_op = false;
      main.walk([&](mlir::tf_device::ClusterOp) {
        has_cluster_op = true;
        return mlir::WalkResult::interrupt();
      });
    
      EXPECT_FALSE(has_cluster_op);
    }
    
    TEST_F(LowerClusterToRuntimeOpsTest, LowersClusterOpsCPU) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:44:37 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildOperationTreeQueries.groovy

            parent.children.each {
                walk(it) {
                    if (predicate.isSatisfiedBy(it)) {
                        matches << it
                    }
                }
            }
            matches
        }
    
        List<BuildOperationRecord.Progress> progress(Class<?> clazz) {
            return all().collect { it.progress(clazz) }.flatten()
        }
    
        void walk(Action<? super BuildOperationRecord> action) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/visitor.h

    #include "mlir/IR/SymbolTable.h"  // from @llvm-project
    #include "mlir/IR/Visitors.h"  // from @llvm-project
    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    
    namespace mlir {
    namespace TF {
    
    // Walks the function by following function call chains and calling the callback
    // for each reachable function (including `func`). Each function is visited only
    // once even if it's called from multiple places and/or recursively.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 03:46:51 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/statistics.cc

      TF_ASSIGN_OR_RETURN(const CalibrationStatisticsFlatMap statistics_map,
                          ReadStatistics(calibration_data_dir));
    
      absl::Status status = absl::OkStatus();
      module_op.walk([&py_function_library, &calibration_options, &status,
                      &statistics_map](mlir::TF::CustomAggregatorOp aggregator_op) {
        mlir::StringRef id = aggregator_op.getId();
        auto iter = statistics_map.find(id);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/replicate_invariant_op_hoisting.cc

    bool DescendantUsesVirtualDevice(
        const std::optional<DictionaryAttr>& virtual_devices,
        Operation* operation) {
      if (!virtual_devices.has_value()) return false;
    
      auto result = operation->walk([&](Operation* op) {
        if (DirectUseOfVirtualDevice(*virtual_devices, op))
          return WalkResult::interrupt();
        return WalkResult::advance();
      });
      return result.wasInterrupted();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/search.go

    		// Add a trailing separator to force that to happen.
    		root = str.WithFilePathSeparator(filepath.Clean(root))
    		err := fsys.Walk(root, func(pkgDir string, fi fs.FileInfo, err error) error {
    			if err != nil {
    				m.AddError(err)
    				return nil
    			}
    
    			want := true
    			elem := ""
    
    			// Don't use GOROOT/src but do walk down into it.
    			if pkgDir == root {
    				if importPathRoot == "" {
    					return nil
    				}
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/sets/set.go

    // s1 = {a1, a2}
    // s2 = {a2, a3}
    // s1.Intersection(s2) = {a2}
    func (s1 Set[T]) Intersection(s2 Set[T]) Set[T] {
    	var walk, other Set[T]
    	result := New[T]()
    	if s1.Len() < s2.Len() {
    		walk = s1
    		other = s2
    	} else {
    		walk = s2
    		other = s1
    	}
    	for key := range walk {
    		if other.Has(key) {
    			result.Insert(key)
    		}
    	}
    	return result
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 19:51:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tensor_device_copy_conversion.cc

        return true;
      };
    
      func_op.walk([&should_fold_op_func](TF::IdentityOp op) {
        StringAttr op_device = op->getAttrOfType<StringAttr>(kDeviceAttr);
        if (should_fold_op_func(op.getOperand(), op_device)) {
          op.replaceAllUsesWith(op.getOperand());
          op.erase();
        }
        return WalkResult::advance();
      });
    
      func_op.walk([&should_fold_op_func](TF::IdentityNOp op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. test/fixedbugs/issue29870b.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Make sure we're compiling "_" functions at least enough
    // to get to an error which is generated during walk.
    
    package main
    
    func _() {
    	x := 7 // ERROR "declared and not used"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 357 bytes
    - Viewed (0)
Back to top