Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-7860

[C++] Support cast to/from halffloat

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 0.17.0
    • C++
    • None

    Description

      In trying to do ARROW-7753 I realized I couldn't make a halffloat. I tried creating a float64 (as R does naturally) and casting to float16, but it's not implemented. Looking at compute/kernels/cast.cc, and the associated source in compute/kernels/generated/codegen.py, FLOATING_TYPES = ['Float', 'Double']. Maybe halffloat just needs to be added there?

      Aside: searching through the code, it seems that this limitation of float types to float32 and float64 is the norm.

      Attachments

        Activity

          People

            Unassigned Unassigned
            npr Neal Richardson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: