Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for save_variables (0.16 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.cc

    limitations under the License.
    ==============================================================================*/
    #include "tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.h"
    
    #include <string>
    #include <utility>
    #include <vector>
    
    #include "absl/status/status.h"
    #include "absl/status/statusor.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:36:55 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.h

    Dan Suh <******@****.***> 1671674377 -0800
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Dec 22 02:23:23 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/cc/BUILD

            "//tensorflow/compiler/mlir/quantization:__subpackages__",
        ],
        licenses = ["notice"],
    )
    
    cc_library(
        name = "save_variables",
        srcs = ["save_variables.cc"],
        hdrs = ["save_variables.h"],
        compatible_with = get_compatible_with_portable(),
        deps = [
            "//tensorflow/compiler/mlir/tensorflow",
            "//tensorflow/core:framework",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/unfreeze_constants.cc

    #include "mlir/Pass/PassManager.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/quantization/tensorflow/cc/run_passes.h"
    #include "tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.h"
    #include "tensorflow/compiler/mlir/quantization/tensorflow/passes/passes.h"
    #include "tensorflow/core/platform/env.h"
    #include "tsl/platform/errors.h"
    #include "tsl/platform/status.h"
    #include "tsl/platform/statusor.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 11:07:03 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables_test.cc

    limitations under the License.
    ==============================================================================*/
    #include "tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.h"
    
    #include <string>
    #include <vector>
    
    #include "absl/cleanup/cleanup.h"
    #include "absl/status/status.h"
    #include "absl/status/statusor.h"
    #include "absl/strings/str_format.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/saved_model/core/saved_variable_loading_test.cc

      TensorShape shape(std::get<1>(test_params));
    
      SavedVariable saved_variable;
      saved_variable.set_dtype(dtype);
      saved_variable.set_device("/job:localhost/replica:0/task:0/device:CPU:99"),
          shape.AsProto(saved_variable.mutable_shape());
    
      std::unique_ptr<Variable> var;
      ASSERT_NE(absl::OkStatus(),
                internal::LoadSavedVariable(context(), saved_variable, &var));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 09:34:33 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/saved_model/core/saved_model_utils.h

    // Creates a tensorflow::Variable from a SavedVariable. This is similar to the
    // logic in:
    // https://github.com/tensorflow/tensorflow/blob/516608035f85cec8b126712b0ff8407220206b22/tensorflow/python/saved_model/load.py#L407
    // Note that the caller **must assign a value** to the loaded variable.
    Status LoadSavedVariable(ImmediateExecutionContext* ctx,
                             const SavedVariable& variable,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 13 04:18:52 UTC 2022
    - 5.7K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/saved_model/core/saved_model_utils.cc

    // https://github.com/tensorflow/tensorflow/blob/516608035f85cec8b126712b0ff8407220206b22/tensorflow/python/saved_model/load.py#L407
    Status LoadSavedVariable(ImmediateExecutionContext* ctx,
                             const SavedVariable& variable,
                             std::unique_ptr<Variable>* output) {
      const std::string& name = variable.name();
      tensorflow::TensorShape shape(variable.shape());
      tensorflow::DataType dtype = variable.dtype();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 12 19:17:46 UTC 2023
    - 24K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

            func.setResultAttr(index_path.index(), kTfSavedModelIndexPathAttr,
                               index_path.value());
          }
        } else if (object.kind_case() == SavedObject::kVariable) {
          const SavedVariable& variable = object.variable();
          // Find the trackable in the side data structure.
          auto variable_trackable_it = restored_objects.find(node_id);
    
          TF_ASSIGN_OR_RETURN(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
Back to top