@@ -394,10 +394,8 @@ let%debug4_sexp get_inequalities ({ shape = cur_sh; logic; id = _ } as _upd : up
394394 [ Terminal_row cur_sh.batch; Terminal_row cur_sh.input; Terminal_row cur_sh.output ]
395395 in
396396 match logic with
397- | Terminal Range_over_offsets ->
398- (Row. dim_map_empty, mark_terminal () )
399- | Terminal (Constant _c ) ->
400- (Row. dim_map_empty, mark_terminal () )
397+ | Terminal Range_over_offsets -> (Row. dim_map_empty, mark_terminal () )
398+ | Terminal (Constant _c ) -> (Row. dim_map_empty, mark_terminal () )
401399 | Terminal (Constant_fill values ) ->
402400 let len = Array. length values in
403401 let io_dims =
@@ -416,14 +414,10 @@ let%debug4_sexp get_inequalities ({ shape = cur_sh; logic; id = _ } as _upd : up
416414 constr = Total_elems { nominator = batch_elems; divided_by = dim_var_set_empty };
417415 }
418416 :: mark_terminal () )
419- | Terminal (Access (C_function _ )) ->
420- (Row. dim_map_empty, mark_terminal () )
421- | Terminal (Access (External_unsafe _ )) ->
422- (Row. dim_map_empty, mark_terminal () )
423- | Terminal (Access (Merge_buffer _ )) ->
424- (Row. dim_map_empty, mark_terminal () )
425- | Terminal (Access (Uint4x32_to_prec_uniform _ )) ->
426- (Row. dim_map_empty, mark_terminal () )
417+ | Terminal (Access (C_function _ )) -> (Row. dim_map_empty, mark_terminal () )
418+ | Terminal (Access (External_unsafe _ )) -> (Row. dim_map_empty, mark_terminal () )
419+ | Terminal (Access (Merge_buffer _ )) -> (Row. dim_map_empty, mark_terminal () )
420+ | Terminal (Access (Uint4x32_to_prec_uniform _ )) -> (Row. dim_map_empty, mark_terminal () )
427421 | Terminal (Access (File_mapped (filename , prec ))) ->
428422 let fd = Unix. openfile filename [ Unix. O_RDONLY ] 0o640 in
429423 let len = Unix. lseek fd 0 Unix. SEEK_END / Ir.Ops. prec_in_bytes prec in
@@ -444,10 +438,8 @@ let%debug4_sexp get_inequalities ({ shape = cur_sh; logic; id = _ } as _upd : up
444438 constr = Total_elems { nominator = batch_elems; divided_by = dim_var_set_empty };
445439 }
446440 :: mark_terminal () )
447- | Terminal (Slice _ ) ->
448- (Row. dim_map_empty, mark_terminal () )
449- | Terminal (Embed_symbol _ ) ->
450- (Row. dim_map_empty, mark_terminal () )
441+ | Terminal (Slice _ ) -> (Row. dim_map_empty, mark_terminal () )
442+ | Terminal (Embed_symbol _ ) -> (Row. dim_map_empty, mark_terminal () )
451443 | Transpose (Transpose, sh ) ->
452444 ( Row. dim_map_empty,
453445 [
@@ -773,7 +765,6 @@ let fresh_proj_ids update =
773765(* * Computes the indexing into subtensors given the shape information of a tensor.
774766 [derive_projections] should only be invoked when the shapes are fully inferred already! *)
775767let % debug4_sexp derive_projections (update_step : update_step ) : Idx. projections =
776- Stdio. printf " derive_projections\n %!" ;
777768 finish_inference () ;
778769 let resolved_padding, inferred_padding = fresh_proj_ids update_step in
779770 let _debug_update_step : update_step = update_step in
0 commit comments