Skip to content

Running flaml[tune] using "-O" flag for python interpreter (optimization - disables assertions) crashes #981

Open

Description

this is the stack trace:

analysis = tune.run(
  File "/home/ec2-user/pyvenv/lib64/python3.9/site-packages/flaml/tune/tune.py", line 536, in run
    search_alg = SearchAlgorithm(
  File "/home/ec2-user/pyvenv/lib64/python3.9/site-packages/flaml/tune/searcher/blendsearch.py", line 248, in __init__
    points_to_evaluate=self._evaluated_points,
AttributeError: 'BlendSearch' object has no attribute '_evaluated_points'

Activity

  1. sonichi commented on Apr 7, 2023

    @sonichi
    Contributor

    It's easy to fix by modifying this line:

    assert evaluated_rewards

    Please feel free to create a PR.

  2. luckyklyist commented on Apr 26, 2023

    @luckyklyist
    Contributor

    is anyone working on this ?if none then can assign this issue to me Chi Wang (@sonichi)

  3. sonichi commented on Apr 26, 2023

    @sonichi
    Contributor

    is anyone working on this ?if none then can assign this issue to me Chi Wang (@sonichi)

    Sure. Assigned to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions