facebookresearch / nevergrad

A Python toolbox for performing gradient-free optimization
https://facebookresearch.github.io/nevergrad/
MIT License
3.92k stars 352 forks source link

Sometimes a nparray has no len #1446

Closed teytaud closed 2 years ago

teytaud commented 2 years ago

Types of changes

Motivation and Context / Related issue

If the loss is a scalar ndarray our code was crashing (just below, because it has no len).

How Has This Been Tested (if it applies)

Checklist