Skip to content

Conversation

@reyoung
Copy link
Collaborator

@reyoung reyoung commented Apr 12, 2017

No description provided.

@reyoung reyoung requested a review from luotao1 April 12, 2017 09:50
assert isinstance(neg_distribution, collections.Sequence)
assert len(neg_distribution) == num_classes
assert sum(neg_distribution) == 1
assert abs(sum(neg_distribution) - 1.0) < 1e-5
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个neg_distribution是一些实数的数组,相加永远不可能等于一个整数

@reyoung reyoung merged commit 6226b82 into PaddlePaddle:develop Apr 12, 2017
@reyoung reyoung deleted the feature/refine_nce_layer_2 branch April 12, 2017 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants