Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for OutputHash (0.17 sec)

  1. tensorflow/cc/framework/gradients.cc

    #include "tensorflow/core/graph/while_context.h"
    #include "tensorflow/core/lib/gtl/map_util.h"
    #include "tensorflow/core/platform/macros.h"
    
    namespace tensorflow {
    namespace {
    
    struct OutputHash {
      uint64 operator()(const Output& x) const { return x.hash(); }
    };
    
    struct OutputEq {
      bool operator()(const Output& x, const Output& y) const {
        return (x.node() == y.node()) && (x.index() == y.index());
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 22K bytes
    - Viewed (0)
  2. tensorflow/cc/client/client_session.h

      /// to feed them with. See `Input::Initializer` for details on what can be
      /// used as feed values.
      typedef std::unordered_map<Output, Input::Initializer, OutputHash> FeedType;
    
      /// Create a new session to evaluate the graph contained in `scope` by
      /// connecting to the TensorFlow runtime specified by `target`.
      ClientSession(const Scope& scope, const string& target);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 20 08:11:46 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/ops.h

      uint64 hash() const { return op_.hash(index_); }
    
     private:
      Operation op_ = Operation(nullptr);
      int32 index_ = 0;
    };
    
    /// Hash class that can be used for e.g. storing Outputs in an unordered_map
    struct OutputHash {
      std::size_t operator()(const Output& output) const {
        return Hash64Combine(std::hash<Node*>()(output.node()),
                             std::hash<int32>()(output.index()));
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top