Code Monkey home page Code Monkey logo

Comments (2)

kdockser avatar kdockser commented on August 21, 2024

Thanks for the question, Nicolas.

Is there a particular use for round-to-odd conversion targeting BF16?

As I understand it, round to odd is used for an intermediate conversion, when the ultimate goal is to round to an even smaller format. Since we don't have a smaller format, it doesn't seem like we need a round-to-odd flavor when converting to BF16.

This is further clarified by the following non-normative text from the RVV spec:

A full set of floating-point narrowing conversions is not supported as single instructions. Conversions can be implemented in a sequence of halving steps. Results are equivalently rounded and the same exception flags are raised if all but the last halving step use round-towards-odd (vfncvt.rod.f.f.w). Only the final step should use the desired rounding mode.

from riscv-bfloat16.

nibrunieAtSi5 avatar nibrunieAtSi5 commented on August 21, 2024

Is there a particular use for round-to-odd conversion targeting BF16?

I did not have a particular example in mind and you explanation makes me think there might not be one (I cannot think of a use-case FP32 -> BF16 -> FP8 where someone would want to avoid double-rounding issue through intermediary use of round-to-odd and as you said FP8 is not even a legal format yet).

I am going to ask around to user more familiar with this matter.

from riscv-bfloat16.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.