Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Crowdin translations #21

Open
wants to merge 15 commits into
base: crowdin-experiment
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
New translations matrix_math_functions.ipynb (Italian)
nbortolotti committed Nov 26, 2018
commit 0276ac1d34959fdf9186ede08670b2e342e80c42
156 changes: 156 additions & 0 deletions translations/it-IT/jupyter/matrix_math_functions.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import tensorflow as tf"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Matrix functions"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## tf.diag"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
"matrix_diag = tf.constant([7,8,9,10])"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"matrix_diag_function = tf.diag(matrix_diag)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[official documentation](https://www.tensorflow.org/api_docs/python/tf/diag)"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[[ 7 0 0 0]\n",
" [ 0 8 0 0]\n",
" [ 0 0 9 0]\n",
" [ 0 0 0 10]]\n"
]
}
],
"source": [
"with tf.Session() as ses:\n",
" print ses.run(matrix_diag_function)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## tf.transpose"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"matrix_transp = tf.constant([[7,8,9],[10,11,12]])"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"matrix_transp_function = tf.transpose(matrix_transp)"
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[[ 7 10]\n",
" [ 8 11]\n",
" [ 9 12]]\n"
]
}
],
"source": [
"with tf.Session() as ses:\n",
" print ses.run(matrix_transp_function)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "tfcodestylekernel",
"language": "python",
"name": "tfcodestylekernel"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.14+"
}
},
"nbformat": 4,
"nbformat_minor": 2
}