Skip to content

Commit ab87df3

Browse files
committed
change from keras_core to keras 3.0
1 parent eab9358 commit ab87df3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+284
-191
lines changed

docs/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
- pip>=20.1 # pip is needed as dependency
1313
- pandoc
1414
- pip:
15-
- keras-core
15+
- keras>=3.0.0
1616
- jinja2==3.0.3
1717
- numpy
1818
- tensorflow-cpu

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
keras-core
1+
keras>=3.0.0
22
sphinx==3.4.3
33
sphinx_rtd_theme
44
jinja2==3.0.0
@@ -8,7 +8,7 @@ scipy
88
matplotlib
99
pandas
1010
scikit-learn
11-
rdkit-pypi
11+
rdkit
1212
pyyaml
1313
pymatgen
1414
ase

kgcnn/backend/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import tree
2-
from keras_core import KerasTensor
3-
from keras_core.backend import backend
2+
from keras import KerasTensor
3+
from keras.backend import backend
44

55

66
def any_symbolic_tensors(args=None, kwargs=None):

kgcnn/initializers/initializers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import keras_core as ks
2-
from keras_core import ops
1+
import keras as ks
2+
from keras import ops
33

44

55
def _compute_fans(shape):

kgcnn/io/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import keras_core as ks
1+
import keras as ks
22
import numpy as np
33
import tensorflow as tf
44

kgcnn/layers/activ.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import numpy as np
2-
import keras_core as ks
2+
import keras as ks
33
# import keras_core.saving
44

55

kgcnn/layers/aggr.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import keras_core as ks
1+
import keras as ks
22
# import keras_core.saving
3-
from keras_core.layers import Layer
4-
from keras_core import ops
3+
from keras.layers import Layer
4+
from keras import ops
55
from kgcnn.ops.scatter import (
66
scatter_reduce_min, scatter_reduce_mean, scatter_reduce_max, scatter_reduce_sum, scatter_reduce_softmax)
77
from kgcnn import __indices_axis__ as global_axis_indices

kgcnn/layers/attention.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# import keras_core as ks
22
from kgcnn.layers.gather import GatherNodesIngoing, GatherNodesOutgoing
3-
from keras_core.layers import Dense, Concatenate, Activation, Average, Layer
3+
from keras.layers import Dense, Concatenate, Activation, Average, Layer
44
from kgcnn.layers.aggr import AggregateLocalEdgesAttention
5-
from keras_core import ops
5+
from keras import ops
66

77

88
class AttentionHeadGAT(Layer): # noqa

kgcnn/layers/casting.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import keras_core as ks
2-
from keras_core.layers import Layer
3-
from keras_core import ops
1+
import keras as ks
2+
from keras.layers import Layer
3+
from keras import ops
44
from kgcnn.ops.core import repeat_static_length, decompose_ragged_tensor
55
from kgcnn.ops.scatter import scatter_reduce_sum
66
from kgcnn import __indices_axis__ as global_axis_indices

kgcnn/layers/conv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from keras_core.layers import Layer, Dense, Activation, Add, Multiply
1+
from keras.layers import Layer, Dense, Activation, Add, Multiply
22
from kgcnn.layers.aggr import AggregateWeightedLocalEdges, AggregateLocalEdges
33
from kgcnn.layers.gather import GatherNodesOutgoing
4-
from keras_core import ops
4+
from keras import ops
55
from kgcnn.ops.activ import shifted_softplus
66

77

0 commit comments

Comments
 (0)