Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TF_SetAttrValueProto (0.11 sec)

  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,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  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,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (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;
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_test.cc

        tensorflow::AttrValue attr;
        for (const string& v : list) {
          attr.mutable_list()->add_s(v);
        }
        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,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top