Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/ein16/synth/d2/obj_ty.py
ViewVC logotype

Diff of /branches/ein16/synth/d2/obj_ty.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4522, Mon Sep 5 22:57:22 2016 UTC revision 4523, Tue Sep 6 04:07:12 2016 UTC
# Line 10  Line 10 
10  class tty:  class tty:
11      def __init__(self, id, name, shape):      def __init__(self, id, name, shape):
12          self.id=id          self.id=id
13          self.name=name          self.name="ttt"+name
14          self.shape=shape          self.shape=shape
15      def toStr(self):      def toStr(self):
16          return ("tensor"+str(self.name))          return ("tensor"+str(self.name))
# Line 169  Line 169 
169      name = "t_"+shapeToStr(shape)      name = "t_"+shapeToStr(shape)
170      return tty(id, name, shape)      return tty(id, name, shape)
171    
172  ty_noneT = mkTensor(id,[])  ty_noneT = mkTensor(-1,[5,5,5,5])
173  # distinctive features of lifted tensors or NoneFields  # distinctive features of lifted tensors or NoneFields
174  # are dim=0 and k=-1  # are dim=0 and k=-1
175  def mkNoneField(id, _, outputtensor):  def mkNoneField(id, _, outputtensor):

Legend:
Removed from v.4522  
changed lines
  Added in v.4523

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0