{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/424","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/424/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/424/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/424/events","html_url":"https://github.com/tensorflow/tensorflow/issues/424","id":120640634,"number":424,"title":"Using Linear Algebraic Functions In TensorFlow Python","user":{"login":"LeavesBreathe","id":14891677,"avatar_url":"https://avatars.githubusercontent.com/u/14891677?v=3","gravatar_id":"","url":"https://api.github.com/users/LeavesBreathe","html_url":"https://github.com/LeavesBreathe","followers_url":"https://api.github.com/users/LeavesBreathe/followers","following_url":"https://api.github.com/users/LeavesBreathe/following{/other_user}","gists_url":"https://api.github.com/users/LeavesBreathe/gists{/gist_id}","starred_url":"https://api.github.com/users/LeavesBreathe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeavesBreathe/subscriptions","organizations_url":"https://api.github.com/users/LeavesBreathe/orgs","repos_url":"https://api.github.com/users/LeavesBreathe/repos","events_url":"https://api.github.com/users/LeavesBreathe/events{/privacy}","received_events_url":"https://api.github.com/users/LeavesBreathe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-06T15:29:45Z","updated_at":"2015-12-07T17:07:57Z","closed_at":"2015-12-06T15:55:01Z","body":"Hey TF, \r\n\r\nMatrix norm in python, it doesn't appear the documentation. However, in your Eigen section, there is a matrix norm function. \r\n\r\nIs it possible to use these eigen functions via python and ensure that it is performed on the gpu? These linear algebraic functions are very easy to do in theano, but I'm having difficulty figuring out how to do this in python. \r\n\r\nMy ultimate goal is to perform a [euclidean norm](http://mathworld.wolfram.com/FrobeniusNorm.html).  I just don't know what is the best way to do this in python would be. Thanks!"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/162595142","html_url":"https://github.com/tensorflow/tensorflow/issues/424#issuecomment-162595142","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/424","id":162595142,"user":{"login":"LeavesBreathe","id":14891677,"avatar_url":"https://avatars.githubusercontent.com/u/14891677?v=3","gravatar_id":"","url":"https://api.github.com/users/LeavesBreathe","html_url":"https://github.com/LeavesBreathe","followers_url":"https://api.github.com/users/LeavesBreathe/followers","following_url":"https://api.github.com/users/LeavesBreathe/following{/other_user}","gists_url":"https://api.github.com/users/LeavesBreathe/gists{/gist_id}","starred_url":"https://api.github.com/users/LeavesBreathe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeavesBreathe/subscriptions","organizations_url":"https://api.github.com/users/LeavesBreathe/orgs","repos_url":"https://api.github.com/users/LeavesBreathe/repos","events_url":"https://api.github.com/users/LeavesBreathe/events{/privacy}","received_events_url":"https://api.github.com/users/LeavesBreathe/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T17:07:56Z","updated_at":"2015-12-07T17:07:56Z","body":"@ebrevdo Thanks for the correction! Here are they corrected:\r\n\r\n```python\r\ndef euclidean_norm(tensor, reduction_indicies = None, name = None):\r\n\twith tf.op_scope(tensor + reduction_indicies, name, \"euclidean_norm\"): #need to have this for tf to work\r\n\t\tsquareroot_tensor = tf.square(tensor)\r\n\t\teuclidean_norm = tf.sum(squareroot_tensor, reduction_indicies =  reduction_indicies)\r\n\t\treturn euclidean_norm\r\n\r\ndef frobenius_norm(tensor, reduction_indicies = None, name = None):\r\n\twith tf.op_scope(tensor + reduction_indicies, name, \"frobenius_norm\"): #need to have this for tf to work\r\n\t\tsquareroot_tensor = tf.square(tensor)\r\n\t\ttensor_sum = tf.sum(squareroot_tensor, reduction_indicies =  reduction_indicies)\r\n\t\tfrobenius_norm = tf.sqrt(tensor_sum)\r\n\t\treturn frobenius_norm\r\n\r\n```"}}