Skip to content

Commit a884678

Browse files
committed
[BUG] Add cast_type_inplace call in GenericGrid initialization to support gradient computation
1 parent a7fa2df commit a884678

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gempy_engine/core/data/generic_grid.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ class GenericGrid:
1111
name: str = "Generic Grid"
1212

1313
def __post_init__(self):
14-
pass
14+
cast_type_inplace(self, requires_grad=True) # TODO: This has to be grabbed from options
15+
1516

1617
def __len__(self):
1718
return self.values.shape[0]

0 commit comments

Comments
 (0)