Home
last modified time | relevance | path

Searched refs:while_region (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dregion_control_flow_to_functional.cc59 LogicalResult ConvertWhileOp(WhileRegionOp while_region);
358 WhileRegionOp while_region) { in ConvertWhileOp() argument
380 IsSingleCallRegion(while_region.cond(), /*allow_to_bool=*/true), in ConvertWhileOp()
381 IsSingleCallRegion(while_region.body()), while_arg_matcher); in ConvertWhileOp()
384 auto new_inputs = llvm::to_vector<4>(while_region.getOperands()); in ConvertWhileOp()
387 auto new_result_types = llvm::to_vector<4>(while_region.getResultTypes()); in ConvertWhileOp()
403 CollectExternValues(while_region.cond(), while_region.body()); in ConvertWhileOp()
407 cond_name = GetName(while_region, "_cond"); in ConvertWhileOp()
408 ExtractSingleBlockRegion(while_region.cond(), cond_name, extern_values, in ConvertWhileOp()
411 body_name = GetName(while_region, "_body"); in ConvertWhileOp()
[all …]
Dfunctional_control_flow_to_regions.cc117 auto while_region = OpBuilder(while_op).create<TF::WhileRegionOp>( in ConvertWhileOp() local
121 CopyDeviceAndUnderscoredAttributes(while_op, while_region); in ConvertWhileOp()
125 /*caller_region=*/while_region.cond(), while_op.input(), in ConvertWhileOp()
132 /*caller_region=*/while_region.body(), while_op.input(), in ConvertWhileOp()
134 while_op.replaceAllUsesWith(while_region.getResults()); in ConvertWhileOp()
Dresource_device_inference.cc198 } else if (auto while_region = dyn_cast<WhileRegionOp>(op)) { in ComputeResourceDevicesInComputation() local
207 for (auto output : filter_resources(while_region.getResults())) { in ComputeResourceDevicesInComputation()
216 for (Region* region : while_region.getRegions()) { in ComputeResourceDevicesInComputation()
223 while_region, result))) in ComputeResourceDevicesInComputation()
Dresource_op_lifting_cleanup.cc433 } else if (auto while_region = dyn_cast<TF::WhileRegionOp>(op)) { in CleanupAndCanonicalize() local
434 if (while_region.cond().walk(check_while_cond).wasInterrupted()) in CleanupAndCanonicalize()
437 (void)CanonicalizeWhileRegion(while_region); in CleanupAndCanonicalize()
Dshape_inference.cc242 if (auto while_region = llvm::dyn_cast<WhileRegionOp>(use.getOwner())) { in CanInferTensorListElementType() local
243 for (auto branch : while_region.getRegions()) { in CanInferTensorListElementType()
1077 if (auto while_region = dyn_cast<WhileRegionOp>(op)) in InferShapeForSingleOperation() local
1079 while_region, in InferShapeForSingleOperation()
1080 while_region.body().front().getTerminator()->getOperandTypes()); in InferShapeForSingleOperation()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/analysis/
Dresource_alias_analysis.cc319 } else if (auto while_region = dyn_cast<WhileRegionOp>(op)) { in ResourceAliasAnalysisInfo() local
320 AnalyzeWhileLoop(while_region, backtrack_analysis.GetAnalysisForRegion( in ResourceAliasAnalysisInfo()
321 while_region.body())); in ResourceAliasAnalysisInfo()