Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dselect moe and fix tf version bug #464

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions deepctr/layers/activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"""

import tensorflow as tf
from tensorflow.python.keras.initializers import Zeros
from tensorflow.python.keras.layers import Layer
from tensorflow.keras.initializers import Zeros
from tensorflow.keras.layers import Layer

try:
unicode
Expand Down
8 changes: 4 additions & 4 deletions deepctr/layers/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"""

import tensorflow as tf
from tensorflow.python.keras import backend as K
from tensorflow.python.keras.initializers import Zeros, glorot_normal
from tensorflow.python.keras.layers import Layer
from tensorflow.python.keras.regularizers import l2
from tensorflow.keras import backend as K
from tensorflow.keras.initializers import Zeros, glorot_normal
from tensorflow.keras.layers import Layer
from tensorflow.keras.regularizers import l2

from .activation import activation_layer

Expand Down
12 changes: 6 additions & 6 deletions deepctr/layers/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
import itertools

import tensorflow as tf
from tensorflow.python.keras import backend as K
from tensorflow.python.keras.backend import batch_dot
from tensorflow.python.keras.initializers import (Zeros, glorot_normal,
from tensorflow.keras import backend as K
from tensorflow.keras.backend import batch_dot
from tensorflow.keras.initializers import (Zeros, glorot_normal,
glorot_uniform, TruncatedNormal)
from tensorflow.python.keras.layers import Layer
from tensorflow.python.keras.regularizers import l2
from tensorflow.python.layers import utils
from tensorflow.keras.layers import Layer
from tensorflow.keras.regularizers import l2
from tensorflow.layers import utils

from .activation import activation_layer
from .utils import concat_func, reduce_sum, softmax, reduce_mean
Expand Down
6 changes: 3 additions & 3 deletions deepctr/layers/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

"""

from tensorflow.python.keras import backend as K
from tensorflow.python.keras.initializers import Ones, Zeros
from tensorflow.python.keras.layers import Layer
from tensorflow.keras import backend as K
from tensorflow.keras.initializers import Ones, Zeros
from tensorflow.keras.layers import Layer


class LayerNormalization(Layer):
Expand Down
6 changes: 3 additions & 3 deletions deepctr/layers/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

import numpy as np
import tensorflow as tf
from tensorflow.python.keras import backend as K
from tensorflow.python.keras.initializers import TruncatedNormal
from tensorflow.python.keras.layers import LSTM, Lambda, Layer
from tensorflow.keras import backend as K
from tensorflow.keras.initializers import TruncatedNormal
from tensorflow.keras.layers import LSTM, Lambda, Layer

from .core import LocalActivationUnit
from .normalization import LayerNormalization
Expand Down
8 changes: 4 additions & 4 deletions deepctr/layers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

"""
import tensorflow as tf
from tensorflow.python.keras.layers import Flatten
from tensorflow.python.ops.lookup_ops import TextFileInitializer
from tensorflow.keras.layers import Flatten
from tensorflow.ops.lookup_ops import TextFileInitializer

try:
from tensorflow.python.ops.lookup_ops import StaticHashTable
from tensorflow.ops.lookup_ops import StaticHashTable
except ImportError:
from tensorflow.python.ops.lookup_ops import HashTable as StaticHashTable
from tensorflow.ops.lookup_ops import HashTable as StaticHashTable


class NoMask(tf.keras.layers.Layer):
Expand Down
Loading