wangkuiyi / gotorch

A Go idiomatic binding to the C++ core of PyTorch
MIT License
316 stars 35 forks source link

Small dedup #320

Closed wangkuiyi closed 4 years ago

wangkuiyi commented 4 years ago

The function drawImage in tools/tgz/*.test duplicates with vision/dataloader.SynthesizeImage.

It also follows up the PinMemory PR to make data loaders to return records in pinned memory if there is CUDA.

codecov[bot] commented 4 years ago

Codecov Report

Merging #320 into develop will decrease coverage by 0.02%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #320      +/-   ##
===========================================
- Coverage    90.03%   90.01%   -0.03%     
===========================================
  Files           34       34              
  Lines         1716     1712       -4     
===========================================
- Hits          1545     1541       -4     
  Misses         112      112              
  Partials        59       59              
Impacted Files Coverage Δ
vision/synthesizer.go 85.71% <ø> (ø)
tool/tgz/synthesize.go 73.33% <100.00%> (-2.18%) :arrow_down: