Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for floatCast (0.07 sec)

  1. tensorflow/c/c_api_test.cc

      float value;
      TF_OperationGetAttrFloat(oper, "v", &value, s_);
      EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      EXPECT_FLOAT_EQ(2.718, value);
    }
    
    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);
    
    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