mirror of https://github.com/MycroftAI/mimic2.git
fix for tensorflow 1.4.0
parent
268995c08c
commit
7b09826434
|
@ -15,6 +15,14 @@ class TacoTestHelper(Helper):
|
|||
def batch_size(self):
|
||||
return self._batch_size
|
||||
|
||||
@property
|
||||
def sample_ids_shape(self):
|
||||
return tf.TensorShape([])
|
||||
|
||||
@property
|
||||
def sample_ids_dtype(self):
|
||||
return np.int32
|
||||
|
||||
def initialize(self, name=None):
|
||||
return (tf.tile([False], [self._batch_size]), _go_frames(self._batch_size, self._output_dim))
|
||||
|
||||
|
@ -48,6 +56,14 @@ class TacoTrainingHelper(Helper):
|
|||
def batch_size(self):
|
||||
return self._batch_size
|
||||
|
||||
@property
|
||||
def sample_ids_shape(self):
|
||||
return tf.TensorShape([])
|
||||
|
||||
@property
|
||||
def sample_ids_dtype(self):
|
||||
return np.int32
|
||||
|
||||
def initialize(self, name=None):
|
||||
return (tf.tile([False], [self._batch_size]), _go_frames(self._batch_size, self._output_dim))
|
||||
|
||||
|
|
Loading…
Reference in New Issue