google / google/visqol

float32 numpy arrays don't work with Python API

Open
#67 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
928
Forks
144
PR merge metrics
No merged PRs in 30d

Description

VisqolApi::Measure() when accessed through the python interface requires float64 ndarrays and will throw a type error on float32 ndarrays. Measure() is a native function that pybind11 translates. This may be a python casting/typing issue. The workaround is simple: cast to float64.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.