Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for BatchFunction (0.25 sec)

  1. tensorflow/compiler/mlir/tfrt/tests/reconfig_batch_op.mlir

      %2 = "tf.Identity"(%arg0) : (tensor<1x3xf32>) -> tensor<1x3xf32>
      func.return %2 : tensor<1x3xf32>
    }
    
    // CHECK-LABEL: func @main
    func.func @main(%arg0: tensor<1x3xf32>) -> tensor<*xf32> {
      // CHECK:  "tf.BatchFunction"
      // CHECK-SAME: allowed_batch_sizes = [6]
      // CHECK-SAME: batch_timeout_micros = 100000 : i64
      // CHECK-SAME: batching_queue = ""
      // CHECK-SAME: container = ""
      // CHECK-SAME: enable_large_batch_splitting = false
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 17:38:34 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/tests/batch_function_lowering.mlir

      func.return %2 : tensor<1x3xf32>
    }
    
    // CHECK-LABEL: func @main
    func.func @main(%arg0: tensor<1x3xf32>) -> tensor<*xf32> attributes {tf.entry_function = {control_outputs = "", inputs = "input:0", outputs = "batch/BatchFunction:0"}} {
      %0 = "tf.VarHandleOp"() {device = "/device:CPU:0", container = "", shared_name = "variable"} : () -> tensor<!tf_type.resource<tensor<1x3xf32>>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/tests/hoist_invariant_ops.mlir

      // CHECK:  "tf._TfrtGetResource"()
      %cst = "tf.Const"() <{value = dense<1> : tensor<1xi32>}> {device = "/CPU:0"} : () -> tensor<1xi32>
      // CHECK:  "tf.BatchFunction"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 01 23:54:14 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/translate/upgrade_graph.cc

    namespace {
    
    // Returns the ops that should use node name if shared_name is empty.
    const llvm::StringSet<>& GetOpsUsingNodeName() {
      static auto* const ops =
          new llvm::StringSet<>({"VariableV2", "Variable", "BatchFunction"});
      return *ops;
    }
    
    // Returns the set of ops that we want to generate shared_names for them if
    // empty.
    const llvm::StringSet<>& GetSharedNameGenerationCompatibleOps() {
      return GetOpsUsingNodeName();
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 14:33:47 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.td

      let assemblyFormat = "$input attr-dict";
    }
    
    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)  {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. 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)
  7. tensorflow/compiler/mlir/tfrt/tests/mlrt/tf_to_mlrt.mlir

      %v = "tf.AddV2"(%y, %z) {__op_key = 4: i32}: (tensor<i32>, tensor<i32>) -> tensor<i32>
      return %w, %u, %v : tensor<i32>, tensor<i32>, tensor<i32>
    }
    
    // -----
    
    // Test lowering BatchFunction op.
    
    func.func @batched_function(%x: tensor<?xi32>) -> tensor<?xi32> {
      return %x : tensor<?xi32>
    }
    
    // CHECK-LABEL: func @main
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

        DefaultValuedOptionalAttr<StrAttr, "\"\"">:$metadata
      );
    
      let results = (outs
        TF_VariantTensor:$handle
      );
    }
    
    def TF_BatchFunctionOp : TF_Op<"BatchFunction", [AttrSizedOperandSegments, DeclareOpInterfaceMethods<SymbolUserOpInterface>, Pure]> {
      let summary = [{
    Batches all the inputs tensors to the computation done by the function.
      }];
    
      let description = [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
Back to top