Exemple #1
0
 def __call__(self, name=None):
     if name is None:
         name = self.name
     elif ':' in name:
         name = name.split(':')[0]
     return tf_var_from_shape(name, None, self.dtype,
                              len(self.broadcastable))
Exemple #2
0
def tensor4(name, dtype=None, fixed_shape=None):
    return tf_var_from_shape(name, fixed_shape, dtype, ndim=4)
Exemple #3
0
def vector(name, dtype=None, fixed_shape=None):
    return tf_var_from_shape(str(name), fixed_shape, dtype, ndim=1)
Exemple #4
0
def matrix(name, dtype=None, fixed_shape=None):
    return tf_var_from_shape(name, fixed_shape, dtype, ndim=2)
Exemple #5
0
def tensor4(name, dtype=None, fixed_shape=None):
    return tf_var_from_shape(name, fixed_shape, dtype, ndim=4)
Exemple #6
0
def vector(name, dtype=None, fixed_shape=None):
    return tf_var_from_shape(str(name), fixed_shape, dtype, ndim=1)
Exemple #7
0
def matrix(name, dtype=None, fixed_shape=None):
    return tf_var_from_shape(name, fixed_shape, dtype, ndim=2)
Exemple #8
0
 def __call__(self, name=None):
     if name is None:
         name = self.name
     elif ':' in name:
         name = name.split(':')[0]
     return tf_var_from_shape(name, None, self.dtype, len(self.broadcastable))