Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_SetAttrTypeList (0.12 sec)

  1. tensorflow/c/c_api.h

    TF_CAPI_EXPORT extern void TF_SetAttrType(TF_OperationDescription* desc,
                                              const char* attr_name,
                                              TF_DataType value);
    TF_CAPI_EXPORT extern void TF_SetAttrTypeList(TF_OperationDescription* desc,
                                                  const char* attr_name,
                                                  const TF_DataType* values,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

    }
    
    void TF_SetAttrType(TF_OperationDescription* desc, const char* attr_name,
                        TF_DataType value) {
      desc->node_builder.Attr(attr_name, static_cast<DataType>(value));
    }
    
    void TF_SetAttrTypeList(TF_OperationDescription* desc, const char* attr_name,
                            const TF_DataType* values, int num_values) {
      desc->node_builder.Attr(
          attr_name, ArraySlice<const DataType>(
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_test.cc

    TEST_F(CApiAttributesTest, TypeList) {
      const TF_DataType list[] = {TF_FLOAT, TF_DOUBLE, TF_HALF, TF_COMPLEX128};
      const size_t list_size = TF_ARRAYSIZE(list);
    
      auto desc = init("list(type)");
      TF_SetAttrTypeList(desc, "v", list, list_size);
    
      auto oper = TF_FinishOperation(desc, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      TF_DataType values[list_size];
    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