mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-21 12:30:46 +08:00
update fix
This commit is contained in:
@@ -14,7 +14,7 @@ pos_action_starts = ["You attack", "You tell", "You use", "You go"]
|
||||
|
||||
# the loss function is a simple categorical crossentropy between the logits and the labels
|
||||
def loss(labels, logits):
|
||||
return tf.keras.losses.spae_categorical_crossentropy(labels, logits, from_logits=True)
|
||||
return tf.keras.losses.sparse_categorical_crossentropy(labels, logits, from_logits=True)
|
||||
|
||||
|
||||
class CTRLGenerator():
|
||||
|
||||
Reference in New Issue
Block a user