Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 590 for walkP (0.05 sec)

  1. src/runtime/unsafe.go

    		panicunsafestringlen()
    	}
    
    	if uintptr(len) > -uintptr(ptr) {
    		if ptr == nil {
    			panicunsafestringnilptr()
    		}
    		panicunsafestringlen()
    	}
    }
    
    // Keep this code in sync with cmd/compile/internal/walk/builtin.go:walkUnsafeString
    func unsafestring64(ptr unsafe.Pointer, len64 int64) {
    	len := int(len64)
    	if int64(len) != len64 {
    		panicunsafestringlen()
    	}
    	unsafestring(ptr, len)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:51:18 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. src/cmd/fix/cftype.go

    		return false
    	}
    	typeof, _ := typecheck(&TypeConfig{}, f)
    	changed := false
    
    	// step 1: Find all the nils with the offending types.
    	// Compute their replacement.
    	badNils := map[any]ast.Expr{}
    	walk(f, func(n any) {
    		if i, ok := n.(*ast.Ident); ok && i.Name == "nil" && badType(typeof[n]) {
    			badNils[n] = &ast.BasicLit{ValuePos: i.NamePos, Kind: token.INT, Value: "0"}
    		}
    	})
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:25:49 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/debugger.cc

    namespace stablehlo::quantization {
    
    void DisableDebugging(mlir::ModuleOp module_op) {
      module_op.walk(
          [](mlir::TF::DumpTensorOp dump_op) { dump_op.setEnabled(false); });
    }
    
    void ChangeToQuantizedFilename(mlir::ModuleOp module_op) {
      module_op.walk([](mlir::TF::DumpTensorOp dump_op) {
        dump_op.setFileName("quantized_tensor_data.pb");
      });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 00:17:12 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/move_tpu_compile_to_front.cc

    struct MoveTpuCompileToFrontPass
        : public impl::MoveTpuCompileToFrontPassBase<MoveTpuCompileToFrontPass> {
      void runOnOperation() override;
    };
    
    void MarkCompilationOps(Operation* func) {
      func->walk([&](Operation* op) {
        if (llvm::isa<TF::_TPUCompileMlirOp>(op)) {
          op->setAttr("_is_compilation", UnitAttr::get(func->getContext()));
          op = op->getParentOp();
          while (op && op != func) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 17 00:26:18 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/localize_var_handles.cc

      OpBuilder globalBuilder(module.getBodyRegion());
    
      module.walk(
          [&](TF::ReadVariableOp op) { MaybeCreateVarHandleForOp(op, solver); });
      module.walk(
          [&](TF::AssignVariableOp op) { MaybeCreateVarHandleForOp(op, solver); });
      module.walk(
          [&](TF::IteratorGetNextOp op) { MaybeCreateVarHandleForOp(op, solver); });
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. src/cmd/go/internal/mvs/mvs.go

    		return nil
    	}
    	for _, m := range list {
    		if err := walk(m); err != nil {
    			return nil, err
    		}
    	}
    
    	// Walk modules in reverse post-order, only adding those not implied already.
    	have := map[module.Version]bool{}
    	walk = func(m module.Version) error {
    		if have[m] {
    			return nil
    		}
    		have[m] = true
    		for _, m1 := range reqCache[m] {
    			walk(m1)
    		}
    		return nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 21:58:12 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  7. pkg/util/filesystem/defaultfs.go

    }
    
    // ReadDir via os.ReadDir
    func (fs *DefaultFs) ReadDir(dirname string) ([]os.DirEntry, error) {
    	return os.ReadDir(fs.prefix(dirname))
    }
    
    // Walk via filepath.Walk
    func (fs *DefaultFs) Walk(root string, walkFn filepath.WalkFunc) error {
    	return filepath.Walk(fs.prefix(root), walkFn)
    }
    
    // defaultFile implements File using same-named functions from "os"
    type defaultFile struct {
    	file *os.File
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. pkg/volume/volume_linux.go

    // from filepath.Walk:
    //   - List of files/dirs is not sorted for performance reasons
    //   - callback walkFunc is invoked on root directory after visiting children dirs and files
    func walkDeep(root string, walkFunc filepath.WalkFunc) error {
    	info, err := os.Lstat(root)
    	if err != nil {
    		return walkFunc(root, nil, err)
    	}
    	return walk(root, info, walkFunc)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tpu_identity_pruning.cc

    // results.
    void RemoveIdentityFromRegion(Region& region) {
      region.walk([](Operation* op) {
        if (isa<TF::IdentityOp, TF::IdentityNOp>(op)) {
          op->replaceAllUsesWith(op->getOperands());
          op->erase();
        }
      });
    }
    
    void TPUIdentityPruning::runOnOperation() {
      SmallVector<tf_device::ClusterOp, 4> clusters;
      getOperation().walk(
          [&](tf_device::ClusterOp cluster) { clusters.push_back(cluster); });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/tpu_cluster_util.cc

          CallGraphNode* node = call_graph.resolveCallable(call, symbol_table);
          pending_call_nodes.emplace_back(node, tpu_cluster);
        }
      };
    
      // Traverse ops in each TPU cluster.
      auto result = module.walk([&](tf_device::ClusterOp tpu_cluster) {
        std::optional<std::string> host_device;
        if (pass_host_device) {
          std::string host_device_value;
          if (failed(tensorflow::GetHostDeviceOutsideComputation(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 04:50:13 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top