Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 644361070
  • Loading branch information
Neural-Link Team authored and tensorflow-copybara committed Jun 18, 2024
1 parent 0fd3ad5 commit ed37459
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion neural_structured_learning/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# Description:
# Build rules for TensorFlow Neural Structured Learning.

# Placeholder for internal Python strict compatibility macro.
# Internal annotation for sync
# Placeholder for internal Python strict compatibility macro.
load("@rules_license//rules:license.bzl", "license")

package(
Expand Down
4 changes: 2 additions & 2 deletions research/carls/knowledge_bank/initializer_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ EmbeddingVectorProto InitializeEmbedding(
return result;
}
if (initializer.has_random_uniform_initializer()) {
absl::BitGen bit_gen;
absl::SharedBitGen bit_gen;
const auto& init = initializer.random_uniform_initializer();
for (int i = 0; i < embedding_dimension; ++i) {
result.add_value(absl::Uniform<float>(bit_gen, init.low(), init.high()));
}
return result;
}
if (initializer.has_random_normal_initializer()) {
absl::BitGen bit_gen;
absl::SharedBitGen bit_gen;
const auto& init = initializer.random_normal_initializer();
for (int i = 0; i < embedding_dimension; ++i) {
result.add_value(
Expand Down

0 comments on commit ed37459

Please sign in to comment.