Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 264 for walkFn (0.14 sec)

  1. tensorflow/compiler/mlir/lite/quantization/quantization_context.cc

    namespace mlir {
    namespace quant {
    
    QuantizeContext::QuantizeContext(func::FuncOp func, const DeviceTarget &spec)
        : func_(func), target_spec_(spec) {
      llvm::DenseMap<Value, int> value_to_state;
      func.walk([&](quantfork::QuantizeRegionOp op) {
        for (int i = 0, e = op.getNumOperands(); i != e; ++i) {
          states_manager_.InitializeOperandState(op, i, &value_to_state);
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc

      Operation* preprocess_or_launch =
          in_launch ? preprocess_op->getParentOp() : preprocess_op;
    
      Operation* tpu_compile_successor = nullptr;
      func_op->walk([&](TF::_TPUCompileMlirOp compile_op) {
        if (compile_op->getParentOp() == nullptr ||
            !isa<tf_device::LaunchOp>(compile_op->getParentOp()))
          return WalkResult::advance();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcshared/cshared_test.go

    		}
    		if ps != nil {
    			if *ps != "" {
    				t.Fatalf("%s found again", *ps)
    			}
    			*ps = path
    		}
    		return nil
    	}
    
    	if err := filepath.Walk(tmpdir, walker); err != nil {
    		t.Fatal(err)
    	}
    
    	if libgoh == "" {
    		t.Fatal("libgo.h not installed")
    	}
    
    	if err := os.Remove(libgoh); err != nil {
    		t.Fatal(err)
    	}
    
    	cmd = exec.Command(buildcmd[0], buildcmd[1:]...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/sym.go

    	fninfo := fsym.Func()
    	pc := &fninfo.Pcln
    	if flag&traverseAux == 0 {
    		// NB: should it become necessary to walk aux sym reloc references
    		// without walking the aux syms themselves, this can be changed.
    		panic("should not be here")
    	}
    	for _, d := range pc.Funcdata {
    		if d != nil {
    			fn(fsym, d)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc

        FuncOp main = module_->lookupSymbol<mlir::func::FuncOp>("main");
        if (!main) {
          return tsl::errors::InvalidArgument("Could not find a main function");
        }
    
        WalkResult walk_result = main.walk([&](Operation* op) {
          if (op->getDialect()->getNamespace() !=
              TF::TensorFlowDialect::getDialectNamespace()) {
            return WalkResult::advance();
          }
    
          if (!LegalizeSingleOp(*op).ok()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/resource_device_inference.cc

      }
    
      // To support WhileRegion, we need to propagate device attributes from
      // WhileRegion operands to body/cond region arguments *prior* to visiting
      // these regions, so use a pre-order walk.
      WalkResult walk_res = func_op.walk<WalkOrder::PreOrder>([&](Operation* op) {
        if (auto var_handle = dyn_cast<VarHandleOp>(op)) {
          // Record VarHandleOp's device attribute.
          StringRef device_attr = GetDeviceAttr(op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.h

      // Inserts constraints for multiple values.
      void Insert(ValueRange value, ValueConstraint constraint);
    
      // Walk all the constraints owned by this set.
      void Walk(llvm::function_ref<void(Value, ValueConstraint)> walk) const;
    
      // Returns the constraint of the value if it exists, or None otherwise.
      std::optional<ValueConstraint> GetConstraint(Value value) const;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  8. pkg/wasm/imagefetcher.go

    	}
    
    	// The target file name for Wasm binary.
    	// https://github.com/solo-io/wasm/blob/master/spec/spec-compat.md#specification
    	const wasmPluginFileName = "plugin.wasm"
    
    	// Search for the file walking through the archive.
    
    	// Limit wasm binary to 256mb; in reality it must be much smaller
    	tr := tar.NewReader(io.LimitReader(gr, 1024*1024*256))
    	for {
    		h, err := tr.Next()
    		if err == io.EOF {
    			break
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Dec 10 05:44:51 UTC 2023
    - 12K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

      // per replica > 1, it does not need to be skipped.
      if (num_cores_per_replica != 1) return success();
    
      llvm::SetVector<Value> bcasts;
      cluster->walk([&](Operation* op) {
        if (op == cluster) return WalkResult::advance();
        for (auto operand : op->getOperands()) {
          Operation* scope = operand.getParentBlock()->getParentOp();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

            if (IsEmbeddingOp(predecessor)) continue;
            skip = !head_outside_compiled_ops.contains(predecessor);
            break;
          }
          if (skip) continue;
        }
    
        auto walk_result = cluster_op.walk([&](Operation* op) {
          for (Value operand : op->getOperands()) {
            Operation* operand_op = GetOpOfValue(operand);
            if (head_outside_compiled_ops.count(operand_op) ||
                operand_op == &cluster_op)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top