File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
neural_structured_learning
research/carls/knowledge_bank Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1515# Description:
1616# Build rules for TensorFlow Neural Structured Learning.
1717
18- # Placeholder for internal Python strict compatibility macro.
1918# Internal annotation for sync
19+ # Placeholder for internal Python strict compatibility macro.
2020load ("@rules_license//rules:license.bzl" , "license" )
2121
2222package (
Original file line number Diff line number Diff line change @@ -68,15 +68,15 @@ EmbeddingVectorProto InitializeEmbedding(
6868 return result;
6969 }
7070 if (initializer.has_random_uniform_initializer ()) {
71- absl::BitGen bit_gen;
71+ absl::SharedBitGen bit_gen;
7272 const auto & init = initializer.random_uniform_initializer ();
7373 for (int i = 0 ; i < embedding_dimension; ++i) {
7474 result.add_value (absl::Uniform<float >(bit_gen, init.low (), init.high ()));
7575 }
7676 return result;
7777 }
7878 if (initializer.has_random_normal_initializer ()) {
79- absl::BitGen bit_gen;
79+ absl::SharedBitGen bit_gen;
8080 const auto & init = initializer.random_normal_initializer ();
8181 for (int i = 0 ; i < embedding_dimension; ++i) {
8282 result.add_value (
You can’t perform that action at this time.
0 commit comments