Skip to content

Commit 55b2654

Browse files
v0.0.67 get_additional_attributes
1 parent 48ae712 commit 55b2654

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "spotPython"
10-
version = "0.0.66"
10+
version = "0.0.67"
1111
authors = [
1212
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
1313
]

src/spotPython/utils/classes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import torch.nn as nn
2+
3+
4+
def get_additional_attributes(b):
5+
a = nn.Module()
6+
additional_attributes = set(vars(b)) - set(vars(a))
7+
print(f"Additional attributes: {additional_attributes}")
8+
return additional_attributes

0 commit comments

Comments
 (0)