Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for objects_by_id_ (0.12 sec)

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

      void Insert(std::unique_ptr<T> object, int node_id) {
        objects_by_id_[node_id] = object.get();
        Insert(std::move(object));
      }
    
      // Find an object by the object graph node id.
      // Returns nullptr if there is no such object.
      T* Find(int node_id) {
        auto it = objects_by_id_.find(node_id);
        return it == objects_by_id_.end() ? nullptr : it->second;
      }
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 05 23:10:04 UTC 2020
    - 4K bytes
    - Viewed (0)
Back to top