- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for body_fn (0.12 sec)
-
tensorflow/compiler/jit/rearrange_function_argument_pass_test.cc
auto ret1 = ops::_Retval(s.WithOpName("ret1"), if_op.output[1], 1); 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);
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/cc/framework/while_gradients.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 05:57:22 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_ops.td
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 21:35:32 UTC 2024 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_ops.td
last element of results is an I1 value that is false. body_fn: The body function that takes the arguments and returns the results that includes an I1 value to indicate whether next iteration should be executed. The pseudo code: while(cond) { results = body_fn(operands) cond = results#1 } return results }];
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 22:07:30 UTC 2023 - 6.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.td
results: a list of futures. body_fn: its input are [predicate_promise, arg0_future, arg0_promise, arg1_future, arg1_promise, ..., invariant_args] and has no returned results. }]; let arguments = (ins TFTensorType:$cond, Variadic<TFTensorType>:$arguments, FlatSymbolRefAttr:$body_fn, I32Attr:$invariant_size);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 20:44:15 UTC 2024 - 13.6K bytes - Viewed (0) -
tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc
TF_CHECK_OK(GraphToFunctionDef(*g, "body_fn", body_fn_fdef)); } { tensorflow::Scope s = tensorflow::Scope::NewRootScope(); Output input = ops::Const(s.WithOpName("const0"), true, {2}); NameAttrList cond_fn; cond_fn.set_name("cond_fn"); NameAttrList body_fn; body_fn.set_name("body_fn"); auto while_op =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 41K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc
static LogicalResult LowerWhileOp(WhileOp op) { Operation* op_inst = op.getOperation(); Location loc = op_inst->getLoc(); OpBuilder builder(op_inst); auto cond_fn = op.cond_function(); auto body_fn = op.body_function(); // Split the block containing the While op into two blocks. One containing // operations before the While op and other containing the rest. Create two
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/tfrt/tests/mlrt/tpu_conversions.mlir
%max_iter = "tf.Const"() {__op_key = 1, value = dense<2> : tensor<i32>} : () -> tensor<i32> // CHECK: tf_mlrt.map_fn %result = "tf_mlrt.tf_map_fn"(%max_iter, %input2, %2) { operandSegmentSizes = array<i32: 1, 1, 1>, body_fn = @NopMapFnBody, num_tensor_list_or_flow_in = 1 : i32} : (tensor<i32>, tensor<!tf_type.variant<tensor<*xf32>>>, tensor<i32>) -> tensor<i32> return %result : tensor<i32> } // CHECK-LABEL: @NopMapFnBody
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 04 21:25:31 UTC 2023 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/mlrt/while_to_map_fn.mlir
// CHECK: [[map_fn_result:%.*]] = tf_mlrt.tf_map_fn([[reserve_size]], [[tensor_list]], %arg0) // CHECK-SAME: {body_fn = @"map/while_body/MapFnBody", num_tensor_list_or_flow_in = 1 : i32} // CHECK-NOT: tf.While
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 06:40:22 UTC 2024 - 68.6K bytes - Viewed (0) -
tensorflow/c/c_api.cc
/* nreturn_nodes */ 1, &cond_output)); *output = cond_output[0]; return absl::OkStatus(); }; // 'body_fn' copies the body graph into the parent graph. tensorflow::ops::BodyGraphBuilderFn body_fn = [params, parent, num_loop_vars]( const tensorflow::Scope& scope, const std::vector<tensorflow::Output>& inputs,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 102.3K bytes - Viewed (0)