Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RestoredResource (0.32 sec)

  1. tensorflow/c/experimental/saved_model/core/revived_types/restored_resource.cc

          device_(device),
          create_resource_(create_resource),
          initialize_(initialize),
          destroy_resource_(destroy_resource) {}
    
    Status RestoredResource::Initialize() const {
      return ExecuteNoArgDummyReturnFunction(initialize_);
    }
    
    RestoredResource::~RestoredResource() {
      // Note(bmzhao): SavedModels saved before
      // https://github.com/tensorflow/tensorflow/commit/3c806101f57768e479f8646e7518bbdff1632ca3
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/tf_saved_model_api.cc

          }));
    
      return Status();
    }
    
    Status InitializeAllResources(const RevivedObjects& revived) {
      for (const auto& node_and_resource : revived.restored_resources) {
        const RestoredResource& resource = node_and_resource.second;
        TF_RETURN_IF_ERROR(resource.Initialize());
      }
      return Status();
    }
    
    }  // namespace
    
    Status TFSavedModelAPI::GetFunction(const std::string& function_path,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 09:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/core/revived_types/partially_revived_objects.cc

              absl::StrCat("Resource at node id ", node_id,
                           " does not have a resource handle."));
        }
    
        revived->restored_resources.emplace(
            node_id, RestoredResource(
                         /*device=*/resource_revival_state.device,
                         /*create_resource=*/create_resource,
                         /*initialize=*/initialize,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 09 20:11:48 UTC 2023
    - 23.7K bytes
    - Viewed (0)
Back to top