Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for batch_function (0.78 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top