- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 3,906 for while_1 (0.14 sec)
-
tensorflow/compiler/jit/rearrange_function_argument_pass_test.cc
NameAttrList cond_fn, body_fn; cond_fn.set_name("f3"); body_fn.set_name("f2"); auto while_op = ops::While(s.WithOpName("while"), std::initializer_list<Input>{arg0, arg1}, cond_fn, body_fn); auto ret2 = ops::_Retval(s.WithOpName("ret2"), while_op.output[0], 2); auto ret3 = ops::_Retval(s.WithOpName("ret3"), while_op.output[1], 3); std::unique_ptr<Graph> g(new Graph(OpRegistry::Global()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 09 11:36:41 UTC 2024 - 10.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc
return success(); } LogicalResult ConvertWhileOp(WhileOp while_op, bool allow_passthrough_args) { auto while_region = OpBuilder(while_op).create<TF::WhileRegionOp>( while_op.getLoc(), while_op.getResultTypes(), while_op.getInput(), while_op.getParallelIterations(), while_op.getIsStateless(), while_op.getShapeInvariant()); CopyDeviceAndUnderscoredAttributes(while_op, while_region); YieldOp cond_yield =
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/tensorflow/tests/tpu-multiple-while-body-func.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 13 21:23:47 UTC 2024 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc
read_var->erase(); } else if (auto while_op = dyn_cast<TF::WhileOp>(user_op)) { GetUpdatedWhileOp<TF::WhileOp>( while_op, while_op.cond_function().getArgumentTypes(), args_to_erase); while_op->erase(); } else if (auto while_op = dyn_cast<TF::WhileRegionOp>(user_op)) { auto new_while_op = GetUpdatedWhileOp( while_op, while_op.getCond().getArgumentTypes(), args_to_erase);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 09:56:53 UTC 2024 - 19.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.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 - 39.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
result = CanonicalizeFunctionalIfCase(case_op, branches, case_op.getInput()); } else if (auto while_op = dyn_cast<TF::WhileOp>(op)) { if (while_op.cond_function().walk(check_while_cond).wasInterrupted()) return WalkResult::interrupt(); result = CanonicalizeFunctionalWhile(while_op); } else if (isa<TF::IfRegionOp, TF::CaseRegionOp, tf_device::ClusterOp>( op)) {
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/lite/tests/tfl_while_outline.mlir
// Test to verify loop outlining. // RUN: tf-opt --split-input-file --tfl-while-loop-outline %s | FileCheck %s // Check that while loop outlining is nop if re-ran. // RUN: tf-opt --tfl-while-loop-outline %s -o %t1 // RUN: tf-opt --tfl-while-loop-outline %t1 -o %t2 // RUN: diff %t1 %t2 // CHECK-LABEL: func @while func.func @while() -> tensor<1xf32> attributes {tf.entry_function = {outputs = "result"}} {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 13.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc
if (IfOp if_op = llvm::dyn_cast<IfOp>(op)) { if (failed(LowerIfOp(if_op))) { return signalPassFailure(); } break; } if (WhileOp while_op = llvm::dyn_cast<WhileOp>(op)) { if (failed(LowerWhileOp(while_op))) { return signalPassFailure(); } break; } } } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 13 11:42:59 UTC 2023 - 12.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc
} if (!signature_change) return success(); // Create the new while op. auto new_while_operands = llvm::to_vector<8>(while_op.getOperands()); OpBuilder builder(while_op); assert(while_op.getNumOperands() == while_op.getNumResults()); for (int64_t i = 0; i < while_op.getNumResults(); ++i) { auto it = data_var_to_size_var.find(while_op.getOperand(i)); if (it == data_var_to_size_var.end()) continue;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc
}); // Recreate the while op. OpBuilder builder(while_op); // Now use the filtered original operands, which will be replaced by // AddLoadsStoresOutsideControlFlowOp(). auto new_while = builder.create<TF::WhileOp>( while_op.getLoc(), body.getFunctionType().getResults(), FilterRange<Value, OperandRange>(while_op.getOperands(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 55.1K bytes - Viewed (0)