- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for getTerminator (0.41 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
cloned_cond.eraseArgument(idx); cloned_body.front().getTerminator()->eraseOperand(idx); cloned_body.eraseArgument(idx); } // Patch up branch function types. for (func::FuncOp func : {cloned_cond, cloned_body}) { func.setType( FunctionType::get(func.getContext(), func.front().getArgumentTypes(), func.front().getTerminator()->getOperandTypes())); }
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/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc
} mlir::tf_device::LaunchOp launch = CreateLaunchForBlock( builder, cluster, /*before=*/true, launch_block, host_device); for (auto result : llvm::zip(launch.GetBody().getTerminator()->getOperands(), launch.getResults())) replaceAllUsesInRegionWith(std::get<0>(result), std::get<1>(result), cluster.getBody()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc
for (OpOperand& operand : reduced_launch_op.GetBody().getTerminator()->getOpOperands()) { reduced_return_operand_map.insert( {operand.get(), operand.getOperandNumber()}); } for (int i = 0; i < original_launch_op->getNumResults(); i++) { Value operand = original_launch_op.GetBody().getTerminator()->getOperand(i); auto defining_op = operand.getDefiningOp();
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/merge_control_flow.cc
replaceAllUsesInRegionWith( result, it->getThenBranch().front().getTerminator()->getOperand( result.getResultNumber()), it2->getThenBranch()); replaceAllUsesInRegionWith( result, it->getElseBranch().front().getTerminator()->getOperand( result.getResultNumber()), it2->getElseBranch()); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 25.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc
BlockArgument arg = std::get<1>(sharding_and_arg); if (failed(VerifySharding(arg.getType(), sharding))) return mlir::failure(); } Operation* terminator = function_block.getTerminator(); for (auto sharding_and_retval : llvm::zip(sharding_for_rets, terminator->getOpOperands())) { const auto& sharding = std::get<0>(sharding_and_retval);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 02:01:13 UTC 2024 - 28.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc
FunctionType type; if (passthru_extra_args) { type = FunctionType::get(context, types, types); } else { SmallVector<Type, 4> result_types; auto operands = region.front().getTerminator()->getOperandTypes(); result_types.append(operands.begin(), operands.end()); type = FunctionType::get(context, types, result_types); } auto outlined_func = builder.create<func::FuncOp>(loc, name, type);
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/ir/tf_device.cc
unsigned region_index) { int num_region_results = GetRegionBlockWithIndex(region_index).getTerminator()->getNumOperands(); int return_value_offset = 0; for (int region_id = 0; region_id < region_index; ++region_id) return_value_offset += GetRegionBlockWithIndex(region_id).getTerminator()->getNumOperands(); return getResults().slice(return_value_offset, num_region_results); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.4K 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/tensor_list_ops_decomposition.cc
llvm::SmallVector<Type, 8> arg_types; for (auto arg : func.getArguments()) arg_types.push_back(arg.getType()); func.setType( FunctionType::get(func.getContext(), arg_types, func.front().getTerminator()->getOperandTypes())); } // Holds the size value of a tensor list and whether the size is statically // known (fixed). struct SizeInfo { Value size; bool fixed; };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc
const int size_before = output_types->size(); for (int index = start; index < end; ++index) { Block& block = parallel_execute.GetRegionBlockWithIndex(index); auto terminator_operand_types = block.getTerminator()->getOperandTypes(); output_types->append(terminator_operand_types.begin(), terminator_operand_types.end()); } return output_types->size() - size_before; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 29 17:52:11 UTC 2024 - 27K bytes - Viewed (0)