Skip to content

Commit

Permalink
set intx=int32
Browse files Browse the repository at this point in the history
  • Loading branch information
EdisonLeeeee committed Aug 7, 2020
1 parent 3ba050e commit df3844e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion graphgallery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
astensors)

from graphgallery.utils.data_utils import normalize_adj, normalize_x, Bunch, sample_mask
from graphgallery.config import set_epsilon, set_floatx, set_intx, floatx, intx
from graphgallery.config import set_epsilon, set_floatx, set_intx, epsilon, floatx, intx
from graphgallery.utils.tensor_utils import normalize_adj_tensor, normalize_edge_tensor
from graphgallery.utils.shape_utils import repeat
from graphgallery.utils.type_check import *
Expand Down
2 changes: 1 addition & 1 deletion graphgallery/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
epsilon = K.epsilon
set_epsilon = K.set_epsilon

_INTX = 'int64'
_INTX = 'int32'

def intx():
"""Returns the default integer type, as a string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def preprocess(self, adj, x):
with tf.device(self.device):
self.x_norm, self.adj_norm = astensors([x, adj])

def build(self, hiddens=[16], activations=['relu'], dropouts=[0.5],
def build(self, hiddens=[16], activations=['relu'], dropouts=[0.],
lr=0.01, l2_norms=[5e-4], p1=1.4, p2=0.7, use_bias=False,
epsilon=0.01):

Expand Down

0 comments on commit df3844e

Please sign in to comment.