Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for floatCast (0.09 sec)

  1. internal/s3select/sql/funceval.go

    	if err != nil {
    		return nil, err
    	}
    
    	switch castType {
    	case castInt, castInteger:
    		i, err := intCast(v)
    		return FromInt(i), err
    
    	case castFloat:
    		f, err := floatCast(v)
    		return FromFloat(f), err
    
    	case castString:
    		s, err := stringCast(v)
    		return FromString(s), err
    
    	case castTimestamp:
    		t, err := timestampCast(v)
    		return FromTimestamp(t), err
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  2. 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