- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 405 for nFront (0.29 sec)
-
tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc
// Updates function return type of the given functions to match the terminator // op operands' types. // // Requires the function has exactly one block. void UpdateFuncType(func::FuncOp func) { Operation* terminator = func.front().getTerminator(); auto return_types = llvm::to_vector<4>(terminator->getOperandTypes()); FunctionType func_type = func.getFunctionType(); if (llvm::ArrayRef(return_types) == func_type.getResults()) return;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc
} // Replace original terminator with new terminator for returning merged // execute results. Operation* old_terminator = execute_region->front().getTerminator(); builder->setInsertionPointToEnd(&execute_region->front()); builder->create<tf_device::ReturnOp>(old_terminator->getLoc(), merged_execute_launch.getResults()); old_terminator->erase();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 29 17:52:11 UTC 2024 - 27K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/analysis/tensor_array_side_effect_analysis.cc
mlir::TF::TensorArrayWriteV3Op>(op); } static bool FunctionContainsOnlyNoSideEffectOpOrTensorArrayOp( mlir::func::FuncOp func_op) { for (mlir::Operation& op : func_op.front()) { if (!mlir::isMemoryEffectFree(&op) && !IsTensorArrayOp(&op)) return false; } return true; } TensorArraySideEffectAnalysis::TensorArraySideEffectAnalysis( mlir::ModuleOp module) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 16 01:49:07 UTC 2022 - 1.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc
std::get<0>(result).replaceAllUsesWith(std::get<1>(result)); } rewriter.setInsertionPoint(cloned_func.getBody().front().getTerminator()); rewriter.create<TF::_XlaSendFromHostOp>( func.getLoc(), cloned_func.getBody().front().getTerminator()->getOperands(), /*dynamic_key=*/dynamic_key, op.getRecvKeyAttr(), /*device_ordinal=*/rewriter.getI64IntegerAttr(0),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc
// body and removes the arguments. void RewriteFunction(const SymbolTable& symbol_table, func::FuncOp func) { if (func.getNumArguments() == 0) { return; } auto builder = OpBuilder::atBlockBegin(&func.front()); llvm::SmallDenseMap<llvm::StringRef, TF::ConstOp> const_ops; llvm::BitVector arg_indexes_to_remove(func.getNumArguments()); // Replace arguments with const ops.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/analysis/test_cost_analysis_pass.cc
} void runOnOperation() override { const auto& cost_analysis = getAnalysis<CostAnalysis>(); auto func_op = getOperation(); for (auto& op : func_op.front()) { op.emitRemark() << "Cost: " << cost_analysis.GetCost(&op); } } }; static mlir::PassRegistration<TestCostAnalysis> pass; } // namespace tfrt_compiler
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 01 23:46:29 UTC 2023 - 1.6K bytes - Viewed (0) -
src/cmd/go/internal/load/godebug.go
func defaultGODEBUG(p *Package, directives, testDirectives, xtestDirectives []build.Directive) string { if p.Name != "main" { return "" } goVersion := modload.MainModules.GoVersion() if modload.RootMode == modload.NoRoot && p.Module != nil { // This is go install pkg@version or go run pkg@version. // Use the Go version from the package. // If there isn't one, then assume Go 1.20, // the last version before GODEBUGs were introduced.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_formation.cc
} } } // Get all escaped live-out values of a region. void GetLiveOuts(Region* region, llvm::SmallVectorImpl<Value>* live_outs) { live_outs->clear(); for (Operation& op : region->front()) { for (Value v : op.getResults()) { // A value is live-out if any of its users are not inside value producer's // region. bool is_live_out = llvm::any_of(v.getUsers(), [&](Operation* user) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 05 13:30:21 UTC 2023 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.cc
// %5 = select(%2, %3, %4) // return %1, %5 LogicalResult MatchReduceToArgMinMaxType2(mhlo::ReduceOp reduce_op, bool is_argmax) { Block& body = reduce_op.getBody().front(); if (body.getNumArguments() != 4) return failure(); mhlo::ReturnOp return_op = dyn_cast<mhlo::ReturnOp>(body.back()); if (!return_op || return_op.getNumOperands() != 2) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 20:53:17 UTC 2024 - 8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc
func::FuncOp func, llvm::SmallVectorImpl<Type>& new_input_types, OpBuilder builder) { if (mlir::isa<FloatType>(input_type)) { return success(); } Block& block = func.front(); builder.setInsertionPointToStart(&block); for (int i = 0; i != block.getNumArguments(); ++i) { Value arg = block.getArgument(0); Type arg_type = arg.getType(); Value new_arg = arg;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0)