Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for TF_SetAttrValueProto (0.12 seconds)

  1. tensorflow/c/eager/c_api_experimental.h

                                                    TF_Status* status);
    
    // Set an op's attribute from a serialized AttrValue protocol buffer.
    //
    // Analogous to TF_SetAttrValueProto for building graph operations.
    TF_CAPI_EXPORT extern void TFE_OpSetAttrValueProto(const TFE_Op* op,
                                                       const char* attr_name,
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Click Count (1)
  2. tensorflow/c/c_api.h

    // `proto` should point to a sequence of bytes of length `proto_len`
    // representing a binary serialization of an AttrValue protocol
    // buffer.
    TF_CAPI_EXPORT extern void TF_SetAttrValueProto(TF_OperationDescription* desc,
                                                    const char* attr_name,
                                                    const void* proto,
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Click Count (0)
  3. tensorflow/c/c_api.cc

        Tensor v;
        status->status = TF_TensorToTensor(values[i], &v);
        t.emplace_back(v);
      }
    
      if (status->status.ok()) desc->node_builder.Attr(attr_name, t);
    }
    
    void TF_SetAttrValueProto(TF_OperationDescription* desc, const char* attr_name,
                              const void* proto, size_t proto_len,
                              TF_Status* status) {
      tensorflow::AttrValue attr_value;
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 04 05:55:32 GMT 2025
    - 102.4K bytes
    - Click Count (0)
  4. tensorflow/c/c_api_test.cc

        tensorflow::AttrValue attr;
        for (const std::string& v : list) {
          attr.mutable_list()->add_s(v);
        }
        std::string bytes;
        attr.SerializeToString(&bytes);
        TF_SetAttrValueProto(desc, tensorflow::kColocationAttrName, bytes.data(),
                             bytes.size(), s_);
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      }
    
      void VerifyCollocation(TF_Operation* op,
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Jan 07 04:56:09 GMT 2026
    - 97.3K bytes
    - Click Count (0)
Back to Top