- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for branch_function (0.37 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc
CopyDeviceAndUnderscoredAttributes(case_op, case_region); for (const auto& item : llvm::enumerate(case_region.getBranches())) { CreateCall(case_op, case_op.branch_function(item.index()), /*caller_region=*/item.value(), case_op.getInput(), /*use_region_args=*/false, /*forward_block_args=*/false); }
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/ir/tf_ops.td
return SymbolTable::lookupNearestSymbolFrom<func::FuncOp>(*this, flat_sym_ref); } // TODO(b/204997177): Deprecate and remove. func::FuncOp branch_function(int index) { return ResolveBranchFunction(nullptr, index); } // Resolve all branch functions. // Prefer passing in SymbolTableCollection to reduce lookup costs by
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 04:08:35 UTC 2024 - 90.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/tfrt_fallback/batching_fallback.mlir
// ... then the code should not crash. // CHECK-LABEL: Running 'test_batch_returns_multiple_refs' func.func @test_batch_returns_multiple_refs() -> !tfrt.chain { %ch0 = tfrt.new.chain %0 = tfrt_fallback_async.const_dense_tensor dense<[[1, 1], [1, 1]]> : tensor<2x2xi32> %1, %2 = tfrt_fallback_async.batch_function device("/device:CPU:0") @returns_multiple_refs (%0) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jul 18 22:58:56 UTC 2023 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.cc
// interface the `CallOpInterface` so it should be handled separately. if (auto batch_function = dyn_cast<TF::BatchFunctionOp>(op)) { // Propagate the analysis results from within the callee's body. PropagatePotentiallyWrittenUpFromCallee(batch_function.func().getRegion(), batch_function.getOperands()); return; }
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/tfrt/tests/batch_function_fallback_resource_variable_as_captured_tensor.mlir
%outputs_1, %control_1 = tf_executor.island wraps "tf.Cast"(%outputs_0) {Truncate = false} : (tensor<!tf_type.resource<tensor<501000x128xf32>>>) -> tensor<*x!tf_type.resource> // CHECK: tfrt_fallback_async.batch_function device([[DEVICE:.*]]) @batched_func ([[BATCHED_FUNC_ARG:%.*]]) // CHECK-SAME: Tcaptured = [!corert.resource] // CHECK-SAME: Tin = [] // CHECK-SAME: Tout = [f32]
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Aug 14 15:35:49 UTC 2023 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.td
} def BatchFunctionOp : TensorflowMlrt_Op<"batch_function", [Pure]> { let summary = "Fallback ExecuteOp specialized for tf.BatchFunction."; let description = [{ This kernel executes a variant tf.BatchFunction kernel that supports having the `f` attribute as a bytecode function. Example: %res = tf_mlrt.batch_function(%input, %captured_input) { device = "/device:CPU:0",
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/mlir/tfrt/tests/mlrt/tpu_conversions.mlir
func.func @callee(%arg0: tensor<i32>, %arg1: tensor<i32>) -> (tensor<i32>) { func.return %arg0: tensor<i32> } // CHECK-LABEL: func @batch_function func.func @batch_function(%arg0: tensor<i32>) -> (tensor<i32>) { // CHECK: [[batch_result_future:%.*]] = tf_mlrt.batch_function // CHECK: [[batch_result:%.*]] = tf_mlrt.await [[batch_result_future]]
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/batch_function_lowering.mlir
%0 = "tf.VarHandleOp"() {device = "/device:CPU:0", container = "", shared_name = "variable"} : () -> tensor<!tf_type.resource<tensor<1x3xf32>>> // CHECK: tfrt_fallback_async.batch_function device("/device:CPU:0") @batched_function // CHECK-SAME: Tin = [f32] // CHECK-SAME: Tout = [f32] // CHECK-SAME: allowed_batch_sizes = [6] // CHECK-SAME: batch_timeout_micros = 100000 : i64
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 00:18:59 UTC 2024 - 2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/tfrt_fallback/batch_function_fallback_benchmark_test.cc
#include "tfrt/tensor/tensor.h" // from @tf_runtime namespace tensorflow { namespace { // Creates a BEF file with a program that runs // tfrt_fallback_async.batch_function with a empty function forwarding inputs or // outputs. std::pair<tfrt::BefBuffer, tfrt::RCReference<tfrt::BEFFile>> CreateBefFile( tfrt::HostContext* host) { std::string file_path = GetDataDependencyFilepath(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Dec 08 08:08:48 UTC 2023 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.td
} def BatchFunctionOp : FallbackAsync_Op<"batch_function", [Pure, CoreRT_TypedAttributeTrait]> { let summary = "Fallback ExecuteOp specialized for tf.BatchFunction."; let description = [{ This kernel executes a variant tf.BatchFunction kernel that supports having the `f` attribute as a BEF function. Example: %res = tfrt_fallback_async.batch_function device("/CPU:0") @f(%input, %captured_input) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 18 15:01:21 UTC 2024 - 15.8K bytes - Viewed (0)