In [1]:
# Необходмые команды импорта.
import sys, os
import numpy as np
import tensorflow as tf
from matplotlib import pylab as plt
from tqdm import tqdm_notebook
from IPython.display import clear_output

sys.path.append(os.path.join(sys.path[0], '../../'))
from physlearn.NeuralNet.NeuralNetPro import NeuralNetPro

%matplotlib inline

In [19]:
sess = tf.Session()
A = tf.Variable([[2, 1, 5, 6], [1, 2, 3, 4]], dtype = tf.float32)
B = tf.Variable([[2, 1]], dtype = tf.float32)

C = tf.transpose(tf.matmul(B, A))
sess.run(tf.global_variables_initializer())

C.eval(session=sess)


Out[19]:
array([[ 5.],
       [ 4.],
       [13.],
       [16.]], dtype=float32)

In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]: