- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 382 for get_operations (0.26 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc
if (failed(MoveStandalonePreprocessingOp(&builder, getOperation(), op))) return signalPassFailure(); } RewritePreprocessInputs(&builder, getOperation(), op); } // Handle ops with mini_batch_in_csr attribute. preprocess_ops.clear(); getOperation().walk([&](Operation* op) { if (op->hasAttr(kMiniBatchCsrAttr)) { preprocess_ops.push_back(op); } });
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc
func::FuncOp callee = from.lookup<func::FuncOp>(symbol_ref.getValue()); callee.getOperation()->getBlock()->getOperations().remove( callee.getOperation()); to.insert(callee); } void TPUBridgeExecutorIslandOutlining::runOnOperation() { MLIRContext *ctx = &getContext(); SymbolTable symbol_table(getOperation()); if (Operation *nested_module = symbol_table.lookup(kNestedModule)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_graph_optimization_pass.cc
// operation list from module_out to module_in. auto& module_in_ops = module_in.getBody()->getOperations(); module_in_ops.clear(); module_in_ops.splice(module_in_ops.end(), module_out->getBody()->getOperations()); } // Returns a vector of passes from their names. If a pass is not found, then the // corresponding return entry is null.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 22:19:26 UTC 2024 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/hoist_replicate_invariant_resource_writes.cc
SmallVector<TF::AssignVariableOp, 16> tail_assign_variable_ops; llvm::SmallDenseSet<Value, 16> visited_resources; for (auto& op : llvm::reverse(replicate_op.getRegion().front().getOperations())) { SmallVector<Value> op_accessed_resources = GetAccessedResources(op); if (op_accessed_resources.empty()) continue; if (auto assign = llvm::dyn_cast<TF::AssignVariableOp>(op)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/parallel_execute_to_islands.cc
// wrap a single op. So we'll split all islands which wrap multiple ops. auto control_type = tf_executor::ControlType::get(island_op.getContext()); for (auto& execute : executes) { if (execute.GetBody().getOperations().size() > 1) { mlir::TF::SplitIsland(execute, control_type); } } } island_op.erase(); } void ParallelExecuteToIslandsPass::runOnOperation() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 19 19:47:16 UTC 2023 - 11.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc
} } // Move inner ops from island to block containing graph. auto &island_body = island_op.GetBody().getOperations(); Operation *operation = op.getOperation(); operation->getBlock()->getOperations().splice( operation->getIterator(), island_body, island_body.begin(), std::prev(island_body.end())); rewriter.replaceOp(op, new_rets);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 42.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc
Operation* new_yield_op) { Block* block = new_yield_op->getBlock(); auto move_inner_ops = [block, new_yield_op](IslandOp island) { auto& island_body = island.GetBody().getOperations(); block->getOperations().splice(new_yield_op->getIterator(), island_body, island_body.begin(), std::prev(island_body.end())); };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/group_by_dialect.cc
Operation* module) { for (Block& block : region.getBlocks()) { StringRef current_dialect("<none>"); std::vector<Operation*> ops; for (Operation& op : block.getOperations()) { StringRef dialect = op.getName().getDialectNamespace(); for (Region& region : op.getRegions()) { // When processing nested operations, move all ops (except for func.*)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 8K bytes - Viewed (0) -
tensorflow/compiler/mlir/python/mlir_wrapper/ops.cc
.getOperation(); }); // mlir::TF::AddOp py::class_<mlir::TF::AddV2Op>(m, "Tf_AddV2Op") .def("create", [](mlir::OpBuilder& opb, mlir::Location loc, mlir::Value x, mlir::Value y) -> mlir::Operation* { return opb.create<mlir::TF::AddV2Op>(loc, x, y).getOperation(); });
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 30 02:12:49 UTC 2022 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_cluster_util.cc
return WalkResult::interrupt(); host_device = host_device_value; } cluster_to_host[tpu_cluster.getOperation()] = host_device; return tpu_cluster.walk([&](Operation* op) { insert_pending_op(op, tpu_cluster); return callback(op, tpu_cluster, cluster_to_host[tpu_cluster.getOperation()]); }); }); if (result.wasInterrupted()) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 04:50:13 UTC 2023 - 4.7K bytes - Viewed (0)