Skip to content

Commit

Permalink
[FIX] Allow abritrary types in Model as Layers
Browse files Browse the repository at this point in the history
  • Loading branch information
wbenbihi committed Aug 23, 2022
1 parent 84cc940 commit 8040817
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hourglass_tensorflow/types/config/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class HTFModelAsLayers(BaseModel):
outputs: keras.layers.Layer
model: keras.models.Model

class Config:
arbitrary_types_allowed = True


class HTFModelParams(HTFConfigField):
name: str = "HourglassNetwork"
Expand Down

0 comments on commit 8040817

Please sign in to comment.