Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxudong committed Dec 28, 2023
1 parent e524243 commit 0557c9b
Show file tree
Hide file tree
Showing 4 changed files with 587 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/component/backbone.md
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,7 @@ MovieLens-1M数据集效果:

- Highway Network: [highway network](../models/highway.md)
- Cross Decoupling Network: [CDN](../models/cdn.md)
- DLRM+SENet: [dlrm_senet_on_criteo.config](https://github.com/alibaba/EasyRec/tree/master/examples/configs/dlrm_senet_on_criteo.config)

# 组件库介绍

Expand Down
2 changes: 2 additions & 0 deletions easy_rec/python/layers/keras/layer_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ def _fused_can_be_used(self, ndims):
Check if the axis is contiguous and can be collapsed into the last axis.
The self.axis is assumed to have no duplicates.
"""
if not tf.test.is_gpu_available():
return False
axis = sorted(self.axis)
can_use_fused = False

Expand Down
Loading

0 comments on commit 0557c9b

Please sign in to comment.