Skip to content

Commit 7a7617f

Browse files
author
TensorFlow Recommenders Authors
committed
Enable tfrs models to handle non-scalar regularization losses by applying reduce_sum instead of sum on regularization losses.
PiperOrigin-RevId: 504961825
1 parent 5557f09 commit 7a7617f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+54
-49
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 The TensorFlow Recommenders Authors.
1+
# Copyright 2023 The TensorFlow Recommenders Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

tensorflow_recommenders/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 The TensorFlow Recommenders Authors.
1+
# Copyright 2023 The TensorFlow Recommenders Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

tensorflow_recommenders/examples/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 The TensorFlow Recommenders Authors.
1+
# Copyright 2023 The TensorFlow Recommenders Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

tensorflow_recommenders/examples/movielens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 The TensorFlow Recommenders Authors.
1+
# Copyright 2023 The TensorFlow Recommenders Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

tensorflow_recommenders/examples/nbtool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 The TensorFlow Recommenders Authors.
1+
# Copyright 2023 The TensorFlow Recommenders Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

tensorflow_recommenders/experimental/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 The TensorFlow Recommenders Authors.
1+
# Copyright 2023 The TensorFlow Recommenders Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

tensorflow_recommenders/experimental/layers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 The TensorFlow Recommenders Authors.
1+
# Copyright 2023 The TensorFlow Recommenders Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

tensorflow_recommenders/experimental/layers/embedding/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 The TensorFlow Recommenders Authors.
1+
# Copyright 2023 The TensorFlow Recommenders Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

tensorflow_recommenders/experimental/layers/embedding/partial_tpu_embedding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 The TensorFlow Recommenders Authors.
1+
# Copyright 2023 The TensorFlow Recommenders Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

tensorflow_recommenders/experimental/layers/embedding/partial_tpu_embedding_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 The TensorFlow Recommenders Authors.
1+
# Copyright 2023 The TensorFlow Recommenders Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)