- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 313 for walkIf (0.12 sec)
-
tensorflow/compiler/mlir/lite/quantization/lite/tfl_to_std.cc
#include "tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h" namespace mlir { namespace TFL { void ConvertTFLQuantOpsToMlirQuantOps(func::FuncOp func) { OpBuilder b(func); func.walk([&](Operation* op) { b.setInsertionPoint(op); if (auto dq = llvm::dyn_cast<DequantizeOp>(op)) { auto dcast = b.create<quantfork::DequantizeCastOp>( dq.getLoc(), dq.getOutput().getType(), dq.getInput());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 02:50:01 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/atomic/atomic.go
checkAtomicAddAssignment(pass, n.Lhs[i], call) } } }) return nil, nil } // checkAtomicAddAssignment walks the atomic.Add* method calls checking // for assigning the return value to the same variable being used in the // operation func checkAtomicAddAssignment(pass *analysis.Pass, left ast.Expr, call *ast.CallExpr) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc
// function, so all stablehlo functions are of no use in the top-level module. // // Walk the module to find functions with `_from_xla_call_module` attribute, // and remove them. void RemoveSerializedStablehloFunctions(ModuleOp module) { module.walk([&](func::FuncOp f) { if (f->hasAttr(kFromXlaCallModuleAttrName)) { f->erase(); } }); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.5K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
tensorflow/compiler/mlir/tensorflow/transforms/test_side_effect_analysis.cc
void runOnFunction(func::FuncOp func, const TF::SideEffectAnalysis::Info& analysis) { int64_t next_id = 0; llvm::SmallDenseMap<Operation*, int64_t, 8> ids; func.walk([&](Operation* op) { ids[op] = next_id++; op->emitRemark("ID: ") << ids[op]; }); auto join_ids = [&](const llvm::ArrayRef<Operation*> ops) { llvm::SmallVector<std::string, 8> id_vec;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 19 00:13:50 UTC 2022 - 3.2K bytes - Viewed (0) -
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) -
src/syscall/mksysctl_openbsd.pl
# # Build a MIB with each entry being an array containing the level, type and # a hash that will contain additional entries if the current entry is a node. # We then walk this MIB and create a flattened sysctl name to OID hash. # use strict; my $debug = 0; my %ctls = (); my @headers = qw ( sys/sysctl.h sys/socket.h sys/tty.h sys/malloc.h sys/mount.h
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 14 13:21:46 UTC 2018 - 5K bytes - Viewed (0)