Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for boolCast (0.06 sec)

  1. internal/s3select/sql/funceval.go

    	case castString:
    		s, err := stringCast(v)
    		return FromString(s), err
    
    	case castTimestamp:
    		t, err := timestampCast(v)
    		return FromTimestamp(t), err
    
    	case castBool:
    		b, err := boolCast(v)
    		return FromBool(b), err
    
    	case castDecimal, castNumeric:
    		fallthrough
    
    	default:
    		return nil, errUnimplementedCast
    	}
    }
    
    func intCast(v *Value) (int64, error) {
    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

      unsigned char value;
      TF_OperationGetAttrBool(oper, "v", &value, s_);
      EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      EXPECT_EQ(1, value);
    }
    
    TEST_F(CApiAttributesTest, BoolList) {
      const unsigned char list[] = {0, 1, 1, 0, 0, 1, 1};
      const size_t list_size = TF_ARRAYSIZE(list);
    
      auto desc = init("list(bool)");
      TF_SetAttrBoolList(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