Skip to content

Commit

Permalink
Include solver options for optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
fivegrant authored Mar 21, 2024
1 parent 49dc469 commit 06341eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service/models/operations/optimize.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import ClassVar, Dict, List, Optional
from typing import Any, ClassVar, Dict, List, Optional

import numpy as np
import torch
Expand Down Expand Up @@ -71,6 +71,7 @@ class OptimizeExtra(BaseModel):
is_minimized: bool = True
alpha: float = 0.95
solver_method: str = "dopri5"
solver_options: Dict[str, Any] = {}


class Optimize(OperationRequest):
Expand Down

0 comments on commit 06341eb

Please sign in to comment.