Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/torch7.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoratkayu <yuekaiyu0307@gmail.com>2016-12-28 11:26:09 +0300
committeratkayu <yuekaiyu0307@gmail.com>2016-12-28 11:26:09 +0300
commit6f0cde0f5fd8f3fbff3647012c9f80fc9a6558dc (patch)
tree06c6091cb0cb0715b3125b7ea3b37b22f18da757 /test
parentaf9848f872c23ce7f8b40fa1b33fc5e3a277c2d3 (diff)
rename histc2 to bhistc
Diffstat (limited to 'test')
-rw-r--r--test/test.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test.lua b/test/test.lua
index 4ab2f4a..f68835b 100644
--- a/test/test.lua
+++ b/test/test.lua
@@ -1355,17 +1355,17 @@ function torchtest.histc()
local z = torch.Tensor{ 0, 3, 0, 2, 1 }
mytester:assertTensorEq(y,z,precision,'error in torch.histc')
end
-function torchtest.histc2()
+function torchtest.bhistc()
local x = torch.Tensor(3, 6)
x[1] = torch.Tensor{ 2, 4, 2, 2, 5, 4 }
x[2] = torch.Tensor{ 3, 5, 1, 5, 3, 5 }
x[3] = torch.Tensor{ 3, 4, 2, 5, 5, 1 }
- local y = torch.histc2(x, 5, 1, 5) -- nbins, min, max
+ local y = torch.bhistc(x, 5, 1, 5) -- nbins, min, max
local z = torch.Tensor(3, 5)
z[1] = torch.Tensor{ 0, 3, 0, 2, 1 }
z[2] = torch.Tensor{ 1, 0, 2, 0, 3 }
z[3] = torch.Tensor{ 1, 1, 1, 1, 2 }
- mytester:assertTensorEq(y,z,precision,'error in torch.histc2 in last dimension')
+ mytester:assertTensorEq(y,z,precision,'error in torch.bhistc in last dimension')
end
function torchtest.ones()
local mx = torch.ones(msize,msize)