Skip to content

Commit

Permalink
Fix decision_forest_serving thread safety issue.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 572175042
  • Loading branch information
TensorFlow Decision Forests Team authored and copybara-github committed Oct 10, 2023
1 parent 672cb63 commit d6ebc01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ struct GenericNode {
// Simple one dimension output leaf constructor.
static GenericNode<NodeOffsetRep> Leaf(NodeOffset right_idx,
FeatureIdx feature_idx, float label) {
static GenericNode<NodeOffsetRep> node;
GenericNode<NodeOffsetRep> node;
node.right_idx = right_idx;
node.feature_idx = feature_idx;
node.label = label;
Expand Down

0 comments on commit d6ebc01

Please sign in to comment.