Skip to content

Commit

Permalink
Set the output data type for image reconstruction to float32.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjarosik committed Mar 18, 2022
1 parent 577bcf5 commit 421c362
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/python/arrus/utils/imaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ def gpu_convolve1d(data):
shared_memory_size)
return fir_output_buffer
self.convolve1d_func = gpu_convolve1d
return const_metadata
return const_metadata.copy(dtype=self.xp.float32)

def process(self, data):
return self.convolve1d_func(data)
Expand Down Expand Up @@ -2038,6 +2038,7 @@ def prepare(self, const_metadata: arrus.metadata.ConstMetadata):
n_samples = next(iter(n_samples_set))
batch_size = fcm.batch_size
self.output_shape = (batch_size, n_frames, n_samples, n_channels)
print(self.output_shape)
self._output_buffer = xp.zeros(shape=self.output_shape, dtype=xp.int16)
if xp == np:
# CPU
Expand Down

0 comments on commit 421c362

Please sign in to comment.