[all-commits] [llvm/llvm-project] f8b692: [mlir][python][f16] add ctype python binding suppo...

Aart Bik via All-commits all-commits at lists.llvm.org
Thu Jun 2 17:21:47 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f8b692dd31d986bc5a83437fceecf80d4e90f745
      https://github.com/llvm/llvm-project/commit/f8b692dd31d986bc5a83437fceecf80d4e90f745
  Author: Aart Bik <ajcbik at google.com>
  Date:   2022-06-02 (Thu, 02 Jun 2022)

  Changed paths:
    M mlir/python/mlir/runtime/np_to_memref.py
    M mlir/test/python/execution_engine.py

  Log Message:
  -----------
  [mlir][python][f16] add ctype python binding support for f16

Similar to complex128/complex64, float16 has no direct support
in the ctypes implementation. This fixes the issue by using a
custom F16 type to change the view in and out of MLIR code

Reviewed By: wrengr

Differential Revision: https://reviews.llvm.org/D126928




More information about the All-commits mailing list