Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ParentKey (0.17 sec)

  1. tensorflow/cc/experimental/libtf/object.cc

    // Implementation of objects.
    #include "tensorflow/cc/experimental/libtf/object.h"
    
    #include <type_traits>
    
    namespace tf {
    namespace libtf {
    
    const String& Object::ParentKey() {
      static const String* key = new String("__parent__");
      return *key;
    }
    
    }  // namespace libtf
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 10 22:48:48 UTC 2021
    - 961 bytes
    - Viewed (0)
  2. tensorflow/cc/experimental/libtf/tests/object_test.cc

      // TaggedValue func(f);
      Object parent;
      parent.Set(String("test3"), Integer(3));
      Object child;
      child.Set(String("test1"), Integer(1));
      child.Set(String("test2"), Integer(2));
      child.Set(Object::ParentKey(), parent);
      EXPECT_EQ(child.Get<Integer>(String("test1"))->get(), 1);
      EXPECT_EQ(child.Get<Integer>(String("test2"))->get(), 2);
      EXPECT_EQ(child.Get<Integer>(String("test3"))->get(), 3);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 28 21:37:07 UTC 2021
    - 5.7K bytes
    - Viewed (0)
Back to top