예제 #1
0
파일: test_cpu.py 프로젝트: AI-Cdrone/neon
 def test_argmax_axis1(self):
     be = CPU()
     tsr = be.array([[-1, 10], [11, 9]])
     out = be.empty((2, ))
     be.argmax(tsr, 1, out)
     assert_tensor_equal(out, CPUTensor([1, 0]))
예제 #2
0
 def test_argmax_axis1(self):
     be = CPU()
     tsr = be.array([[-1, 10], [11, 9]])
     out = be.empty((2, ))
     be.argmax(tsr, 1, out)
     assert_tensor_equal(out, CPUTensor([1, 0]))
예제 #3
0
파일: test_cpu.py 프로젝트: AI-Cdrone/neon
 def test_argmax_noaxis(self):
     be = CPU()
     tsr = be.array([[-1, 0], [1, 92]])
     out = be.empty([1, 1])
     be.argmax(tsr, None, out)
     assert_tensor_equal(out, CPUTensor(3))
예제 #4
0
 def test_argmax_noaxis(self):
     be = CPU()
     tsr = be.array([[-1, 0], [1, 92]])
     out = be.empty([1, 1])
     be.argmax(tsr, None, out)
     assert_tensor_equal(out, CPUTensor(3))