mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-21 17:03:00 +00:00
replace tensorflow_addons with keras_cv
This commit is contained in:
parent
2d73d84e20
commit
b2b96ab636
1 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,7 @@ from unicodedata import name
|
|||
import numpy as np
|
||||
import tensorflow as tf
|
||||
import tensorflow_addons as tfa
|
||||
|
||||
import keras_cv
|
||||
|
||||
# Code from https://github.com/leanderme/ConvNeXt-Tensorflow/blob/main/ConvNeXt.ipynb
|
||||
from .LayerConvNeXtGamma import LayerConvNeXtGamma
|
||||
|
@ -165,7 +165,8 @@ def add_convnext_block(y, dim, drop_prob=0, prefix=""):
|
|||
name = f'{prefix}.gamma'
|
||||
)(y)
|
||||
|
||||
y = tfa.layers.StochasticDepth(
|
||||
# y = tfa.layers.StochasticDepth(
|
||||
y = keras_cv.layers.StochasticDepth(
|
||||
drop_prob,
|
||||
name = f'{prefix}.drop_path'
|
||||
)([skip, y])
|
||||
|
|
Loading…
Reference in a new issue