Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for while_node (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/drop_while_shape_invariant.mlir

    
    func.func @while_cond(%arg0: tensor<*xf32>) -> tensor<i1> {
      %0 = "tf.Const"() {value = dense<true> : tensor<i1>} : () -> tensor<i1>
      func.return %0 : tensor<i1>
    }
    
    func.func @while_body(%arg0: tensor<*xf32>) -> (tensor<*xf32>) {
      %0 = "tf.SomeOp"(%arg0) : (tensor<*xf32>) -> tensor<*xf32>
      func.return %0 : tensor<*xf32>
    }
    
    // Test that -tf-drop-while-shape-invariant-in-device-cluster pass does not drop
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/tests/saved_model/testdata/xla_launch.mlir

      %0 = "tf.Const"() {value = dense<9> : tensor<i32>} : () -> tensor<i32>
      %1 = "tf.Less"(%arg0, %0) {} : (tensor<i32>, tensor<i32>) -> tensor<i1>
      func.return %1 : tensor<i1>
    }
    
    func.func @while_body(%arg0: tensor<i32>) -> tensor<i32> {
      %1 = "tf.AddV2"(%arg0, %arg0) {} : (tensor<i32>, tensor<i32>) -> tensor<i32>
      func.return %1 : tensor<i32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 14 15:35:49 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

      AppendFunctionArguments(while_body, num_chains, chaining_data_type);
      AppendFunctionResults(while_body, num_chains, chaining_data_type);
    
      // Insert identity ops with control dep
      ChainResourceOps(while_body, chain_resource_to_ops_map,
                       resource_equivalence_classes, ops_connected_to_fetch,
                       num_old_outputs);
      // Modify all the while ops referencing the body function and the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/legalize-tf-while.mlir

    // CHECK:   yield
    // CHECK: ^bb0([[ARGS]]):
    // CHECK:   call @while_body
    // CHECK:   yield
    // CHECK: while_body
    // CHECK: while_cond
    
    // INLINE: tfl.while
    // INLINE: ^bb0([[ARGS:.*]]):
    // INLINE:   tf.Less
    // INLINE:   yield
    // INLINE: ^bb0([[ARGS]]):
    // INLINE:   %cst_2 = arith.constant
    // INLINE:   yield
    // INLINE-NOT: while_body
    // INLINE-NOT: while_cond
    
    // CANON-LABEL:   func @while_main
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. tensorflow/cc/experimental/libtf/runtime/runtime.cc

        // generated module.
        auto& child_node = nodes.at(child.node_id());
        auto child_name = child.local_name().c_str();
    
        if (child_node.kind_case() == tensorflow::SavedObject::kFunction) {
          Function tf_function;
          for (const std::string& fn_name :
               child_node.function().concrete_functions()) {
            // Setup input signature.
            //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 01 11:18:25 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/end-to-end-tpu-reshard-variables.mlir

          %control = tf_executor.island {
            %0 = "tf.While"(%arg0) <{body = @while_body, cond = @while_cond, is_stateless = false, shape_invariant}> : (tensor<*x!tf_type.resource>) -> tensor<!tf_type.resource<tensor<i32>>>
            tf_executor.yield
          }
          tf_executor.fetch %control : !tf_executor.control
        }
        return
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 13 21:23:47 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tf_device_passes.td

        ```mlir
        func @cluster_with_loop() -> () {
          %0 = "tf.VarHandleOp"() ...
          "tf_device.cluster"() ( {
             %1 = "tf.While"(%0) {body = @while_body, cond = @while_cond}
             tf_device.return
          })
          return
        }
        func @while_body(%arg0: tensor<*x!tf_type.resource<tensor<f32>>>) {
         %constant = "tf.Const"() ...
         "tf.AssignVariableOp"(%arg0, %constant)
         return %arg0
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 18:52:57 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/resource_op_lifting.mlir

        %1 = "tf.While"(%0) {
          body = @while_body, cond = @while_cond, device = "", is_stateless = false}
             : (tensor<*x!tf_type.resource<tensor<f32>>>) -> (tensor<*x!tf_type.resource<tensor<f32>>>)
        tf_device.return
      }) {cluster_attr = "cluster_attr"} : () -> ()
      func.return
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 74K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/mlprogram.mlir

          %1, %c0 = tf_executor.island wraps "tf.Const"() {value = dense<1> : tensor<i1>} : () -> tensor<i1>
          tf_executor.fetch %1 : tensor<i1>
        }
        return %0 : tensor<i1>
      }
    
      func.func private @while_body(%arg0: tensor<i32>, %arg1: tensor<i32>) -> (tensor<i32>, tensor<i32>) {
        tf_executor.graph {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 19:27:16 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/g3doc/space_to_depth.md

        input.
    
    #### Pseudo MLIR code before and after RewritePass
    
    ```mlir
    // Example: original program:
    //
    module {
       func @while_body {
         %input = "tf.IteratorGetNext"(...) {device = "/CPU:0"}:
                  -> tensor<2x224x224x3xf32>
         %device_launch = "tf_device.launch_func"(%input,...) {func = @_func,...)
         return ...
       }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Oct 24 02:51:43 UTC 2020
    - 8.3K bytes
    - Viewed (0)
Back to top