Api -> Tosa operator mapping

I’m looking to learn how each high level ML api from TF, Pytorch or Onnx is broken down using TOSA operators.

If such a mapping is public, could someone point me to mapping between high level api to TOSA primitives?

Secondly, I see TOSA operator list growing with releases. I’m curious what factored into extending primitive list?

Hi Hemant,

Welcome! The best place to look for breakdowns from the ML frameworks is in the MLIR compiler code which performs that task. You can find them in these locations:

We try to keep the operator list stable, but you are right that there has been some growth. Growth usually comes as new network topologies come up and we find that TOSA is missing a building block. An example are SIN/COS, which we added to allow rotary position embeddings. We are aiming to release a 1.0 version soon, at which point we will guarantee backward compatibility, such that any 1.x TOSA release can continue to handle TOSA 1.0 networks.

Thanks,
Eric