Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 108 for asSet (0.04 sec)

  1. tensorflow/c/experimental/saved_model/core/revived_types/asset.h

    namespace tensorflow {
    
    class Asset : public TensorHandleConvertible {
     public:
      static Status Create(ImmediateExecutionContext* ctx,
                           const std::string& saved_model_dir,
                           const std::string& asset_filename,
                           std::unique_ptr<Asset>* output);
    
      // Asset is movable, but not copyable.
      Asset(Asset&& other) = default;
      Asset& operator=(Asset&& other) = default;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 18 21:29:39 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/revived_types/asset.cc

    #include "tensorflow/core/platform/path.h"
    
    namespace tensorflow {
    
    Asset::Asset(ImmediateTensorHandlePtr handle)
        : TensorHandleConvertible(std::move(handle)) {}
    
    Status Asset::Create(ImmediateExecutionContext* ctx,
                         const std::string& saved_model_dir,
                         const std::string& asset_filename,
                         std::unique_ptr<Asset>* output) {
      std::string abs_path =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 09 20:11:48 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. tensorflow/cc/saved_model/testdata/generate_saved_models.py

    
    class AssetModule(module.Module):
    
      def __init__(self):
        self.asset = asset.Asset(
            test.test_src_dir_path("cc/saved_model/testdata/test_asset.txt"))
    
      @def_function.function(input_signature=[])
      def read_file(self):
        return io_ops.read_file(self.asset)
    
    
    class StaticHashTableModule(module.Module):
      """A module with an Asset, StaticHashTable, and a lookup function."""
    
      def __init__(self):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 18 18:06:18 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/freeze_saved_model_assets.cc

        for (int i = 0, e = func.getNumArguments(); i < e; ++i) {
          SmallVector<TF::InitializeTableFromTextFileV2Op, 4>
              init_table_from_text_file_ops_to_erase;
          auto asset = LookupBoundInputOfType<AssetOp>(func, i, symbol_table);
    
          if (!asset) continue;
    
          auto arg = func.getArgument(i);
          bool arg_is_deletable = true;
          for (auto user : arg.getUsers()) {
            if (auto read_op =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jan 30 01:12:09 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tf_savedmodel_passes.td

    }
    
    def AssetSinkingPass : Pass<"tf-saved-model-asset-sinking", "mlir::ModuleOp"> {
      let summary = "Sinks SavedModel asset filenames to constants";
    
      let description = [{
        This pass sinks arguments of SavedModel methods that are bounded to
        `tf_saved_model.asset` into constants in the methods. After the pass, unused
        asset ops are removed from the module.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 09 19:11:34 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/saved_model/core/revived_types/BUILD

            # Restricting visibility for now
            "//tensorflow/c/experimental/saved_model/core:__pkg__",
        ],
        licenses = ["notice"],
    )
    
    cc_library(
        name = "asset",
        srcs = [
            "asset.cc",
        ],
        hdrs = [
            "asset.h",
        ],
        deps = [
            ":tensorhandle_convertible",
            "//tensorflow/c:tensor_interface",
            "//tensorflow/c/eager:immediate_execution_context",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 11 05:09:48 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model_asset_sinking.mlir

    // RUN: tf-opt %s -split-input-file -tf-saved-model-asset-sinking='saved-model-dir=foo/bar' | FileCheck %s
    
    // CHECK-LABEL: module @asset
    module @asset attributes {tf_saved_model.semantics} {
      "tf_saved_model.session_initializer"() {initializers = [@init]} : () -> ()
    
      // CHECK-NOT: "tf_saved_model.asset"
      "tf_saved_model.asset"() {filename = "assets/test0.txt", sym_name = "asset0"} : () -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

          auto asset = LookupBoundInputOfType<AssetOp>(
              func, argument.getArgNumber(), symbol_table);
          if (asset == nullptr) {
            continue;
          }
    
          // Create a const op for the asset if it doesn't already exist.
          auto it = const_ops.find(asset.getSymName());
          if (it == const_ops.end()) {
            // Asset filenames are relative to the SavedModel directory.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/CompilationOutputsFixture.groovy

        void recompiledClasses(String... classNames) {
            assert changedFileNames == asSet(classNames)
        }
    
        void recompiledFqn(String... classNames) {
            assert getChangedFileNames(true) == asSet(classNames)
        }
    
        //asserts files deleted since last snapshot.
        void deletedFiles(String... fileNames) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. tensorflow/cc/saved_model/loader_util.cc

                            std::vector<AssetFileDef>* asset_file_defs) {
      // With SavedModel v2, we write asset file def into metagraph instead of
      // collection, so read from metagraph first.
      if (meta_graph_def.asset_file_def_size() > 0) {
        for (const auto& asset : meta_graph_def.asset_file_def()) {
          asset_file_defs->push_back(asset);
        }
        return absl::OkStatus();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 10 10:25:28 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top