Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: shenweichen/DeepCTR
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: qibaoyuan/DeepCTR
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Dec 20, 2021

  1. instance support for act layer

    instance support for act layer
    qibaoyuan authored Dec 20, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    nschonni Nick Schonning
    Copy the full SHA
    b8e12cb View commit details
  2. Merge pull request #1 from qibaoyuan/qibaoyuan-patch-1

    instance support for act layer
    qibaoyuan authored Dec 20, 2021
    Copy the full SHA
    4a6e286 View commit details
Showing with 2 additions and 0 deletions.
  1. +2 −0 deepctr/layers/activation.py
2 changes: 2 additions & 0 deletions deepctr/layers/activation.py
Original file line number Diff line number Diff line change
@@ -70,6 +70,8 @@ def activation_layer(activation):
act_layer = tf.keras.layers.Activation(activation)
elif issubclass(activation, Layer):
act_layer = activation()
elif isinstance(activation, Layer):
act_layer = activation
else:
raise ValueError(
"Invalid activation,found %s.You should use a str or a Activation Layer Class." % (activation))