Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 142 for var_handle_op (0.31 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model_remove_vars_in_session_initializer.mlir

      // CHECK: func @init()
      // CHECK-NOT: tf.VarHandleOp
      // CHECK-NOT: tf.Const
      // CHECK-NOT: tf.AssignAddVariableOp
      // CHECK: return
      "tf_saved_model.session_initializer"() { initializers = [@init] } : () -> ()
      func.func @init() attributes {tf_saved_model.exported_names = ["__tf_saved_model_session_initializer"], tf_saved_model.initializer_type = "restore_op"} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 00:22:36 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/decompose_resource_ops.mlir

        // CHECK-DAG: [[VAR_HANDLE:%.*]] = "tf.VarHandleOp"
        // CHECK-DAG: [[MG_HANDLE:%.*]] = "tf.VarHandleOp"
        // CHECK-DAG: [[MS_HANDLE:%.*]] = "tf.VarHandleOp"
        // CHECK-DAG: [[MOM_HANDLE:%.*]] = "tf.VarHandleOp"
        %0 = "tf.VarHandleOp"() {container = "c", shared_name = "v"} : () -> tensor<*x!tf_type.resource<tensor<f32>>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/tests/remove_var_init_by_const.mlir

        %var_0 = "tf.VarHandleOp"() {shared_name = "var_0"} : () -> tensor<!tf_type.resource<tensor<2xf32>>>
        "tf.AssignVariableOp"(%var_0, %cst_0) : (tensor<!tf_type.resource<tensor<2xf32>>>, tensor<2xf32>) -> ()
        return
      }
      // Nothing has been removed.
      // CHECK: @init_func_init_op
      // CHECK-NEXT: "tf.Const"
      // CHECK-NEXT: "tf.VarHandleOp"
      // CHECK-NEXT: "tf.AssignVariableOp"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model_asset_sinking.mlir

        // CHECK: %[[VAR0:.*]] = "tf.VarHandleOp"()
        %0 = "tf.VarHandleOp"() {container = "", shared_name = "var0"} : () -> tensor<!tf_type.resource<tensor<!tf_type.string>>>
    
        // CHECK: "tf.AssignVariableOp"(%[[VAR0]], %[[ASSET0]])
        "tf.AssignVariableOp"(%0, %arg0) : (tensor<!tf_type.resource<tensor<!tf_type.string>>>, tensor<!tf_type.string>) -> ()
    
        // CHECK: %[[VAR1:.*]] = "tf.VarHandleOp"()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model_lift_variables.mlir

        %0 = "tf.VarHandleOp"() {_class = ["loc:@dense/kernel"], allowed_devices = [], container = "", device = "", shared_name = "dense/kernel"} : () -> tensor<!tf_type.resource<tensor<100x50xf32>>>
        %1 = "tf.ReadVariableOp"(%0) {device = ""} : (tensor<!tf_type.resource<tensor<100x50xf32>>>) -> tensor<100x50xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 05:47:26 UTC 2022
    - 6.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/tests/ifrt/sink_variable_as_named_array.mlir

    // CHECK-NOT:  IfrtLoadVariable
    // CHECK:      "tf.VarHandleOp"
    // CHECK-NEXT: "tf.AssignVariableOp"
    // CHECK-NEXT: "tf.ReadVariableOp"
    // CHECK-NEXT: "tf.StatefulPartitionedCall"
    // CHECK-NEXT:  return 
    //
    module {
      func.func @serving_default() -> tensor<*xi32> {
        %cst = "tf.Const"() <{value = dense<"some_test.txt"> : tensor<!tf_type.string>}> : () -> tensor<!tf_type.string>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 15:33:17 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/resource_analyzer.mlir

    // Test that VarHandleOp is not marked as "potentially written" if it is not
    // assigned inside the function called by "tf.BatchFunction".
    
    module {
    // CHECK-LABEL: @serving_default
      func.func @serving_default() -> (tensor<*xi32>) {
        // expected-remark@below {{device: "", container: "", shared_name: "var_0", is_potentially_written: false}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 14 15:35:49 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/lower_variable_ops_to_ml_program.mlir

        %0 = "tf.VarHandleOp"() {container = "", shared_name = "v"} : () -> tensor<!tf_type.resource<tensor<3xf32>>>
        %1 = "tf.ReadVariableOp"(%0) : (tensor<!tf_type.resource<tensor<3xf32>>>) -> tensor<3xf32>
        %2 = "tf.VarHandleOp"() {container = "", shared_name = "v"} : () -> tensor<!tf_type.resource<tensor<?xf32>>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 19 19:00:41 UTC 2022
    - 6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/remove_var_init_by_const.cc

      }
    
      StringRef getDescription() const final {
        return "Removes `tf.AssignVariableOp(tf.VarHandleOp, tf.Const)` patterns "
               "from the initializer function of type 'restore_op'.";
      }
    
      void runOnOperation() override;
    };
    
    // Finds and removes the `tf.AssignVariableOp(tf.VarHandleOp, tf.Const)`
    // pattern. `tf.VarHandleOp` and `tf.Const` are removed unless they are used by
    // other ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 03 12:04:03 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/promote_resources_to_args.mlir

      // CHECK-NOT: "tf.VarHandleOp"
      // CHECK-NOT: "tf.ReadVariableOp"
      // CHECK: %[[CONST:.*]] = "tf.Const"()
      // CHECK: %[[ADD:[0-9]*]] = "tf.AddV2"(%arg1, %[[CONST]])
      // CHECK: %[[PACK:[0-9]*]] = "tf.Pack"(%[[CONST]], %[[ADD]])
      // CHECK: return %[[PACK]]
      %0 = "tf.Const"() {value = dense<4.200000e+01> : tensor<f32>} : () -> tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 18.2K bytes
    - Viewed (0)
Back to top