Skip to content

Commit

Permalink
Change proto to raw proto
Browse files Browse the repository at this point in the history
  • Loading branch information
nkovela1 committed Nov 21, 2023
1 parent dc13ad0 commit 1a2d6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_nlp/tokenizers/sentence_piece_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def set_proto(self, proto):
)
# Keras cannot serialize a bytestring, so we base64 encode the model
# byte array as a string for saving.
self.proto = base64.b64encode(proto_bytes).decode("ascii")
self.proto = proto

def vocabulary_size(self) -> int:
"""Get the size of the tokenizer vocabulary."""
Expand Down

0 comments on commit 1a2d6a6

Please sign in to comment.