Python Forum
Executing Scipy Tensor Product
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Executing Scipy Tensor Product
#2
for me what you want to do is not clear

You've a (2,3) matrix size so what product do you want to perform?

Maybe such kind (without Tensorflow here)?
import numpy as np
    
N = 3    
V = (1./np.sqrt(2))*np.ones((2,N))

TP1 = V[:,0]*V[:,1]*V[:,2]
TP2 = np.prod(V)
#     
print("TP1 = {}".format(TP1))
print("TP2 = {}".format(TP2))
Reply


Messages In This Thread
Executing Scipy Tensor Product - by John_Doe - Dec-05-2019, 12:45 PM
RE: Executing Scipy Tensor Product - by paul18fr - Dec-06-2019, 10:28 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  scikit-tensor package Lamine 1 2,574 Feb-27-2022, 01:16 PM
Last Post: jefsummers
  Install tensor flow for Python 2.7 in Windows 10 ErnestTBass 4 6,673 Jul-26-2019, 02:11 PM
Last Post: ThomasL
  matrixes product paul18fr 0 2,142 Jul-18-2019, 07:32 PM
Last Post: paul18fr
  Can you help me with this error? IndexError: invalid index of a 0-dim tensor. DerBerliner 1 4,173 Feb-28-2019, 05:47 PM
Last Post: Larz60+
  keras tensor mainpulation output to next input JohnyBeGood 0 2,040 Nov-21-2018, 03:30 PM
Last Post: JohnyBeGood
  Vector field cross product Eduard 2 2,559 Aug-20-2018, 02:54 PM
Last Post: Eduard
  Attribute Error while using tensor flow pratheep 2 6,600 Mar-16-2018, 10:50 AM
Last Post: pratheep

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020