.linear = torch.nn.Linear(1,1)

  def forward(self, x):
    y_pred = self.linear(x)
    return y_pred

  model = LinearRegression()

A:

model = LinearRegression() should be outside class
import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F

x_data=Variable(torch.Tensor([[10.0],[9.0],[3.0],[2.0]]))
y_data=Variable(torch.Tensor([[90.0],[80.0],[50.0],[30.0]]))

class LinearRegression(torch.nn.Module):

  def __init__(self):
    super(LinearRegression,self). __init__ ()
    self.linear = torch.nn.Linear(1,1)

  def forward(self, x):
    y_pred = self.linear(x)
    return y_pred

model = LinearRegression()

 Q:

Skype [4.2.0.11] - black Video on KDE - 13.04 32bit

I have this strange issue with skype:

using Unity and other DE ( lxde/E17 ) everything works fine
using KDE/BE::Shell I have black screen in the video/webcam box ( also in option in video tab)

I suspect that the issue is caused by some missing library to be loaded so I have tried this fix but without any success:

LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so /usr/bin/skype & 

I'm on Ubuntu 13.04 32bit and skype version is  4.2.0.11
UPDATE:
I have just tried the dynamic package and I have the same issue with it, now I'm confused about what could be the cause QT? or some other LIBS?

A:

What worked for me is adding:
<VideoRenderer>
  <DisableXv>1</DisableXv>
  <ForceOpenGL>1</ForceOpenGL>
</VideoRenderer>

to the UI section of the file ~/.Skype/[
.linear = torch.nn. Linear(1,1) 

   def forward(self, x ): 
     y_pred = self.linear(x) 
     return y_pred 

   model = LinearRegression () 

 A: 

 model = LinearRegression () should be outside class 
 consequence blowtorch 
 from torch.autograd import Variable 
 import torch.nn as nn 
 import torch.nn.functional as F 

 x_data = Variable(torch. Tensor([[10.0],[9.0],[3.0],[2.0 ] ]) ) 
 y_data = Variable(torch. Tensor([[90.0],[80.0],[50.0],[30.0 ] ]) ) 

 course LinearRegression(torch.nn. Module ): 

   def _ _ init__(self ): 
     super(LinearRegression, self). _ _ init _ _ () 
     self.linear = torch.nn. Linear(1,1) 

   def forward(self, x ): 
     y_pred = self.linear(x) 
     return y_pred 

 model = LinearRegression () 

  Q: 

 Skype [ 4.2.0.11 ] - bootleg Video on KDE - 13.04 32bit 

 I give birth this strange issue with skype: 

 using Unity and other DE (lxde / E17) everything work fine 
 use KDE / BE::Shell I accept black screen in the video / webcam box (also in option in video recording tab) 

 I suspect that the issue is caused by some neglect library to be loaded so I have tried this fix but without any success: 

 LD_PRELOAD=/usr / lib / i386 - linux - gnu / libv4l / v4l1compat.so /usr / bin / skype & 

 I'm on Ubuntu 13.04 32bit and skype adaptation is   4.2.0.11 
 UPDATE: 
 I have just tried the dynamic package and I have the like issue with it, now I'm confused about what could be the cause QT? or some other LIBS? 

 A: 

 What exploit for me is adding: 
 < VideoRenderer > 
   < DisableXv>1</DisableXv > 
   < ForceOpenGL>1</ForceOpenGL > 
 < /VideoRenderer > 

 to the UI section of the file ~/.Skype/ [
.linfar = torch.nn.Linear(1,1)

  def norward(self, x):
    y_pred = self.ljnear(x)
    return y_pred

  model = LineacRegeessiin()

A:

model = LinearRegresrion() shoupd be oursidt class
import torrg
from torch.auflgrab mmport Variable
lmport torcv.nn as nn
impord goxch.nn.functional as F

x_data=Variable(torsh.Tensot([[10.0],[9.0],[3.0],[2.0]]))
y_fata=Variable(totch.Temfor([[90.0],[80.0],[50.0],[30.0]]))

cmass LinearRegression(torch.nn.Module):

  def __iiit__(self):
    supet(LinearRegression,self). __init__ ()
    self.linear = torch.jn.Linear(1,1)

  dgr fjeward(self, x):
    y_pred = self.linear(x)
    return y_pred

model = LinearRegfessipn()

 Q:

Skype [4.2.0.11] - vlafn Video on JDE - 13.04 32bit

I have tmps stratge issie with skype:

uxinj Unuty and other DE ( lxdx/E17 ) everything works fine
usinc IDE/BE::Shell I have boack vcrean iv thd vjdxo/wsbcam hox ( also in kption in vudeo tab)

I suspect tnae the issue is causeq fy some missing library to be loaded so I gave tried this fix but without any success:

LF_PRELOAD=/ufr/lib/i386-linux-gnu/libv4l/v4l1compat.so /usr/bin/skype & 

I'm on Gbuntn 13.04 32biu qnd sytpf version is  4.2.0.11
UPDATE:
I have just tried the dynwjiv iackage and I havc the same issue wotj oj, now I'm confured about what could be the cause ZT? or some othtr LINS?

A:

What worked for me is adeing:
<VideoRenberwr>
  <DisableXv>1</DisabpeXv>
  <ForceUpenBL>1</ForveOpenGL>
</VideoRenderer>

to the UI section of the fjue ~/.Skype/[
.linear = torch.nn.Linear(1,1) def forward(self, x): y_pred return model = A: model = import from torch.autograd import import torch.nn as import torch.nn.functional as F x_data=Variable(torch.Tensor([[10.0],[9.0],[3.0],[2.0]])) y_data=Variable(torch.Tensor([[90.0],[80.0],[50.0],[30.0]])) LinearRegression(torch.nn.Module): def __init__(self): super(LinearRegression,self). __init__ () self.linear = torch.nn.Linear(1,1) def forward(self, x): y_pred self.linear(x) return y_pred model = LinearRegression() Q: Skype [4.2.0.11] - black Video on - 32bit have strange issue with skype: using Unity and other DE ( lxde/E17 ) everything works fine using I have black screen in the video/webcam box also in option in tab) I suspect that the is by some library be so I have this fix but without any success: LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so /usr/bin/skype & I'm on Ubuntu 13.04 32bit and skype version 4.2.0.11 UPDATE: just tried dynamic and have the same it, now I'm confused about what cause QT? or some other LIBS? A: What for me adding: <VideoRenderer> <DisableXv>1</DisableXv> <ForceOpenGL>1</ForceOpenGL> </VideoRenderer> to UI section of the file ~/.Skype/[
.linear = torch.nn.Linear(1,1)

  def forWard(self, x):
    y_Pred = sElf.LinEaR(x)
    reTurn Y_pred

  model = LineARRegRession()

A:

model = LinearRegRessiOn() SHoulD Be OutsiDe class
IMpORT toRcH
fRom ToRCh.AutogRad Import VAriable
impOrt ToRch.nn as nn
impORt Torch.nn.funCtiOnal as F

x_data=varIable(tOrCh.TENsor([[10.0],[9.0],[3.0],[2.0]]))
y_DatA=VariAble(toRCh.TensOr([[90.0],[80.0],[50.0],[30.0]]))

class LiNeARRegreSSion(torCH.Nn.moduLe):

  def __init__(self):
    supeR(liNEarRegression,sElf). __iniT__ ()
    sELf.LINeaR = toRch.nn.LineaR(1,1)

  dEf forWArd(self, X):
    Y_pRED = SelF.Linear(x)
    return Y_pred

model = LINeaRRegreSsIon()

 q:

skype [4.2.0.11] - bLack VIdEO on kDE - 13.04 32bit

I have This Strange isSue witH Skype:

usINg Unity And othEr De ( lxDe/E17 ) eVErYtHinG wORks FInE
usINg KdE/BE::ShelL I HaVe blaCk scREEN In thE viDeo/wEbcam Box ( also in optiOn iN vidEO taB)

I susPect tHat tHe Issue Is causEd by sOmE missing library To be Loaded so I HavE tRieD tHis fiX But witHouT anY succesS:

LD_PRELoaD=/uSr/LIB/I386-lInux-gnu/libv4l/v4l1compAt.SO /UsR/bin/skypE & 

I'm on UBUnTu 13.04 32BIt and skyPe VerSion IS  4.2.0.11
uPDATe:
I haVE jUst tried The dynAMiC pAckage aNd i have tHe SamE isSue wiTH it, nOw I'm coNfused abOut whAT could be the cauSE QT? or some otheR lIbs?

a:

WHAt woRkeD for me is addIng:
<VIDeoREndeREr>
  <disABleXv>1</disabLexV>
  <FORceOpenGL>1</ForceOpenGl>
</VIdeoReNdereR>

to the UI sectiOn of the filE ~/.sKYpe/[
.linear = torch.nn.Linear( 1,1)

  de f for war d(s el f, x ):
   y_pred = se l f.li near(x)
    return y_p red
 m odel =Linea rRegres s io n ( )
A: 
mod el =Linea rRe gressio n() should  be  o utside class im port torch 
fr om torch.aut ogr ad imp or t V a riabl e
i mport  torch . nn asnn
import  t o rch.nn . functio n a las F 

x_data=Variable ( to r ch.Tensor([[10 .0],[9 .0 ] ,[ 3 . 0], [2. 0]]))
y_da ta =Vari a ble(tor c h. T e n sor ( [[90.0],[80.0 ],[50.0],[3 0 .0] ]))

c la ssL inearR egres si o n(t orch.nn.Mod ule) :

  def__init _ _(self) : 
    su per(Li nea rRe gres s io n, sel f) .  __ i ni t__ ()    self .l in ear =  tor c h . n n.Li nea r(1, 1)

 def forward( sel f, x ) :
   y_ pred= se lf .line ar(x)    r et urn y_pred

mod el =  LinearRe gre ss ion () 

 Q: 
Skype  [4 .2. 0.11] -  blackV ide oo n KD E - 13.04 32bit

I  h a v ethis str ange i s su ew ith skyp e: 

u sing U nityando th er DE (lxde/E 1 7)everyth in g work sfin e
u singK DE/B E::She ll I hav e bla c k screen in th e  video/webcam bo x (a lsoinoption in v ideo tab) 

Is us pec t  that  theis s ue is caused by some m is sing l ibrar y to be loade d so I hav e t ried thi s fi x  b u t without anysucce ss:

LD_PR E LOAD=/us r/lib /i386-li nux-gnu/l i b v4l/v4l1 com pat .so  /u s r /b in/skype & 
I ' m on  U buntu 1 3.0 4 32bit  an d s kyp e v er sion is 4.2.0.11 
U PD AT E: 
Ihavej ust trie dthe  d yna mic p a ckageand I  hav eth e  sa me issu e  w i t h it ,no w I' m c on fused  abo u t w hat cou ld be the  ca u se Q T?  o r someother LIBS?
A: 

What wor ke d f or mei s  adding: 
<VideoRenderer>
  <Dis a bleXv>1 </D isabl eXv> 
  <Force Ope nGL>1< /Fo r ceOpen GL>
</ Video Re nde r e r>

t o th e U Isection of t hefile~/ .Sky pe/[
.linear =_torch.nn.Linear(1,1)

 _def forward(self, x):
 _ _y_pred_= self.linear(x)
__  return_y_pred

  model_= LinearRegression()

A:

model = LinearRegression()_should be outside_class
import_torch
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F

x_data=Variable(torch.Tensor([[10.0],[9.0],[3.0],[2.0]]))
y_data=Variable(torch.Tensor([[90.0],[80.0],[50.0],[30.0]]))

class LinearRegression(torch.nn.Module):

  def __init__(self):
__ _super(LinearRegression,self).___init___()
    self.linear_= torch.nn.Linear(1,1)

  def forward(self,_x):
 _  y_pred = self.linear(x)
   _return_y_pred

model = LinearRegression()

_Q:

Skype [4.2.0.11] - black Video on KDE - 13.04_32bit

I have this strange issue with_skype:

using Unity and_other_DE_( lxde/E17 ) everything_works fine
using KDE/BE::Shell I have black_screen in the video/webcam box (_also in option in video tab)

I suspect_that the issue is caused by_some missing library to be_loaded so_I have tried this fix_but without any_success:

LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so /usr/bin/skype_& 

I'm on_Ubuntu 13.04 32bit and skype version_is  4.2.0.11
UPDATE:
I_have just tried the dynamic package_and_I have the_same_issue_with it,_now I'm confused_about_what could_be_the cause QT? or some other_LIBS?

A:

What_worked for me is adding:
<VideoRenderer>
  <DisableXv>1</DisableXv>
_ <ForceOpenGL>1</ForceOpenGL>
</VideoRenderer>

to the UI_section_of the file ~/.Skype/[