itorchSandBox



In [1]:
require 'piranhas'
require 'torch'
require 'gnuplot'

param = param:param_init_all(nil)

scale = param.scale
fovea = param.fovea
e0_in_deg = param.e0_in_deg
visual_field_radius_in_deg = param.visual_field_radius_in_deg
deg_per_pixel = param.deg_per_pixel

-- Get Peripheral Architecture Parameters:

N_e, N_theta  = get_pooling_parameters(scale,e0_in_deg,visual_field_radius_in_deg,deg_per_pixel)

e_max = visual_field_radius_in_deg
visual_field_width = math.floor(0.5 + 2*(visual_field_radius_in_deg/deg_per_pixel))

In [2]:
regions = create_regions_vector_smooth(e0_in_deg,e_max,visual_field_width,deg_per_pixel,N_theta,N_e)
regions:size()

In [3]:
regions:size()


Out[3]:
 477
 477
  25
   8
[torch.LongStorage of size 4]


In [4]:
regions2 = regions:permute(3,4,1,2)

In [5]:
regions2:size()


Out[5]:
  25
   8
 477
 477
[torch.LongStorage of size 4]


In [6]:
M = torch.zeros(((3,3,3)))


[string "M = torch.zeros(((3,3,3)))..."]:1: ')' expected near ','

In [7]:
M = torch.zeros(3,3)

In [8]:
M


Out[8]:
 0  0  0
 0  0  0
 0  0  0
[torch.DoubleTensor of size 3x3]


In [9]:
M = torch.zeros(3,3,3)

In [10]:
M


Out[10]:
(1,.,.) = 
  0  0  0
  0  0  0
  0  0  0

(2,.,.) = 
  0  0  0
  0  0  0
  0  0  0

(3,.,.) = 
  0  0  0
  0  0  0
  0  0  0
[torch.DoubleTensor of size 3x3x3]


In [ ]:


In [11]:
mask = torch.zeros(visual_field_width,visual_field_width)

In [12]:
nt=1
ne=1
mask = regions2(nt,ne,:,:)


[string "nt=1..."]:3: unexpected symbol near ':'

In [13]:
nt


Out[13]:


In [14]:
nt=1
ne=1

In [15]:
nt


Out[15]:
1	

In [17]:
mask = regions2[nt][ne][:][:]


[string "mask = regions2[nt][ne][:][:]..."]:1: unexpected symbol near ':'

In [18]:
mask = regions[{{nt},{ne},{},{}}]

In [19]:
mask


Out[19]:
(1,1,.,.) = 
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.9726
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0274
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
[torch.DoubleTensor of size 1x1x25x8]


In [20]:
[r,c] = mask:gt(0)


[string "[r,c] = mask:gt(0)..."]:1: unexpected symbol near '['

In [21]:
mask:gt(0)


Out[21]:
(1,1,.,.) = 
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  1
  0  0  0  0  0  0  0  1
  0  0  0  0  0  0  0  0
  0  0  0  0  0  0  0  0
[torch.ByteTensor of size 1x1x25x8]


In [22]:
mask


Out[22]:
(1,1,.,.) = 
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.9726
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0274
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
[torch.DoubleTensor of size 1x1x25x8]


In [23]:
mask_indxs = mask:maskedSelect(mask:gt(0))

In [24]:
mask_indxs


Out[24]:
 0.9726
 0.0274
[torch.DoubleTensor of size 2]


In [25]:
mask_indxs_r, mask_indx_c = torch.nonzero(mask)

In [26]:
mask_indxs_r


Out[26]:
  1   1  22   8
  1   1  23   8
[torch.LongTensor of size 2x4]


In [27]:
mask = torch.squeeze(mask)

In [28]:
mask


Out[28]:
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.9726
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0274
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
[torch.DoubleTensor of size 25x8]


In [29]:
mask = regions[{{nt},{ne},{},{}}]
			mask = torch.squeeze(mask)

			mask_indxs_r, mask_indx_c = torch.nonzero(mask)

In [30]:
mask_indxs_r


Out[30]:
 22   8
 23   8
[torch.LongTensor of size 2x2]


In [31]:
mask_indxs_c


Out[31]:


In [36]:
mask_indxs_r[{{},{1}}]:size(1)


Out[36]:
2	

In [37]:
for nt=1,N_theta do
		for ne=1,N_e do
			
			mask = regions[{{nt},{ne},{},{}}]
			mask = torch.squeeze(mask)

			mask_indxs = torch.nonzero(mask)
			r = mask_indxs[{{},{1}}]
			c = mask_indxs[{{},{2}}]

			centers[{{},{nt},{ne}}] = [torch.mean(r) torch.mean(c)]
			areas[{{nt},{ne}}] = r:size(1)

		end
	end


[string "..."]:11: unexpected symbol near '['

In [38]:
r


Out[38]:


In [39]:
mask = regions[{{nt},{ne},{},{}}]
			mask = torch.squeeze(mask)

			mask_indxs = torch.nonzero(mask)
			r = mask_indxs[{{},{1}}]
			c = mask_indxs[{{},{2}}]

In [40]:
r


Out[40]:
 22
 23
[torch.LongTensor of size 2x1]


In [46]:
require 'torch'


Out[46]:
{
  deserialize : function: 0x4106a990
  cat : function: 0x41042ac0
  cdata : function: 0x4121c320
  newmetatable : function: 0x41075f00
  atan2 : function: 0x41134548
  log : function: 0x411341b0
  zero : function: 0x410421d8
  logNormal : function: 0x41044a48
  sigmoid : function: 0x411344a8
  getnumcores : function: 0x41075c40
  cross : function: 0x410428e0
  deserializeFromStorage : function: 0x41061ed0
  inverse : function: 0x41044b88
  updateerrorhandlers : function: 0x41075b28
  isTypeOf : function: 0x410477b0
  ByteStorage : table: 0x4120d8f8
  prod : function: 0x410427f0
  ger : function: 0x41042660
  eq : function: 0x41042cf0
  getnumthreads : function: 0x41075bf0
  ByteTensor : table: 0x41131418
  Timer : table: 0x41133310
  addmv : function: 0x41042688
  lerp : function: 0x41134520
  match : function: 0x41042480
  Allocator : table: 0x41047218
  xcorr2 : function: 0x41042bd8
  neg : function: 0x411344d0
  histc : function: 0x411340c0
  pstrf : function: 0x41044c28
  bernoulli : function: 0x41042b38
  MemoryFile : table: 0x411390e8
  cremainder : function: 0x41042548
  Storage : table: 0x41130698
  ge : function: 0x41042cc8
  kthvalue : function: 0x410429f8
  geometric : function: 0x41042b10
  sin : function: 0x411342a0
  topk : function: 0x410429d0
  baddbmm : function: 0x41042728
  fill : function: 0x41042200
  linspace : function: 0x41134160
  sum : function: 0x410427c8
  numel : function: 0x41042750
  orgqr : function: 0x41044ca0
  test : function: 0x40e6e0d8
  cmul : function: 0x410424a8
  getconstructortable : function: 0x41075c90
  version : function: 0x410628a8
  fmod : function: 0x410423e0
  FloatTensor : table: 0x41137320
  mean : function: 0x41134048
  isTensor : function: 0x40e6e140
  ShortStorage : table: 0x41228d08
  cmin : function: 0x41042868
  addcdiv : function: 0x410425c0
  mm : function: 0x41042610
  Tester : table: 0x41222228
  xcorr3 : function: 0x41042c28
  ShortTensor : table: 0x411339e8
  lt : function: 0x41042c50
  triu : function: 0x41042a98
  repeatTensor : function: 0x4106a968
  data : function: 0x4121c2e0
  CmdLine : table: 0x41063b68
  eye : function: 0x41042930
  loadobj : function: 0x40f5ad30
  mul : function: 0x41042390
  sqrt : function: 0x41134390
  LongTensor : table: 0x41136110
  saveobj : function: 0x41212d58
  trunc : function: 0x41134430
  isequal : function: 0x41075e68
  floor : function: 0x41134408
  serialize : function: 0x410639c0
  load : function: 0x40f5ad30
  save : function: 0x41212d58
  permute : function: 0x41047a90
  totable : function: 0x40e6e120
  csub : function: 0x41042368
  gesv : function: 0x41044a98
  PipeFile : table: 0x41136c90
  LongStorage : table: 0x4122a830
  chunk : function: 0x4104fd70
  split : function: 0x41069620
  Tensor : table: 0x41138500
  diag : function: 0x41042908
  std : function: 0x41134098
  viewAs : function: 0x410508b0
  view : function: 0x41061ef8
  conv3 : function: 0x41042c00
  expandAs : function: 0x41225d20
  File : table: 0x41068238
  expand : function: 0x41075760
  uniform : function: 0x410449d0
  all : function: 0x41133fd0
  renorm : function: 0x41134110
  rsqrt : function: 0x41134480
  typename : function: 0x41075e40
  scatter : function: 0x410422c8
  setdefaulttensortype : function: 0x41047770
  addbmm : function: 0x41042700
  class : function: 0x41047750
  symeig : function: 0x41044b10
  remainder : function: 0x41042408
  clamp : function: 0x41042458
  getmetatable : function: 0x41075f50
  packageLuaPath : function: 0x41047268
  updatethreadlocals : function: 0x41047318
  metatype : function: 0x41075f78
  setRNGState : function: 0x41045038
  getRNGState : function: 0x41044f30
  manualSeed : function: 0x41044ee0
  initialSeed : function: 0x41044e90
  zeros : function: 0x41042228
  median : function: 0x41042a48
  cosh : function: 0x41134278
  pushudata : function: 0x410762d0
  geqrf : function: 0x41044c78
  _gen : torch.Generator
  Generator : table: 0x41045350
  ormqr : function: 0x41044cc8
  FloatStorage : table: 0x41066698
  seed : function: 0x41045418
  qr : function: 0x41044c50
  reshape : function: 0x41042278
  pot
Out[46]:
rs : function: 0x41044bd8
  cpow : function: 0x410424d0
  abs : function: 0x41134020
  dist : function: 0x41134138
  svd : function: 0x41044b60
  mod : function: 0x41042430
  eig : function: 0x41044b38
  IntTensor : table: 0x41134f00
  cdiv : function: 0x410424f8
  pow : function: 0x41134570
  gt : function: 0x41042c78
  randperm : function: 0x41042980
  include : function: 0x41047730
  exponential : function: 0x41044a70
  atan : function: 0x41134340
  nonzero : function: 0x41042d40
  normal : function: 0x410449f8
  multinomial : function: 0x410449a8
  randn : function: 0x41044980
  any : function: 0x41133ff8
  equal : function: 0x41042318
  dot : function: 0x410422f0
  range : function: 0x41042958
  rand : function: 0x41134598
  addr : function: 0x410426d8
  trtrs : function: 0x41044ae8
  cinv : function: 0x411344f8
  tan : function: 0x41134318
  frac : function: 0x41134458
  serializeToStorage : function: 0x41069cc8
  ceil : function: 0x411343e0
  squeeze : function: 0x41042b60
  var : function: 0x41134070
  tanh : function: 0x41134368
  setmetatable : function: 0x41075f28
  cumsum : function: 0x41042778
  cauchy : function: 0x41044a20
  ne : function: 0x41042d18
  sinh : function: 0x411342f0
  cos : function: 0x41134228
  potrf : function: 0x41044bb0
  DoubleStorage : table: 0x41130698
  CharStorage : table: 0x41227f38
  asin : function: 0x411342c8
  exp : function: 0x41134200
  log1p : function: 0x411341d8
  pointer : function: 0x410628d0
  addcmul : function: 0x41042598
  add : function: 0x41042340
  type : function: 0x41047790
  sign : function: 0x41042b88
  div : function: 0x410423b8
  mode : function: 0x41042a20
  toc : function: 0x41062930
  norm : function: 0x411340e8
  gather : function: 0x410422a0
  tic : function: 0x41062880
  gels : function: 0x41044ac0
  mv : function: 0x410425e8
  getdefaulttensortype : function: 0x41214c48
  isStorage : function: 0x40e6e160
  logspace : function: 0x41134188
  factory : function: 0x41075c68
  CharTensor : table: 0x411327d8
  setnumthreads : function: 0x41214c70
  IntStorage : table: 0x41229ab0
  TestSuite : function: 0x41f1dba8
  cumprod : function: 0x410427a0
  potri : function: 0x41044c00
  le : function: 0x41042ca0
  setenv : function: 0x41075ed8
  tril : function: 0x41042a70
  getenv : function: 0x41075e90
  acos : function: 0x41134250
  addmm : function: 0x410426b0
  isatty : function: 0x41214ca8
  min : function: 0x41042818
  max : function: 0x41042840
  cmax : function: 0x41042890
  DoubleTensor : table: 0x41138500
  sort : function: 0x410429a8
  trace : function: 0x410428b8
  ones : function: 0x41042250
  cfmod : function: 0x41042520
  round : function: 0x411343b8
  bmm : function: 0x41042638
  DiskFile : table: 0x41135a30
  conv2 : function: 0x41042bb0
  setheaptracking : function: 0x41075b00
  cmod : function: 0x41042570
  random : function: 0x41042ae8
}

In [42]:
math.mean(r)


[string "local f = function() return math.mean(r) end;..."]:1: attempt to call field 'mean' (a nil value)
stack traceback:
	[string "local f = function() return math.mean(r) end;..."]:1: in function 'f'
	[string "local f = function() return math.mean(r) end;..."]:1: in main chunk
	[C]: in function 'xpcall'
	/home/arturo/torch/install/share/lua/5.1/itorch/main.lua:209: in function </home/arturo/torch/install/share/lua/5.1/itorch/main.lua:173>
	/home/arturo/torch/install/share/lua/5.1/lzmq/poller.lua:75: in function 'poll'
	/home/arturo/torch/install/share/lua/5.1/lzmq/impl/loop.lua:307: in function 'poll'
	/home/arturo/torch/install/share/lua/5.1/lzmq/impl/loop.lua:325: in function 'sleep_ex'
	/home/arturo/torch/install/share/lua/5.1/lzmq/impl/loop.lua:370: in function 'start'
	/home/arturo/torch/install/share/lua/5.1/itorch/main.lua:381: in main chunk
	[C]: in function 'require'
	(command line):1: in main chunk
	[C]: at 0x00406670

In [43]:
require 'math'


Out[43]:
{
  tan : function: builtin#46
  tanh : function: builtin#52
  sin : function: builtin#44
  atan2 : function: builtin#56
  atan : function: builtin#49
  abs : function: builtin#38
  sinh : function: builtin#50
  randomseed : function: builtin#63
  random : function: builtin#62
  sqrt : function: builtin#41
  huge : inf
  pi : 3.1415926535898
  acos : function: builtin#48
  max : function: builtin#61
  floor : function: builtin#39
  min : function: builtin#60
  ldexp : function: builtin#59
  fmod : function: builtin#58
  pow : function: builtin#57
  modf : function: builtin#54
  frexp : function: builtin#53
  rad : function: 0x40f41970
  cos : function: builtin#45
  deg : function: 0x40f418d0
  log : function: builtin#55
  cosh : function: builtin#51
  asin : function: builtin#47
  exp : function: builtin#43
  log10 : function: builtin#42
  ceil : function: builtin#40
}

In [50]:
X = torch.mean(r:double())

In [49]:
r:type()


Out[49]:
torch.LongTensor	

In [51]:
X


Out[51]:
22.5	

In [52]:
for nt=1,N_theta do
		for ne=1,N_e do
			
			mask = regions[{{nt},{ne},{},{}}]
			mask = torch.squeeze(mask)

			mask_indxs = torch.nonzero(mask)
			r = mask_indxs[{{},{1}}]
			c = mask_indxs[{{},{2}}]

			centers[{{},{nt},{ne}}] = [torch.mean(r:double()) torch.mean(c:double())]
			areas[{{nt},{ne}}] = r:size(1)

		end
	end


[string "..."]:11: unexpected symbol near '['

In [53]:
-- Double Check this:
	for nt=1,N_theta do
		for ne=1,N_e do
			
			mask = regions[{{nt},{ne},{},{}}]
			mask = torch.squeeze(mask)

			mask_indxs = torch.nonzero(mask)
			r = mask_indxs[{{},{1}}]
			c = mask_indxs[{{},{2}}]

			centers[{{1},{nt},{ne}}] = torch.mean(r:double())
			centers[{{2},{nt},{ne}}] = torch.mean(c:double())

			areas[{{nt},{ne}}] = r:size(1)

		end
	end


[string "..."]:12: attempt to index global 'centers' (a nil value)
stack traceback:
	[string "..."]:12: in main chunk
	[C]: in function 'xpcall'
	/home/arturo/torch/install/share/lua/5.1/itorch/main.lua:209: in function </home/arturo/torch/install/share/lua/5.1/itorch/main.lua:173>
	/home/arturo/torch/install/share/lua/5.1/lzmq/poller.lua:75: in function 'poll'
	/home/arturo/torch/install/share/lua/5.1/lzmq/impl/loop.lua:307: in function 'poll'
	/home/arturo/torch/install/share/lua/5.1/lzmq/impl/loop.lua:325: in function 'sleep_ex'
	/home/arturo/torch/install/share/lua/5.1/lzmq/impl/loop.lua:370: in function 'start'
	/home/arturo/torch/install/share/lua/5.1/itorch/main.lua:381: in main chunk
	[C]: in function 'require'
	(command line):1: in main chunk
	[C]: at 0x00406670

In [54]:
centers


Out[54]:


In [55]:
centers = torch.zeros(2,N_theta,N_e)

In [56]:
centers:size()


Out[56]:
  2
 25
  8
[torch.LongStorage of size 3]


In [57]:
areas = torch.zeros(N_theta,N_e)

In [58]:
-- Double Check this:
	for nt=1,N_theta do
		for ne=1,N_e do
			
			mask = regions[{{nt},{ne},{},{}}]
			mask = torch.squeeze(mask)

			mask_indxs = torch.nonzero(mask)
			r = mask_indxs[{{},{1}}]
			c = mask_indxs[{{},{2}}]

			centers[{{1},{nt},{ne}}] = torch.mean(r:double())
			centers[{{2},{nt},{ne}}] = torch.mean(c:double())

			areas[{{nt},{ne}}] = r:size(1)

		end
	end

In [1]:
Filters = { regions = torch.Tensor(N_theta,N_e,visual_field_width,visual_field_width),
	centers = torch.Tensor(2,N_theta,N_e),
	areas = torch.Tensor(N_theta,N_e)

	offsets_r = {}
	offsets_c = {}
	weights = {}
	uniq_pix = {}

	for i=1,N_theta do
		offsets_r[i] = {}
		offsets_c[i] = {}
		weights[i] = {}
		uniq_px[i] = {}
		for j=1,N_e do
			offsets_r[i][j] = torch.Tensor()
			offsets_c[i][j] = torch.Tensor()
			weights[i][j] = torch.Tensor()
			uniq_px[i][j] = torch.Tensor()
		end
	end
	}


[string "..."]:5: '}' expected (to close '{' at line 1) near 'offsets_r'

In [2]:
Filters = { regions = torch.Tensor(N_theta,N_e,visual_field_width,visual_field_width),
	centers = torch.Tensor(2,N_theta,N_e),
	areas = torch.Tensor(N_theta,N_e),
	offsets_r = {},
	offsets_c = {},
	weights = {},
	uniq_pix = {},

	for i=1,N_theta do
		offsets_r[i] = {}
		offsets_c[i] = {}
		weights[i] = {}
		uniq_px[i] = {}
		for j=1,N_e do
			offsets_r[i][j] = torch.Tensor()
			offsets_c[i][j] = torch.Tensor()
			weights[i][j] = torch.Tensor()
			uniq_px[i][j] = torch.Tensor()
		end
	end
	}


[string "..."]:9: unexpected symbol near 'for'

In [3]:
Filters = { regions = torch.Tensor(N_theta,N_e,visual_field_width,visual_field_width),
	centers = torch.Tensor(2,N_theta,N_e),
	areas = torch.Tensor(N_theta,N_e),
	offsets_r = {},
	offsets_c = {},
	weights = {},
	uniq_pix = {},
	}

In [4]:
filters = Filters

In [5]:
filters


Out[5]:
{
  centers : DoubleTensor - size: 2x25x8
  offsets_r : table: 0x4006cc58
  uniq_pix : table: 0x4006ccd0
  offsets_c : table: 0x4006cc80
  weights : table: 0x4006cca8
  areas : DoubleTensor - size: 25x8
  regions : DoubleTensor - size: 25x8x477x477
}

In [6]:
for i=1,N_theta do
		filters.offsets_r[i] = {}
		filters.offsets_c[i] = {}
		filters.weights[i] = {}
		filters.uniq_px[i] = {}
		for j=1,N_e do
			filters.offsets_r[i][j] = torch.Tensor()
			filters.offsets_c[i][j] = torch.Tensor()
			filters.weights[i][j] = torch.Tensor()
			filters.uniq_px[i][j] = torch.Tensor()
		end
	end


[string "..."]:5: attempt to index field 'uniq_px' (a nil value)
stack traceback:
	[string "..."]:5: in main chunk
	[C]: in function 'xpcall'
	/home/arturo/torch/install/share/lua/5.1/itorch/main.lua:209: in function </home/arturo/torch/install/share/lua/5.1/itorch/main.lua:173>
	/home/arturo/torch/install/share/lua/5.1/lzmq/poller.lua:75: in function 'poll'
	/home/arturo/torch/install/share/lua/5.1/lzmq/impl/loop.lua:307: in function 'poll'
	/home/arturo/torch/install/share/lua/5.1/lzmq/impl/loop.lua:325: in function 'sleep_ex'
	/home/arturo/torch/install/share/lua/5.1/lzmq/impl/loop.lua:370: in function 'start'
	/home/arturo/torch/install/share/lua/5.1/itorch/main.lua:381: in main chunk
	[C]: in function 'require'
	(command line):1: in main chunk
	[C]: at 0x00406670

In [7]:
filters = Filters

	for i=1,N_theta do
		filters.offsets_r[i] = {}
		filters.offsets_c[i] = {}
		filters.weights[i] = {}
		filters.uniq_pix[i] = {}
		for j=1,N_e do
			filters.offsets_r[i][j] = torch.Tensor()
			filters.offsets_c[i][j] = torch.Tensor()
			filters.weights[i][j] = torch.Tensor()
			filters.uniq_pix[i][j] = torch.Tensor()
		end
	end

In [8]:
filters


Out[8]:
{
  centers : DoubleTensor - size: 2x25x8
  offsets_r : 
    {
      1 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      2 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
 
Out[8]:
         5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      3 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      4 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      5 : 
        {
  
Out[8]:
        1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      6 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      7 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
   
Out[8]:
       7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      8 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      9 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      10 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        
Out[8]:
}
      11 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      12 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      13 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
 
Out[8]:
     14 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      15 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      16 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
  
Out[8]:
    17 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      18 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      19 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      20 : 
        {
          1 : DoubleTensor - empty
        
Out[8]:
  2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      21 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      22 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      23 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
Out[8]:
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      24 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      25 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
    }
  uniq_pix : 
    {
      1 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
         
Out[8]:
 6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      2 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      3 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      4 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
 
Out[8]:
       }
      5 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      6 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      7 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      8 : 
        {
          1 : DoubleTensor - empty
Out[8]:
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      9 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      10 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      11 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
   
Out[8]:
       6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      12 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      13 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      14 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      15 : 
        {
         
Out[8]:
 1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      16 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      17 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      18 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
  
Out[8]:
        6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      19 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      20 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      21 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      22 : 
     
Out[8]:
   {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      23 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      24 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      25 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
         
Out[8]:
 4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
    }
  offsets_c : 
    {
      1 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      2 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      3 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
        
Out[8]:
  8 : DoubleTensor - empty
        }
      4 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      5 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      6 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      7 : 
        {
          1 : DoubleTensor - empty
      
Out[8]:
    2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      8 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      9 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      10 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
 
Out[8]:
         6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      11 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      12 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      13 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
Out[8]:
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      14 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      15 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      16 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      17 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
Out[8]:
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      18 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      19 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      20 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      21 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
Out[8]:
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      22 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      23 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      24 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      25 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
   
Out[8]:
       7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
    }
  weights : 
    {
      1 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      2 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      3 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      4 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
Out[8]:
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      5 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      6 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      7 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      8 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
    
Out[8]:
      4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      9 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      10 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      11 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      12 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
Out[8]:
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      13 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      14 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      15 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      16 : 
        {
          1 : DoubleTensor - empty
Out[8]:
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      17 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      18 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      19 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      20 : 
        {
      
Out[8]:
    1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      21 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      22 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      23 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
Out[8]:
      24 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
      25 : 
        {
          1 : DoubleTensor - empty
          2 : DoubleTensor - empty
          3 : DoubleTensor - empty
          4 : DoubleTensor - empty
          5 : DoubleTensor - empty
          6 : DoubleTensor - empty
          7 : DoubleTensor - empty
          8 : DoubleTensor - empty
        }
    }
  areas : DoubleTensor - size: 25x8
  regions : DoubleTensor - size: 25x8x477x477
}

In [ ]: