"examples/vscode:/vscode.git/clone" did not exist on "cd6e1f1171530c76be872877a395dc90b90cfb36"
Commit f2c86f92 authored by 黄璞's avatar 黄璞 Committed by GitHub
Browse files

Comment wrong in adversarial_crypto model

According to the code below:
```python
if key is not None:
      combined_message = tf.concat(axis=1, values=[message, key])
else:
      combined_message = message
```python
If the key=None, combined_message is just message, not the key.
parent a4950ea4
...@@ -118,7 +118,7 @@ class AdversarialCrypto(object): ...@@ -118,7 +118,7 @@ class AdversarialCrypto(object):
def model(self, collection, message, key=None): def model(self, collection, message, key=None):
"""The model for Alice, Bob, and Eve. If key=None, the first FC layer """The model for Alice, Bob, and Eve. If key=None, the first FC layer
takes only the Key as inputs. Otherwise, it uses both the key takes only the message as inputs. Otherwise, it uses both the key
and the message. and the message.
Args: Args:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment