Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 58 for varhandle_op (0.19 sec)

  1. 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)
  2. 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)
  3. 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)
  4. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model_initialize_variables_in_session_init.mlir

      attributes {tf.entry_function = {control_outputs = "", inputs = "", outputs = "dense_2/Add:0"}, tf_saved_model.exported_names = ["serving_default"]} {
        // CHECK: "tf.VarHandleOp"
        %0 = "tf.VarHandleOp"() {_class = ["loc:@dense/kernel"], allowed_devices = [], container = "", device = "invalid", shared_name = "invalid_var"} : () -> tensor<!tf_type.resource<tensor<100x50xf32>>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 19 13:38:14 UTC 2022
    - 5.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/tests/ifrt/lower_to_ifrt_restore_variable.mlir

        %1 = "tf.VarHandleOp"() <{container = "", shared_name = "y"}> : () -> tensor<!tf_type.resource<tensor<3x1xf32>>>
        "tf.AssignVariableOp"(%1, %0) : (tensor<!tf_type.resource<tensor<3x1xf32>>>, tensor<3x1xf32>) -> ()
        return
      }
    }
    
    // -----
    // single variable: VarHandleOp is before RestoreV2
    
    // CHECK-LABEL:   func.func @varhandle_before_restore() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/legalize_tfg.mlir

        // CHECK: tf_executor.island wraps "tf.VarHandleOp"() <{container = "a", shared_name = "x"}> {_mlir_name = "x", _output_shapes = [#tf_type.shape<>], allowed_devices = [], device = "/device:CPU:0", dtype = i64, shape = #tf_type.shape<>} : () -> tensor<!tf_type.resource<tensor<i64>>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/legalize-tf-variables.mlir

        %handle_0 = "tf.VarHandleOp"() {container="c", shared_name="a"} : () -> tensor<!tf_type.resource<tensor<1x10xf32>>>
        %handle_1 = "tf.VarHandleOp"() {container="c", shared_name="b"} : () -> tensor<!tf_type.resource<tensor<1x10xi64>>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/localize_var_handles.cc

      } else if (auto next = llvm::dyn_cast<TF::IteratorGetNextOp>(op)) {
        resource = next.getIterator();
      }
    
      if (llvm::dyn_cast_or_null<TF::VarHandleOp>(resource.getDefiningOp())) {
        return;  // We're already directly after a VarHandleOp.
      }
    
      const TF::ResourceDataflowState* state =
          solver.lookupState<TF::ResourceDataflowState>(resource);
      if (!state) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/tests/mlrt/rewrite_ifrt_load_variable.mlir

    // Variable is used by both CPU and TPU
    //
    // CHECK-LABEL: func @serving_default(%arg0: tensor<1x3xf32>) -> tensor<1x1xf32>
    // CHECK-NEXT:    [[HANDLE:%.*]] = "tf.VarHandleOp"()
    // CHECK-NEXT:    [[ARRAYKEY:%.*]], [[FURTURE:%.*]] = "tf_mlrt.tf_ifrt_load_variable"([[HANDLE]])
    // CHECK-SAME:       <{used_by_host = true}> : (tensor<!tf_type.resource<tensor<3x1xf32>>>) -> (tensor<!tf_type.string>, !mlrt.future)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:35:32 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-function-resource-args.pbtxt

    # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-output-arrays=func_call -o - | FileCheck %s
    
    node {
      name: "x"
      op: "VarHandleOp"
      device: "/CPU:0"
      attr {
        key: "container"
        value {
          s: "a"
        }
      }
      attr {
        key: "dtype"
        value {
          type: DT_INT64
        }
      }
      attr {
        key: "shape"
        value {
          shape {
          }
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top