- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for getIsStateless (0.18 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc
Value cond = ConvertConditionToBoolean(if_op, if_op.getCond()); OpBuilder builder(if_op); auto if_region = builder.create<TF::IfRegionOp>( if_op.getLoc(), if_op.getResultTypes(), cond, if_op.getIsStateless(), builder.getStringAttr(if_op.then_function().getName()), builder.getStringAttr(if_op.else_function().getName())); CopyDeviceAndUnderscoredAttributes(if_op, if_region);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf_while.cc
// Create new TFL While op that will be used to replace TF While op. auto new_op = OpBuilder(op).create<TFL::WhileOp>( op->getLoc(), op->getResultTypes(), op->getOperands(), while_op.getIsStateless()); Location loc = while_op->getLoc(); CreateRegionWithCall(while_op.cond_function(), new_op.getCond(), loc); CreateRegionWithCall(while_op.body_function(), new_op.getBody(), loc);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc
// If the If has no uses and its functions are side-effect free, then // remove. // TODO(jpienaar): Remove once recusive side-effects are supported. if (op.use_empty() && (op.getIsStateless() || (IsSideEffectFree(then_func) && IsSideEffectFree(else_func)))) { rewriter.eraseOp(op.getOperation()); return success(); } // Extract the constant cond value.
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/region_control_flow_to_functional.cc
// op. OpBuilder builder(if_region); auto if_op = builder.create<IfOp>( if_region.getLoc(), if_region.getResultTypes(), cond, extern_values, then_name, else_name, if_region.getIsStateless()); CopyAndOverrideAttributes(if_region, if_op, &builder); if_region.replaceAllUsesWith(if_op.getResults()); if_region.erase(); if (to_bool && to_bool.use_empty()) to_bool.erase();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
std::optional<std::string> CollectiveReduceV2Op::GetResourceInstanceStr() { if (!getIsStateless() && getNorderingToken() == 0) return std::optional<std::string>(""); return std::nullopt; } std::optional<std::string> CollectiveReduceScatterV2Op::GetResourceInstanceStr() { if (!getIsStateless() && getNorderingToken() == 0) return std::optional<std::string>(""); return std::nullopt; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/merge_control_flow.cc
auto new_if_op = builder.create<TF::IfRegionOp>( first_if.getLoc(), merged_return_types, first_if.getCond(), llvm::all_of(if_op_segment, [&](TF::IfRegionOp op) { return op.getIsStateless(); }), first_if.get_thenFuncNameAttr(), first_if.get_elseFuncNameAttr()); new_if_op.getThenBranch().push_back(new Block); new_if_op.getElseBranch().push_back(new Block);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 25.9K bytes - Viewed (0)