Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TFE_OpSetAttrValueProto (0.35 sec)

  1. tensorflow/c/eager/c_api_experimental.h

    // 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,
                                                       const void* proto,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api.cc

                          tensorflow::unwrap(value)),
                      static_cast<size_t>(num_values)});
      if (!s.ok()) {
        LOG(WARNING) << "Unable to set attribute: " << attr_name;
      }
    }
    
    void TFE_OpSetAttrValueProto(const TFE_Op* op, const char* attr_name,
                                 const void* proto, size_t proto_len,
                                 TF_Status* status) {
      tensorflow::AttrValue attr_value;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_test.cc

      TFE_Op* var_op_2 = TFE_NewOp(ctx, "VarHandleOp", status);
    
      string serialized_dtype;
      ASSERT_TRUE(name_and_attrs.attr().find("dtype")->second.SerializeToString(
          &serialized_dtype));
      TFE_OpSetAttrValueProto(
          var_op_2, "dtype",
          reinterpret_cast<const void*>(serialized_dtype.c_str()),
          serialized_dtype.length(), status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
Back to top