File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
jaxlib/mosaic/dialect/tpu/transforms Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -1110,12 +1110,10 @@ class VectorLayoutInferer {
11101110 return success ();
11111111 }
11121112 if (auto src_ty = dyn_cast<VectorType>(some_src_ty)) {
1113- TPU_CHECK_OP (src_ty.getRank () >= 2 , " source rank below 2D unsupported" );
1114- TPU_CHECK_OP (res_ty.getRank () >= 2 , " result rank below 2D unsupported" );
11151113 auto some_layout = getLayout (op.getSource ());
11161114 TPU_CHECK_OP (some_layout.has_value (), " missing vector layout" );
11171115 auto &layout = *some_layout;
1118- if (layout.implicit_dim () != ImplicitDim::kNone ) {
1116+ if (layout.implicit_dim () != ImplicitDim::kNone && src_ty. getRank () > 1 ) {
11191117 VectorLayout layout_2d (layout.bitwidth (), layout.offsets (),
11201118 layout.tiling (), ImplicitDim::kNone );
11211119 if (layout_2d.equivalentTo (layout, src_ty.getShape (), target_shape_)) {
You can’t perform that action at this time.
0 commit comments