Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for restore_op_0 (0.28 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export_test.cc

                 }
               })pb",
          &graph_def));
    
      // Restore op's name should start with "restore_op" and the save op's name
      // should start with "tf_quant__save_op".
      const std::vector<std::string> control_ret_node_names = {
          "restore_op_0", "tf_quant__save_op_0"};
    
      TF_ASSERT_OK_AND_ASSIGN(const std::optional<SaverDef> saver_def,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:11:25 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/tests/merge_initializer_function_ops_to_main.mlir

    // CHECK: func.func @main(%[[ARG:.*]]: tensor<!tf_type.string> {tf_saved_model.index_path = ["__tf_file_prefix"]})
    // CHECK-SAME: {{{.*tf.entry_function = {inputs = "restore_op_0:0", outputs = ""}.*}}}
    // CHECK-NEXT: tf_executor.graph
    
    // Checks that the ops from @init_func_restore_op are cloned.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:49:35 UTC 2023
    - 29.6K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/core/ops/restore_ops.cc

      TF_RETURN_IF_ERROR(restore_op->AddInput(prefix_handle.get()));
      TF_RETURN_IF_ERROR(restore_op->AddInput(names_handle.get()));
      TF_RETURN_IF_ERROR(restore_op->AddInput(shapes_and_slices_handle.get()));
    
      AbstractTensorHandle* restored_handle = nullptr;
      int num_retvals = 1;
      TF_RETURN_IF_ERROR(restore_op->Execute(
          absl::MakeSpan(&restored_handle, num_retvals), &num_retvals));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/saved_model/core/ops/restore_ops.h

    A. Unique TensorFlower <******@****.***> 1661895558 -0700
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 21:44:45 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/core/ops/BUILD

            "//tensorflow/c/experimental/saved_model/core:__subpackages__",
        ],
        licenses = ["notice"],
    )
    
    cc_library(
        name = "restore_ops",
        srcs = [
            "restore_ops.cc",
        ],
        hdrs = [
            "restore_ops.h",
        ],
        deps = [
            "//tensorflow/c:tensor_interface",
            "//tensorflow/c/eager:abstract_tensor_handle",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 27 18:00:18 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/tests/remove_var_init_by_const.mlir

      // All three ops should have been removed.
      // CHECK: @init_func_restore_op
      // CHECK-SAME: tf_saved_model.initializer_type = "restore_op"
      // CHECK-NEXT: return
    }
    
    // -----
    
    // The `tf.AssignVariableOp(tf.VarHandleOp, tf.Const)` pattern is not removed
    // from the initializer function that is not "restore_op" type.
    
    // CHECK-LABEL: module
    module attributes {tf_saved_model.semantics} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/tests/insert_save_op.mlir

      func.func @init_func_restore_op() -> () attributes {
          tf_saved_model.exported_names = ["tf_saved_model.session_initializer_restore_op"],
          tf_saved_model.initializer_type = "restore_op"} {
        %cst_0 = "tf.Const"() {value = dense<1.000000e+00> : tensor<2xf32>} : () -> tensor<2xf32>
        %var_0 = "tf.VarHandleOp"() {shared_name = "var_0"} : () -> tensor<!tf_type.resource<tensor<2xf32>>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model_remove_vars_in_session_initializer.mlir

      // expected-error@+1 {{expects exactly one block in the MLIR function}}
      func.func @init() attributes {tf_saved_model.exported_names = ["__tf_saved_model_session_initializer"], tf_saved_model.initializer_type = "restore_op"} {
        cf.br ^bb1
        ^bb1:
        func.return
      }
    }
    
    // -----
    
    module attributes {tf_saved_model.semantics} {
      // Test case: No variables
      // CHECK: func @init()
      // CHECK: tf.Const
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 00:22:36 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_restore_op.cc

      auto restore_op = builder.create<TF::RestoreV2Op>(
          session_init_func.getLoc(),
          /*tensors=*/tensor_types,
          /*prefix=*/filename_arg, tensor_names_const, shape_and_slices_const);
    
      for (auto [idx, restore_result] : llvm::enumerate(restore_op.getResults())) {
        builder.create<TF::AssignVariableOp>(
            restore_op.getLoc(), target_var_handle_ops[idx], restore_result);
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 12 06:02:20 UTC 2023
    - 9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model_initialize_variables_in_session_init.mlir

      }
    
      func.func @Init() attributes {tf_saved_model.exported_names = ["Init"], tf_saved_model.initializer_type = "restore_op"} {
        func.return
      }
    
      // CHECK-LABEL: func @Init
      // CHECK-SAME: tf_saved_model.exported_names = ["Init"]
      // CHECK-SAME: tf_saved_model.initializer_type = "restore_op"
      // CHECK: %[[VAR:.*]] = "tf.VarHandleOp"()
      // CHECK-SAME: "var1"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 19 13:38:14 UTC 2022
    - 5.7K bytes
    - Viewed (0)
Back to top