Skip to content

Speed up test times 🚀 #1124

@williambdean

Description

@williambdean

If you are motivated to help speed up some tests, we would appreciate it!

Here are some of the slowest test times:

(13 minutes 25 seconds) tests/tensor/rewriting
============================= slowest 50 durations =============================
123.29s call     tests/tensor/rewriting/test_subtensor.py::TestLocalSubtensorMerge::test_const4
56.21s call     tests/tensor/rewriting/test_subtensor.py::TestLocalSubtensorMerge::test_none_slice
52.62s call     tests/tensor/rewriting/test_elemwise.py::TestFusion::test_big_fusion
18.59s call     tests/tensor/rewriting/test_math.py::test_local_log_sum_exp_maximum
14.77s call     tests/tensor/rewriting/test_basic.py::TestLocalSwitchSink::test_local_mul_switch_sink
13.59s call     tests/tensor/rewriting/test_math.py::TestAlgebraicCanonizer::test_mul_div_cases
12.89s call     tests/tensor/rewriting/test_math.py::TestLocalSumProd::test_local_prod_of_div
12.62s call     tests/tensor/rewriting/test_subtensor.py::TestLocalSubtensorMerge::test_const3
10.42s call     tests/tensor/rewriting/test_subtensor_lift.py::test_local_subtensor_of_alloc
9.01s call     tests/tensor/rewriting/test_subtensor.py::test_local_IncSubtensor_serialize
8.94s call     tests/tensor/rewriting/test_subtensor.py::TestLocalSubtensorMerge::test_const2
7.99s call     tests/tensor/rewriting/test_subtensor.py::test_local_subtensor_remove_broadcastable_index
7.20s call     tests/tensor/rewriting/test_subtensor.py::TestLocalSubtensorMerge::test_const
5.95s call     tests/tensor/rewriting/test_math.py::test_local_log_add_exp
5.74s call     tests/tensor/rewriting/test_math.py::TestReduceChain::test_local_sum_sum_prod_prod
5.67s call     tests/tensor/rewriting/test_math.py::TestLocalSumProd::test_sum_of_non_scalar_mul
5.46s call     tests/tensor/rewriting/test_math.py::TestLocalSumProd::test_local_sum_prod_of_scalar_mul
5.32s call     tests/tensor/rewriting/test_math.py::TestLocalErfc::test_local_log_erfc
5.11s call     tests/tensor/rewriting/test_math.py::TestSigmoidRewrites::test_exp_over_1_plus_exp
4.99s call     tests/tensor/rewriting/test_special.py::test_softmax_graph
4.92s call     tests/tensor/rewriting/test_linalg.py::test_matrix_inverse_rop_lop
4.83s call     tests/tensor/rewriting/test_math.py::TestLocalSumProd::test_local_sum_of_div
4.81s call     tests/tensor/rewriting/test_math.py::TestLocalReduce::test_local_reduce_broadcast_some_0
4.51s call     tests/tensor/rewriting/test_subtensor.py::TestLocalSubtensorMerge::test_none_index
4.46s call     tests/tensor/rewriting/test_math.py::test_merge_abs_bugfix
4.35s call     tests/tensor/rewriting/test_linalg.py::test_det_blockdiag_rewrite
3.99s call     tests/tensor/rewriting/test_math.py::TestIntDivByOne::test_remove_floor
3.67s call     tests/tensor/rewriting/test_math.py::test_local_mul_exp_to_exp_add
3.60s call     tests/tensor/rewriting/test_basic.py::test_local_useless_slice
3.35s call     tests/tensor/rewriting/test_basic.py::TestLocalSwitchSink::test_local_div_switch_sink
3.30s call     tests/tensor/rewriting/test_math.py::test_log1p
2.57s call     tests/tensor/rewriting/test_math.py::test_local_expm1
2.56s call     tests/tensor/rewriting/test_basic.py::TestLocalElemwiseAlloc::test_basic[<lambda>-x_shape3-y_shape3-True]
2.49s call     tests/tensor/rewriting/test_basic.py::TestLocalUselessIncSubtensorAlloc::test_advanced_inc_subtensor
2.36s call     tests/tensor/rewriting/test_subtensor.py::TestLocalAdvSub1AdvIncSub1::test_assert
2.33s call     tests/tensor/rewriting/test_basic.py::TestLocalElemwiseAlloc::test_remove_alloc_wo_dimshuffle
2.33s call     tests/tensor/rewriting/test_uncanonicalize.py::TestMinMax::test_optimization_min
2.30s call     tests/tensor/rewriting/test_math.py::TestLocalSumProd::test_local_sum_prod_alloc
2.30s call     tests/tensor/rewriting/test_math.py::TestFuncInverse::test
2.30s call     tests/tensor/rewriting/test_subtensor.py::TestLocalSubtensorMerge::test_const6
2.30s call     tests/tensor/rewriting/test_uncanonicalize.py::test_local_dimshuffle_subtensor
2.25s call     tests/tensor/rewriting/test_special.py::TestLogSoftmaxRewrites::test_local_logsoftmax_grad_rewrite[None]
2.21s call     tests/tensor/rewriting/test_math.py::TestAlgebraicCanonizer::test_elemwise_multiple_inputs_rewrites
2.18s call     tests/tensor/rewriting/test_elemwise.py::TestFusion::test_elemwise_fusion[case73]
2.17s call     tests/tensor/rewriting/test_elemwise.py::test_local_useless_composite_outputs
2.05s call     tests/tensor/rewriting/test_math.py::test_local_mul_pow_to_pow_add
2.05s call     tests/tensor/rewriting/test_basic.py::TestLocalUselessIncSubtensorAlloc::test_incsubtensor
2.02s call     tests/tensor/rewriting/test_basic.py::TestLocalElemwiseAlloc::test_basic[<lambda>-x_shape0-y_shape0-True]
2.00s call     tests/tensor/rewriting/test_elemwise.py::TestFusion::test_CAReduce_single_input[sum-sum-0-floatX-cvm]
1.99s call     tests/tensor/rewriting/test_elemwise.py::TestFusion::test_CAReduce_single_input[sum-sum-axis3-floatX-cvm]
=========================== short test summary info ============================
(9 minutes 13 seconds) tests/scan
============================= slowest 50 durations =============================
34.71s call     tests/scan/test_basic.py::TestScan::test_second_derivative_disconnected_cost_with_mit_mot
28.16s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_outs_taps_backwards
22.18s call     tests/scan/test_basic.py::TestScan::test_grad_mitsot
19.58s call     tests/scan/test_basic.py::TestScan::test_R_op[False]
18.92s call     tests/scan/test_basic.py::TestExamples::test_grad_multiple_outs_some_disconnected
17.33s call     tests/scan/test_basic.py::TestScan::test_R_op_2[False]
17.04s call     tests/scan/test_rewriting.py::TestPushOutNonSeqScan::test_pushout_seqs
16.83s call     tests/scan/test_basic.py::TestScan::test_R_op[True]
16.08s call     tests/scan/test_checkpoints.py::TestScanCheckpoint::test_backward_pass
15.33s call     tests/scan/test_rewriting.py::TestPushOutAddScan::test_machine_translation
13.86s call     tests/scan/test_basic.py::TestScan::test_R_op_2[True]
10.60s call     tests/scan/test_basic.py::TestScan::test_grad_dtype_change
10.57s call     tests/scan/test_basic.py::TestScan::test_grad_of_grad_of_state
9.51s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_outs
7.99s call     tests/scan/test_basic.py::TestExamples::test_grad_multiple_outs_some_disconnected_2
7.77s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_taps_state
7.72s call     tests/scan/test_basic.py::TestScan::test_grad_one_output
7.18s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_outs_taps
7.09s call     tests/scan/test_basic.py::TestExamples::test_default_value_broadcasted
6.83s call     tests/scan/test_checkpoints.py::TestScanCheckpoint::test_forward_pass
6.69s call     tests/scan/test_basic.py::TestGradUntil::test_grad_until_and_truncate_sequence_taps
6.61s call     tests/scan/test_basic.py::TestScan::test_shared_arguments_with_updates
6.56s call     tests/scan/test_basic.py::test_compute_test_value_grad
6.14s call     tests/scan/test_basic.py::TestScan::test_inner_grad
6.00s call     tests/scan/test_rewriting.py::TestSaveMem::test_save_mem_store_steps
5.39s call     tests/scan/test_basic.py::TestGradUntil::test_grad_until_ndim_greater_one
5.19s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_outs_some_uncomputable
5.16s call     tests/scan/test_basic.py::TestScan::test_inner_graph_cloning[default_rng]
5.16s call     tests/scan/test_rewriting.py::TestSaveMem::test_savemem_opt_0_step
4.89s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_seqs_different_nsteps
4.85s call     tests/scan/test_basic.py::test_compute_test_values
4.38s call     tests/scan/test_basic.py::TestScan::test_grad_duplicate_outputs
3.74s call     tests/scan/test_basic.py::TestGradUntil::test_grad_until
3.66s call     tests/scan/test_basic.py::TestScan::test_grad_sitsot
3.38s call     tests/scan/test_basic.py::TestExamples::test_gibbs_chain
3.37s call     tests/scan/test_rewriting.py::TestScanInplaceOptimizer::test_simple_rnn_2
3.22s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_outs_some_truncate
3.19s call     tests/scan/test_basic.py::TestScan::test_non_shaped_input_disconnected_gradient[inside-explicit]
3.15s call     tests/scan/test_basic.py::test_compute_test_value_grad_cast
3.04s call     tests/scan/test_basic.py::TestScan::test_only_nonseq_inputs
2.77s call     tests/scan/test_basic.py::TestExamples::test_same
2.71s call     tests/scan/test_basic.py::TestScan::test_grad_wrt_shared
2.54s call     tests/scan/test_rewriting.py::TestSaveMem::test_while_scan_taps
2.35s call     tests/scan/test_basic.py::TestExamples::test_return_steps
2.27s call     tests/scan/test_basic.py::TestScan::test_R_op_mitmot[False]
2.15s call     tests/scan/test_rewriting.py::TestSaveMem::test_save_mem_reduced_number_of_steps
2.11s call     tests/scan/test_basic.py::TestGradUntil::test_grad_until_and_truncate
2.06s call     tests/scan/test_basic.py::TestExamples::test_not_working_infer_shape
2.03s call     tests/scan/test_rewriting.py::TestRemoveConstantsAndUnusedInputsScan::test_remove_constants_and_unused_inputs_scan_seqs
1.98s call     tests/scan/test_basic.py::TestExamples::test_grad_bug_disconnected_input
=========================== short test summary info ============================
(4 minutes 19 seconds) tests/sparse
============================= slowest 50 durations =============================
64.57s call     tests/sparse/test_basic.py::TestUsmm::test_basic
9.37s call     tests/sparse/sandbox/test_sp.py::TestSP::test_convolution
9.11s call     tests/sparse/test_basic.py::TestCasting::test_cast
8.32s call     tests/sparse/test_basic.py::TestCasting::test_infer_shape
7.25s call     tests/sparse/sandbox/test_sp.py::TestSP::test_maxpool
5.14s call     tests/sparse/test_basic.py::TestAddMul::test_AddSD
4.89s call     tests/sparse/test_basic.py::TestStructuredDot::test_dot_sparse_sparse
4.30s call     tests/sparse/test_basic.py::TestCsmProperties::test_csm_properties_grad
3.04s call     tests/sparse/test_basic.py::TestSpSum::test_grad
2.57s call     tests/sparse/test_basic.py::TestCsm::test_csm_grad
2.46s call     tests/sparse/test_basic.py::TestVStack::test_grad
2.44s call     tests/sparse/test_basic.py::TestHStack::test_grad
2.07s call     tests/sparse/test_basic.py::TestDots::test_int32_dtype
1.82s call     tests/sparse/test_basic.py::TestUsmm::test_infer_shape
1.81s call     tests/sparse/test_basic.py::TestMulSV::test_mul_s_v_grad
1.77s call     tests/sparse/test_basic.py::TestAddMul::test_AddDS
1.54s call     tests/sparse/test_basic.py::TestVerifyGradSparse::test_grad_fail
1.45s call     tests/sparse/test_basic.py::TestSparseInferShape::test_csm_grad
1.41s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[var-DenseTensorType-None-None]
1.39s call     tests/sparse/test_basic.py::TestStructuredAddSV::test_structured_add_s_v_grad
1.36s call     tests/sparse/test_basic.py::TestTrueDot::test_grad
1.35s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[mean-DenseTensorType-None-None]
1.31s call     tests/sparse/test_var.py::TestSparseVariable::test_binary[__divmod__-DenseTensorType]
1.19s call     tests/sparse/test_basic.py::TestConversion::test_format_ndim
1.15s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[any-DenseTensorType-None-None]
1.11s call     tests/sparse/test_basic.py::TestStructuredDot::test_structureddot_csc_grad
1.05s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[argmin-DenseTensorType-None-None]
0.89s call     tests/sparse/test_basic.py::TestSparseInferShape::test_csm
0.86s call     tests/sparse/test_basic.py::TestConstructSparseFromList::test_adv_sub1_sparse_grad
0.77s call     tests/sparse/test_basic.py::TestTrueDot::test_infer_shape
0.77s call     tests/sparse/test_basic.py::TestDots::test_sparse_sparse
0.72s call     tests/sparse/test_basic.py::TestStructuredDot::test_upcast
0.71s call     tests/sparse/test_basic.py::TestSamplingDot::test_op
0.69s call     tests/sparse/test_basic.py::TestStructuredDot::test_structureddot_csr_grad
0.67s call     tests/sparse/test_var.py::TestSparseVariable::test_binary[__mod__-DenseTensorType]
0.66s call     tests/sparse/test_var.py::TestSparseVariable::test_binary[__truediv__-DenseTensorType]
0.66s call     tests/sparse/test_var.py::TestSparseVariable::test_binary[__and__-DenseTensorType]
0.66s call     tests/sparse/test_var.py::TestSparseVariable::test_binary[__or__-DenseTensorType]
0.65s call     tests/sparse/test_var.py::TestSparseVariable::test_binary[__xor__-DenseTensorType]
0.65s call     tests/sparse/test_var.py::TestSparseVariable::test_binary[__pow__-DenseTensorType]
0.64s call     tests/sparse/test_basic.py::TestCasting::test_grad
0.64s call     tests/sparse/test_basic.py::TestClean::test_grad
0.63s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[__abs__-DenseTensorType-None-None]
0.62s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[deg2rad-DenseTensorType-None-None]
0.62s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[arctanh-DenseTensorType-None-None]
0.62s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[rad2deg-DenseTensorType-None-None]
0.62s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[sinh-DenseTensorType-None-None]
0.62s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[exp-DenseTensorType-None-None]
0.62s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[arctan-DenseTensorType-None-None]
0.62s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[arccos-DenseTensorType-None-None]
=========================== short test summary info ============================
(9 minutes 18 seconds) tests/tensor/test_basic.py tests/tensor/test_inplace.py
============================= slowest 50 durations =============================
64.99s call     tests/tensor/test_basic.py::TestSecondSameRank::test_bad_runtime
64.35s call     tests/tensor/test_basic.py::TestSecondSameRank::test_good
31.55s call     tests/tensor/test_basic.py::TestTriangle::test_tril_triu
20.57s call     tests/tensor/test_basic.py::TestAllocDiag::test_alloc_diag_values
11.33s call     tests/tensor/test_basic.py::TestJoinAndSplit::test_roll
10.14s call     tests/tensor/test_basic.py::TestSecondBroadcast::test_good
9.34s call     tests/tensor/test_basic.py::TestNdGrid::test_mgrid_pytensor_variable_numpy_equiv
8.07s call     tests/tensor/test_inplace.py::TestMulInplaceBroadcast::test_good
8.05s call     tests/tensor/test_inplace.py::TestSubInplaceBroadcast::test_good
8.01s call     tests/tensor/test_inplace.py::TestAddInplaceBroadcast::test_good
7.02s call     tests/tensor/test_inplace.py::TestModInplaceBroadcast::test_good
6.98s call     tests/tensor/test_inplace.py::TestIntDivInplaceBroadcast::test_good
6.45s call     tests/tensor/test_inplace.py::TestMaximumInplaceBroadcast::test_good
6.45s call     tests/tensor/test_inplace.py::TestMinimumInplaceBroadcast::test_good
5.04s call     tests/tensor/test_basic.py::TestJoinAndSplit::test_stack_hessian
4.46s call     tests/tensor/test_inplace.py::TestTrueDivInplaceBroadcast::test_good
4.23s call     tests/tensor/test_inplace.py::TestPowInplaceBroadcast::test_good
3.99s call     tests/tensor/test_basic.py::TestAllocBroadcast::test_good
3.98s call     tests/tensor/test_inplace.py::TestSqrInplaceBroadcast::test_good
3.98s call     tests/tensor/test_basic.py::TestAlloc::test_alloc_constant_folding
3.98s call     tests/tensor/test_inplace.py::TestNegInplaceBroadcast::test_good
3.73s call     tests/tensor/test_inplace.py::TestArctan2InplaceBroadcast::test_good
3.65s call     tests/tensor/test_basic.py::TestJoinAndSplit::test_broadcastable_flags_many_dims_and_inputs
3.37s call     tests/tensor/test_basic.py::TestSwitchBroadcast::test_grad
3.21s call     tests/tensor/test_basic.py::TestZerosLikeBroadcast::test_good
3.15s call     tests/tensor/test_inplace.py::TestAbsInplaceBroadcast::test_good
3.13s call     tests/tensor/test_inplace.py::TestTruncInplaceBroadcast::test_good
3.01s call     tests/tensor/test_basic.py::TestSwitchBroadcast::test_good
2.90s call     tests/tensor/test_basic.py::TestAlloc13GradBroadcast::test_grad
2.51s call     tests/tensor/test_basic.py::TestAllocDimshuffleGradBroadcast::test_grad
2.43s call     tests/tensor/test_basic.py::TestTile::test_tile_grad
2.42s call     tests/tensor/test_basic.py::TestJoinAndSplit::test_broadcastable_flag_assignment_mixed_thisaxes
2.37s call     tests/tensor/test_basic.py::TestARange::test_infer_shape[custom]
2.36s call     tests/tensor/test_basic.py::TestOnesLikeBroadcast::test_good
2.32s call     tests/tensor/test_inplace.py::TestSgnInplaceBroadcast::test_good
2.30s call     tests/tensor/test_basic.py::TestJoinAndSplit::test_join_matrix1[False]
2.18s call     tests/tensor/test_inplace.py::TestConjInplaceBroadcast::test_good
2.11s call     tests/tensor/test_basic.py::TestARange::test_grads
2.03s call     tests/tensor/test_basic.py::TestAlloc::test_zeros
1.96s call     tests/tensor/test_inplace.py::test_XOR_inplace
1.93s call     tests/tensor/test_basic.py::TestAllocb1GradBroadcast::test_grad
1.87s call     tests/tensor/test_basic.py::TestAlloc01GradBroadcast::test_grad
1.75s call     tests/tensor/test_basic.py::TestChoose::test_infer_shape
1.74s call     tests/tensor/test_basic.py::test_empty
1.63s call     tests/tensor/test_basic.py::TestInferShape::test_Flatten
1.59s call     tests/tensor/test_basic.py::TestAllocb4GradBroadcast::test_grad
1.56s call     tests/tensor/test_basic.py::TestTile::test_combined_reps_entries[2]
1.52s call     tests/tensor/test_basic.py::TestAllocb3GradBroadcast::test_grad
1.49s call     tests/tensor/test_basic.py::TestExtractDiag::test_grad_3d[0-0-1]
1.44s call     tests/tensor/test_basic.py::TestTile::test_tile_separate_reps_entries[A_shape6-reps_test6]
=========================== short test summary info ============================
(3 minutes 47 seconds) tests/tensor/conv
============================= slowest 50 durations =============================
43.98s call     tests/tensor/conv/test_abstract_conv.py::TestAbstractConvNoOptim::test_all
22.02s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConv3dNoOptim::test_fwd
17.52s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConv3dNoOptim::test_gradweights
11.99s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConv3dNoOptim::test_gradinputs
11.35s call     tests/tensor/conv/test_abstract_conv.py::TestUnsharedConv::test_fwd
6.34s call     tests/tensor/conv/test_abstract_conv.py::TestUnsharedConv::test_gradinput
4.28s call     tests/tensor/conv/test_abstract_conv.py::TestAssertConvShape::test_basic
3.92s call     tests/tensor/conv/test_abstract_conv.py::TestUnsharedConv::test_gradweight
3.63s call     tests/tensor/conv/test_abstract_conv.py::TestBilinearUpsampling::test_bilinear_kernel_1D
3.20s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConvNoOptim::test_gradweights
3.02s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConvNoOptim::test_fwd
2.73s call     tests/tensor/conv/test_abstract_conv.py::TestCausalConv::test_interface
2.62s call     tests/tensor/conv/test_abstract_conv.py::TestConvGradInputsShape::test_check_shape
2.51s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConvNoOptim::test_gradinputs
2.34s call     tests/tensor/conv/test_abstract_conv.py::TestBilinearUpsampling::test_fractional_bilinear_upsampling
1.62s call     tests/tensor/conv/test_abstract_conv.py::TestConv2dGrads::test_conv2d_grad_wrt_inputs
1.61s call     tests/tensor/conv/test_abstract_conv.py::TestAssertShape::test_basic
1.36s call     tests/tensor/conv/test_abstract_conv.py::TestAssertShape::test_shape_check_conv2d
1.34s call     tests/tensor/conv/test_abstract_conv.py::TestAbstractConvNoOptim::test_gradinput_impossible_output_shapes
1.25s call     tests/tensor/conv/test_abstract_conv.py::TestBilinearUpsampling::test_compare_1D_and_2D_upsampling_values
1.24s call     tests/tensor/conv/test_abstract_conv.py::TestConv2dGrads::test_conv2d_grad_wrt_weights
1.11s call     tests/tensor/conv/test_abstract_conv.py::TestBilinearUpsampling::test_bilinear_upsampling_1D
1.01s call     tests/tensor/conv/test_abstract_conv.py::TestBilinearUpsampling::test_fractional_bilinear_upsampling_shape
0.93s call     tests/tensor/conv/test_abstract_conv.py::TestAssertShape::test_shape_check_conv3d
0.90s call     tests/tensor/conv/test_abstract_conv.py::TestBilinearUpsampling::test_bilinear_kernel_2D
0.49s call     tests/tensor/conv/test_abstract_conv.py::TestAssertShape::test_shape_check_conv2d_grad_wrt_inputs
0.48s call     tests/tensor/conv/test_abstract_conv.py::TestAssertShape::test_shape_check_conv3d_grad_wrt_weights
0.47s call     tests/tensor/conv/test_abstract_conv.py::TestAssertShape::test_shape_check_conv3d_grad_wrt_inputs
0.46s call     tests/tensor/conv/test_abstract_conv.py::TestAssertShape::test_shape_check_conv2d_grad_wrt_weights
0.38s call     tests/tensor/conv/test_abstract_conv.py::TestBilinearUpsampling::test_bilinear_upsampling_reshaping
0.31s call     tests/tensor/conv/test_abstract_conv.py::TestAsymmetricPadding::test_gradweight
0.28s call     tests/tensor/conv/test_abstract_conv.py::TestAsymmetricPadding::test_gradinput
0.22s call     tests/tensor/conv/test_abstract_conv.py::TestAsymmetricPadding::test_fwd
0.20s call     tests/tensor/conv/test_abstract_conv.py::TestAbstractConvNoOptim::test_gradinput_arbitrary_output_shapes
0.09s call     tests/tensor/conv/test_abstract_conv.py::TestSeparableConv::test_interface3d
0.08s call     tests/tensor/conv/test_abstract_conv.py::TestSeparableConv::test_interface2d
0.07s call     tests/tensor/conv/test_abstract_conv.py::TestConvGradInputsShape::test_get_shape
0.04s call     tests/tensor/conv/test_abstract_conv.py::test_constant_shapes
0.03s call     tests/tensor/conv/test_abstract_conv.py::TestConvTypes::test_constant_input
0.02s call     tests/tensor/conv/test_abstract_conv.py::TestConv2dTranspose::test_interface
0.01s call     tests/tensor/conv/test_abstract_conv.py::TestConvTypes::test_grad_types

0.005s hidden.  Use -vv to show these durations.)
=========================== short test summary info ============================
(10 minutes 37 seconds) tests/tensor/test_blas.py tests/tensor/test_elemwise.py tests/tensor/test_math_scipy.py
============================= slowest 50 durations =============================
150.32s call     tests/tensor/test_elemwise.py::TestCAReduce::test_c
51.75s call     tests/tensor/test_blas.py::TestGemmNoFlags::test_gemm
22.30s call     tests/tensor/test_math_scipy.py::TestGammaIncBroadcast::test_grad
19.83s call     tests/tensor/test_blas.py::test_dot22scalar
15.82s call     tests/tensor/test_elemwise.py::TestCAReduce::test_perform
13.12s call     tests/tensor/test_math_scipy.py::TestBetaincBroadcast::test_grad
9.81s call     tests/tensor/test_math_scipy.py::TestGammaInccBroadcast::test_grad
8.44s call     tests/tensor/test_elemwise.py::TestCAReduce::test_c_noopt
8.28s call     tests/tensor/test_math_scipy.py::TestBetaIncGrad::test_stan_grad_partial
7.52s call     tests/tensor/test_math_scipy.py::test_gammainc_ddk_tabulated_values
7.02s call     tests/tensor/test_elemwise.py::TestCAReduce::test_perform_nan
6.66s call     tests/tensor/test_blas.py::test_local_dot22_to_dot22scalar
6.54s call     tests/tensor/test_math_scipy.py::TestHyp2F1Broadcast::test_grad
6.38s call     tests/tensor/test_blas.py::test_dot22scalar_cast
6.36s call     tests/tensor/test_elemwise.py::TestBroadcast::test_c
5.97s call     tests/tensor/test_math_scipy.py::TestBetaincInplaceBroadcast::test_grad
5.34s call     tests/tensor/test_blas.py::test_dot_w_self
5.14s call     tests/tensor/test_elemwise.py::TestElemwise::test_infer_shape
5.00s call     tests/tensor/test_elemwise.py::TestBroadcast::test_c_inplace
4.73s call     tests/tensor/test_elemwise.py::TestCAReduce::test_infer_shape
4.57s call     tests/tensor/test_math_scipy.py::TestChi2SFBroadcast::test_good
4.57s call     tests/tensor/test_blas.py::TestBlasStrides::test_gemm
4.51s call     tests/tensor/test_math_scipy.py::TestErfcxBroadcast::test_grad
4.42s call     tests/tensor/test_math_scipy.py::TestHyp2F1Grad::test_hyp2f1_grad_stan_cases
4.26s call     tests/tensor/test_math_scipy.py::TestErfBroadcast::test_grad
4.19s call     tests/tensor/test_blas.py::test_batched_tensordot
3.92s call     tests/tensor/test_blas.py::test_gemm_opt0
3.65s call     tests/tensor/test_math_scipy.py::TestGammalnBroadcast::test_good
3.60s call     tests/tensor/test_math_scipy.py::TestGammalnInplaceBroadcast::test_good
3.40s call     tests/tensor/test_blas.py::test_gemm_nested
3.22s call     tests/tensor/test_math_scipy.py::TestErfBroadcast::test_good
2.95s call     tests/tensor/test_elemwise.py::TestCAReduce::test_c_nan
2.86s call     tests/tensor/test_blas.py::TestGemm::test_non_contiguous
2.78s call     tests/tensor/test_blas.py::test_upcasting_scalar_nogemm
2.73s call     tests/tensor/test_blas.py::test_gemm_opt_vector_stuff
2.63s call     tests/tensor/test_blas.py::test_gemm_unrolled
2.54s call     tests/tensor/test_math_scipy.py::TestErfcBroadcast::test_grad
2.48s call     tests/tensor/test_math_scipy.py::TestSigmoidInplaceBroadcast::test_grad
2.48s call     tests/tensor/test_math_scipy.py::TestBetaIncGrad::test_boik_robison_cox
2.46s call     tests/tensor/test_math_scipy.py::TestSoftplusInplaceBroadcast::test_grad
2.27s call     tests/tensor/test_math_scipy.py::TestErfcxBroadcast::test_good
2.24s call     tests/tensor/test_elemwise.py::TestDimShuffle::test_c_or_py
2.20s call     tests/tensor/test_blas.py::TestBatchedDot::test_grad
2.10s call     tests/tensor/test_math_scipy.py::TestHyp2F1Grad::test_unused_grad_loop_opt[wrt4]
2.10s call     tests/tensor/test_math_scipy.py::TestErfcxInplaceBroadcast::test_good
2.09s call     tests/tensor/test_blas.py::TestGer::test_c64_7_1
2.05s call     tests/tensor/test_blas.py::TestBlasStrides::test_dot22scalar
1.98s call     tests/tensor/test_blas.py::TestGemm::test_basic_4
1.96s call     tests/tensor/test_math_scipy.py::TestHyp2F1Grad::test_unused_grad_loop_opt[wrt3]
1.95s call     tests/tensor/test_math_scipy.py::TestHyp2F1Grad::test_unused_grad_loop_opt[wrt5]
=========================== short test summary info ============================
(6 minutes 34 seconds) tests --ignore=tests/tensor --ignore=tests/scan --ignore=tests/sparse --ignore=tests/xtensor
============================= slowest 50 durations =============================
22.13s call     tests/test_ifelse.py::TestIfelse::test_not_lazy_if_inplace
16.70s call     tests/scalar/test_basic.py::TestUpgradeToFloat::test_unary
9.03s call     tests/scalar/test_basic.py::TestUpgradeToFloat::test_binary
8.30s call     tests/test_rop.py::TestRopLop::test_max
8.17s call     tests/scalar/test_basic.py::TestUpgradeToFloat::test_true_div
7.63s call     tests/scalar/test_math.py::test_scalarloop_grad_mixed_dtypes[op2-scalar_loop_grads2]
6.12s call     tests/link/c/test_cmodule.py::test_cache_race_condition
5.51s call     tests/compile/test_builders.py::TestOpFromGraph::test_L_op_disconnected_output_grad
4.95s call     tests/test_gradient.py::test_subgraph_grad
4.01s call     tests/compile/test_compilelock.py::test_locking_multiprocess_spawn
3.54s call     tests/scalar/test_math.py::test_scalarloop_grad_mixed_dtypes[op3-scalar_loop_grads3]
3.50s call     tests/compile/test_misc.py::test_nnet
3.41s call     tests/compile/test_debugmode.py::test_debugmode_basic
3.06s call     tests/test_gradient.py::TestJacobian::test_jacobian_matrix[vectorize=False]
3.04s call     tests/compile/test_builders.py::TestOpFromGraph::test_rop_multiple_outputs[False]
2.95s call     tests/graph/test_compute_test_value.py::TestComputeTestValue::test_scan
2.84s call     tests/test_gradient.py::TestJacobian::test_jacobian_disconnected_inputs[vectorize=False]
2.78s call     tests/compile/function/test_pfunc.py::TestPfunc::test_shared
2.76s call     tests/test_gradient.py::TestGrad::test_grad_grad_cubic
2.66s call     tests/compile/function/test_pfunc.py::TestAliasingRules::test_input_aliasing_affecting_inplace_operations
2.63s call     tests/test_gradient.py::TestJacobian::test_jacobian_matrix_expression[False-vectorize=False]
2.58s call     tests/test_breakpoint.py::TestPdbBreakpoint::test_infer_shape
2.39s call     tests/test_gradient.py::TestJacobian::test_jacobian_matrix[vectorize=True]
2.39s call     tests/test_rop.py::TestRopLop::test_alloc
2.38s call     tests/scalar/test_basic.py::test_grad_abs
2.35s call     tests/test_gradient.py::test_known_grads
2.33s call     tests/compile/test_builders.py::TestOpFromGraph::test_grad_override[OpFromGraph]
2.26s call     tests/test_gradient.py::TestHessianVectorProduct::test_rosen
2.26s call     tests/compile/test_builders.py::TestOpFromGraph::test_compute_test_value
2.23s call     tests/compile/test_profiling.py::TestProfiling::test_profiling
2.21s call     tests/compile/test_monitormode.py::test_not_inplace
2.18s call     tests/test_rop.py::TestRopLop::test_elemwise0
2.17s call     tests/test_gradient.py::TestZeroGrad::test_grad
2.12s call     tests/compile/function/test_types.py::TestFunction::test_swap_SharedVariable_with_given
2.12s call     tests/graph/test_compute_test_value.py::TestComputeTestValue::test_empty_elemwise
2.06s call     tests/compile/function/test_pfunc.py::TestAliasingRules::test_potential_output_aliasing_induced_by_updates
1.97s call     tests/link/c/test_basic.py::test_shared_input_output
1.95s call     tests/test_raise_op.py::test_CheckAndRaise_basic_c[cvm]
1.91s call     tests/compile/function/test_pfunc.py::TestPfunc::test_shared_mutable
1.91s call     tests/test_gradient.py::TestJacobian::test_jacobian_matrix_expression[False-vectorize=True]
1.91s call     tests/graph/test_compute_test_value.py::TestComputeTestValue::test_scan_err1
1.90s call     tests/compile/test_debugmode.py::TestViewMap::test_aliased_outputs_bad
1.84s call     tests/compile/test_debugmode.py::TestCheckIsfinite::test_check_isfinite
1.82s call     tests/compile/test_builders.py::TestOpFromGraph::test_grad[OpFromGraph]
1.80s call     tests/test_rop.py::TestRopLop::test_join
1.78s call     tests/compile/test_builders.py::TestOpFromGraph::test_lop_override[OpFromGraph]
1.75s call     tests/test_rop.py::TestRopLop::test_setsubtensor1
1.71s call     tests/test_rop.py::TestRopLop::test_softmax
1.67s call     tests/compile/test_builders.py::TestOpFromGraph::test_shared_grad[cls_ofg1]
1.63s call     tests/compile/test_builders.py::TestOpFromGraph::test_nested[OpFromGraph]
=========================== short test summary info ============================

You can find more information on how to contribute here

Automatically generated by GitHub Action
Latest run date: 2025-07-30
Run logs: 16599364127

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions