Skip to content

Commit

Permalink
Relax tolerance in attention_projection_fq_test
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 607472600
  • Loading branch information
laurentes authored and pax authors committed Feb 15, 2024
1 parent 5605af8 commit 54d6d86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def loss(params, inputs, targets):
self.assertAllClose(updated_w_f_tensor, updated_w_q_tensor, atol=1e-3)

# 2. Value check.
self.assertNestedListClose(updated_w_q, expected_trained_weight)
self.assertNestedListClose(updated_w_q, expected_trained_weight, places=2)

# Test the training with FQ quantization.
@parameterized.parameters(
Expand Down

0 comments on commit 54d6d86

Please sign in to comment.