Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_SetAttrFloatList (0.16 sec)

  1. tensorflow/c/c_api.h

    TF_CAPI_EXPORT extern void TF_SetAttrFloat(TF_OperationDescription* desc,
                                               const char* attr_name, float value);
    TF_CAPI_EXPORT extern void TF_SetAttrFloatList(TF_OperationDescription* desc,
                                                   const char* attr_name,
                                                   const float* values,
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_test.cc

    }
    
    TEST_F(CApiAttributesTest, FloatList) {
      const float list[] = {1.414, 2.718, 3.1415};
      const size_t list_size = TF_ARRAYSIZE(list);
    
      auto desc = init("list(float)");
      TF_SetAttrFloatList(desc, "v", list, list_size);
    
      auto oper = TF_FinishOperation(desc, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      float values[list_size];
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Fri Dec 27 12:18:10 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top