- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for batch_function (0.2 sec)
-
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_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]
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/batch_function_fallback_resource_variable_as_captured_tensor.mlir
// 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/mlrt/tf_to_mlrt.mlir
} // ----- // Test lowering BatchFunction op. func.func @batched_function(%x: tensor<?xi32>) -> tensor<?xi32> { return %x : tensor<?xi32> } // CHECK-LABEL: func @main func.func @main(%x: tensor<1xi32>) -> (tensor<1xi32>, tensor<1xi32>, tensor<1xi32>) { // CHECK: [[y_future:%.*]] = tf_mlrt.batch_function // CHECK-SAME: f = @batched_function // CHECK-SAME: \22batch_function\22
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 20:44:15 UTC 2024 - 24.7K 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) -
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/tests/tfrt_fallback/batch_function_fallback.mlir
!tfrt_fallback.tf_tensor, !tfrt_fallback.tf_tensor, !tfrt_fallback.tf_tensor, !tfrt_fallback.tf_tensor, !tfrt_fallback.tf_tensor, !tfrt_fallback.tf_tensor, !tfrt_fallback.tf_tensor) { %res:112 = tfrt_fallback_async.batch_function device("/device:CPU:0") @f (%arg1, %arg2, %arg3, %arg4, %arg5, %arg6, %arg7, %arg8, %arg9, %arg10,%arg11, %arg12, %arg13, %arg14,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Dec 08 08:08:48 UTC 2023 - 24.7K bytes - Viewed (0)