Skip to content

Commit 6d7be5c

Browse files
committed
don't use _WeightsEntryBase
1 parent 9fc098f commit 6d7be5c

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

bioimageio/core/resource_io/nodes.py

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -139,38 +139,34 @@ def __call__(self, *args, **kwargs):
139139

140140

141141
@dataclass
142-
class _WeightsEntryBase(Node, model_raw_nodes._WeightsEntryBase):
142+
class KerasHdf5WeightsEntry(model_raw_nodes.KerasHdf5WeightsEntry):
143143
source: Path = missing
144144

145145

146146
@dataclass
147-
class KerasHdf5WeightsEntry(_WeightsEntryBase, model_raw_nodes.KerasHdf5WeightsEntry):
148-
pass
149-
150-
151-
@dataclass
152-
class OnnxWeightsEntry(_WeightsEntryBase, model_raw_nodes.OnnxWeightsEntry):
153-
pass
147+
class OnnxWeightsEntry(model_raw_nodes.OnnxWeightsEntry):
148+
source: Path = missing
154149

155150

156151
@dataclass
157-
class PytorchStateDictWeightsEntry(_WeightsEntryBase, model_raw_nodes.PytorchStateDictWeightsEntry):
152+
class PytorchStateDictWeightsEntry(model_raw_nodes.PytorchStateDictWeightsEntry):
153+
source: Path = missing
158154
architecture: Union[_Missing, ImportedSource] = missing
159155

160156

161157
@dataclass
162-
class PytorchScriptWeightsEntry(_WeightsEntryBase, model_raw_nodes.PytorchScriptWeightsEntry):
163-
pass
158+
class PytorchScriptWeightsEntry(model_raw_nodes.PytorchScriptWeightsEntry):
159+
source: Path = missing
164160

165161

166162
@dataclass
167-
class TensorflowJsWeightsEntry(_WeightsEntryBase, model_raw_nodes.TensorflowJsWeightsEntry):
168-
pass
163+
class TensorflowJsWeightsEntry(model_raw_nodes.TensorflowJsWeightsEntry):
164+
source: Path = missing
169165

170166

171167
@dataclass
172-
class TensorflowSavedModelBundleWeightsEntry(_WeightsEntryBase, model_raw_nodes.TensorflowSavedModelBundleWeightsEntry):
173-
pass
168+
class TensorflowSavedModelBundleWeightsEntry(model_raw_nodes.TensorflowSavedModelBundleWeightsEntry):
169+
source: Path = missing
174170

175171

176172
WeightsEntry = Union[

0 commit comments

Comments
 (0)