Data set containing pairs of small tensor shapes that are broadcast compatible. */
| 277 | }; |
| 278 | /** Data set containing pairs of small tensor shapes that are broadcast compatible. */ |
| 279 | class SmallShapesBroadcast final : public framework::dataset::ZipDataset<ShapeDataset, ShapeDataset> |
| 280 | { |
| 281 | public: |
| 282 | SmallShapesBroadcast() |
| 283 | : ZipDataset<ShapeDataset, ShapeDataset>( |
| 284 | ShapeDataset("Shape0", |
| 285 | {TensorShape{9U, 9U}, TensorShape{27U, 13U, 2U}, TensorShape{128U, 1U, 5U, 3U}, |
| 286 | TensorShape{9U, 9U, 3U, 4U}, TensorShape{27U, 13U, 2U, 4U}, TensorShape{1U, 1U, 1U, 5U}, |
| 287 | TensorShape{1U, 16U, 10U, 2U, 128U}, TensorShape{1U, 16U, 10U, 2U, 128U}}), |
| 288 | ShapeDataset("Shape1", |
| 289 | {TensorShape{9U, 1U, 2U}, TensorShape{1U, 13U, 2U}, TensorShape{128U, 64U, 1U, 3U}, |
| 290 | TensorShape{9U, 1U, 3U}, TensorShape{1U}, TensorShape{9U, 9U, 3U, 5U}, |
| 291 | TensorShape{1U, 1U, 1U, 1U, 128U}, TensorShape{128U}})) |
| 292 | { |
| 293 | } |
| 294 | }; |
| 295 | |
| 296 | /** Data set containing pairs of small tensor shapes that are broadcast compatible in non-x dimensions. */ |
| 297 | class SmallShapesNonXBroadcast final : public framework::dataset::ZipDataset<ShapeDataset, ShapeDataset> |
no outgoing calls
no test coverage detected