Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AppendToListAttr (0.32 sec)

  1. tensorflow/compiler/jit/encapsulate_util.cc

      auto attr = n.attrs().Find(attr_name);
      if (!attr) {
        return std::nullopt;
      } else {
        return attr->s();
      }
    }
    
    // Adds a value to the node's list attribute.
    template <typename T>
    Status AppendToListAttr(Node* n, const string& attr_name, const string& value) {
      std::vector<T> attr_value;
      Status s = GetNodeAttr(n->attrs(), attr_name, &attr_value);
      if (!s.ok() && s.code() != error::NOT_FOUND) {
        return s;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top