Check the net output is expected nets_and_expects is a list of tuples (net, expect)
(self, nets_and_expects)
| 57 | [], shape=[], value=0, dtype=core.DataType.INT64) |
| 58 | |
| 59 | def CheckNetOutput(self, nets_and_expects): |
| 60 | """ |
| 61 | Check the net output is expected |
| 62 | nets_and_expects is a list of tuples (net, expect) |
| 63 | """ |
| 64 | for net, expect in nets_and_expects: |
| 65 | output = workspace.FetchBlob( |
| 66 | net.Proto().external_output[-1]) |
| 67 | self.assertEqual(output, expect) |
| 68 | |
| 69 | def CheckNetAllOutput(self, net, expects): |
| 70 | """ |
no test coverage detected