- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 3,906 for while_1 (0.13 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc
if (while_op != nullptr) { use.getUser()->emitOpError() << "multiple users of function."; return LogicalResult::failure(); } else { while_op = llvm::cast<TF::WhileOp>(use.getUser()); } } else { use.getUser()->emitOpError() << "non while use of function."; return LogicalResult::failure(); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 92.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.cc
return; } if (auto while_op = dyn_cast<TF::WhileOp>(op)) { for (auto callee : {while_op.cond_function(), while_op.body_function()}) { PropagatePotentiallyWrittenUpFromCallee(callee.getRegion(), while_op.getInput()); } return; } if (auto while_op = dyn_cast<TF::WhileRegionOp>(op)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_while_results.cc
void RemoveUnusedWhileResultsPass::runOnOperation() { func::FuncOp func = getOperation(); // Try to prune defining ops of unused results. func.walk([&](TF::WhileRegionOp while_op) { for (OpResult result : while_op.getResults()) { TryPruneResultDefiningOp(while_op, result); } }); // Now eliminate passthrough operands/results with existing canonicalization // pattern. MLIRContext* context = &getContext();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 16 01:49:07 UTC 2022 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc
/*flatten_tuple*/ true); // Create new `mhlo.while` op with extra token operand and result. auto new_while = builder.create<WhileOp>(region_while.getLoc(), new_result_types, new_val_operands); // Move all regions from the old `mhlo.while` op to its replacement. new_while.getCond().takeBody(region_while.getCond());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 40.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/embedding_pipelining.mlir
} } // ----- // Verify one while body function per while loop op. module { func.func @main() { %cst_main = "tf.Const"() {value = dense<1> : tensor<i32>} : () -> tensor<i32> %0 = "tf.While"(%cst_main) {body = @while_body, cond = @while_cond, is_stateless = false} : (tensor<i32>) -> (tensor<i32>) // expected-error @+1 {{'tf.While' op multiple users of function.}}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 33.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
return success(); } namespace { // Canonicalize While op so that results and operands match and external values // are via implicit capture rather than via block args. struct WhileResultOperandsMatchAndImplicitCapture : public OpRewritePattern<WhileOp> { using OpRewritePattern<WhileOp>::OpRewritePattern; LogicalResult matchAndRewrite(WhileOp while_op,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/embedding_sequencing.mlir
// ----- // Verify error for multiple WhileOp use of while_body function. module { func.func @main() { %cst_main = "tf.Const"() {value = dense<1> : tensor<i32>} : () -> tensor<i32> %0 = "tf.While"(%cst_main) {body = @while_body, cond = @while_cond, is_stateless = false} : (tensor<i32>) -> (tensor<i32>) // expected-error @+1 {{'tf.While' op multiple users of function.}}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Aug 01 21:27:49 UTC 2023 - 19.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
while_op.getInput().getTypes(), while_op.getOutput().getTypes(), while_op.getBody().getArgumentTypes()); return PropagateShapeToRegions(compatible_types, {&while_op.getCond(), &while_op.getBody()}, max_iterations); } return PropagateShapeToRegions(while_op.getInput().getTypes(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/convert_tf_control_flow_to_scf.cc
ValueRange opInput = op.getInput(); TypeRange scf_block_arguments_type = opInput.getType(); // Create the `scf.while` op. auto scf_while_op = rewriter.create<scf::WhileOp>( op.getLoc(), op.getResultTypes(), opInput); // Create the `before` block of the `scf.while` op (with an `scf.condition` // op as the terminator). Note that the arguments' type of this block is
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 9.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc
void>::getResultSegmentSizeAttr(); attrs_to_ignore.insert(attr_name.data()); } if (llvm::isa<mlir::TF::CaseOp, mlir::TF::IfOp, mlir::TF::WhileOp>(inst)) attrs_to_ignore.insert("is_stateless"); if (llvm::isa<mlir::TF::WhileOp>(inst)) attrs_to_ignore.insert("shape_invariant"); return attrs_to_ignore; } // Populates all derived attributes of a MLIR operation in a proto
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 11.1K bytes - Viewed (0)