(self)
| 260 | return [[4, 1, 3, 5]] |
| 261 | |
| 262 | def set_data(self): |
| 263 | self.op_type = 'sequence_pool' |
| 264 | x = np.random.uniform(0.1, 1, [13, 3, 17]).astype('float32') |
| 265 | lod = self.set_lod() |
| 266 | level = len(lod) - 1 |
| 267 | self.inputs = {'X': (x, lod)} |
| 268 | offset = convert_to_offset(lod) |
| 269 | |
| 270 | out = np.zeros((len(lod[level]), 3, 17)).astype('float32') |
| 271 | self.outputs = {'Out': out} |
| 272 | return x, lod, offset, out |
| 273 | |
| 274 | def compute(self, x, offset, out): |
| 275 | self.attrs = {"pad_value": 0.0, 'pooltype': "AVERAGE"} |
nothing calls this directly
no test coverage detected