Skip to content

Instantly share code, notes, and snippets.

@omarsar
Created August 19, 2018 03:02
Show Gist options
  • Save omarsar/0820e5a54b15ea7cf36051b373000f5f to your computer and use it in GitHub Desktop.
Save omarsar/0820e5a54b15ea7cf36051b373000f5f to your computer and use it in GitHub Desktop.
'''
[tensor([[ 0.7728, 0.5515, -0.6296, 0.7153, -0.4945],
[-0.9922, -0.8795, -0.9972, -0.3248, -0.9954],
[-0.9994, -0.9798, -0.9995, -0.2330, -0.9987],
[-0.9997, -0.9992, -0.9671, -0.9958, -0.4567]],
grad_fn=<TanhBackward>), tensor([[-1.0000, -0.9981, -0.9999, -0.7502, -0.9987],
[ 0.2000, 0.8616, -0.4312, -0.1248, 0.4995],
[-0.9904, -0.9462, -0.9981, -0.2781, -0.9275],
[-0.6522, -0.2911, -0.8473, -0.2088, -0.2840]],
grad_fn=<TanhBackward>)]
tensor([[-1.0000, -0.9981, -0.9999, -0.7502, -0.9987],
[ 0.2000, 0.8616, -0.4312, -0.1248, 0.4995],
[-0.9904, -0.9462, -0.9981, -0.2781, -0.9275],
[-0.6522, -0.2911, -0.8473, -0.2088, -0.2840]],
grad_fn=<TanhBackward>)
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment