Skip to content

Speed up test times 🚀 #1124

Open
Open
@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:

(4 minutes 40 seconds) tests/sparse
============================= slowest 50 durations =============================
68.96s call     tests/sparse/test_basic.py::TestUsmm::test_basic
14.06s call     tests/sparse/sandbox/test_sp.py::TestSP::test_convolution
9.04s call     tests/sparse/test_basic.py::TestCasting::test_cast
8.31s call     tests/sparse/test_basic.py::TestCasting::test_infer_shape
7.96s call     tests/sparse/sandbox/test_sp.py::TestSP::test_maxpool
5.07s call     tests/sparse/test_basic.py::TestCsmProperties::test_csm_properties_grad
5.05s call     tests/sparse/test_basic.py::TestAddMul::test_AddSD
4.92s call     tests/sparse/test_basic.py::TestStructuredDot::test_dot_sparse_sparse
3.32s call     tests/sparse/test_basic.py::TestCsm::test_csm_grad
2.78s call     tests/sparse/test_basic.py::TestHStack::test_grad
2.53s call     tests/sparse/test_basic.py::TestCsm::test_csm_unsorted
2.52s call     tests/sparse/test_basic.py::TestSpSum::test_grad
2.40s call     tests/sparse/test_basic.py::TestVStack::test_grad
2.38s call     tests/sparse/test_basic.py::TestAddMul::test_AddDS
2.06s call     tests/sparse/test_basic.py::TestDots::test_int32_dtype
1.53s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[any-DenseTensorType-None-None]
1.51s call     tests/sparse/test_basic.py::TestVerifyGradSparse::test_grad_fail
1.43s call     tests/sparse/test_basic.py::TestUsmm::test_infer_shape
1.41s call     tests/sparse/test_basic.py::TestSparseInferShape::test_csm_grad
1.39s call     tests/sparse/test_basic.py::TestMulSV::test_mul_s_v_grad
1.39s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[var-DenseTensorType-None-None]
1.36s call     tests/sparse/test_basic.py::TestStructuredAddSV::test_structured_add_s_v_grad
1.35s call     tests/sparse/test_basic.py::TestTrueDot::test_grad
1.33s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[mean-DenseTensorType-None-None]
1.29s call     tests/sparse/test_var.py::TestSparseVariable::test_binary[__divmod__-DenseTensorType]
1.26s call     tests/sparse/test_basic.py::TestConversion::test_format_ndim
1.02s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[argmin-DenseTensorType-None-None]
0.83s call     tests/sparse/test_basic.py::TestDots::test_sparse_sparse
0.82s call     tests/sparse/test_basic.py::TestConstructSparseFromList::test_adv_sub1_sparse_grad
0.72s call     tests/sparse/test_basic.py::TestStructuredDot::test_upcast
0.70s call     tests/sparse/test_basic.py::TestTrueDot::test_infer_shape
0.69s call     tests/sparse/test_basic.py::TestStructuredDot::test_structureddot_csc_grad
0.68s call     tests/sparse/test_basic.py::TestStructuredDot::test_structureddot_csr_grad
0.68s call     tests/sparse/test_basic.py::TestCsm::test_csm_sparser
0.68s call     tests/sparse/test_basic.py::TestSamplingDot::test_op
0.67s 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[__mod__-DenseTensorType]
0.65s call     tests/sparse/test_basic.py::TestClean::test_grad
0.64s call     tests/sparse/test_var.py::TestSparseVariable::test_binary[__and__-DenseTensorType]
0.64s call     tests/sparse/test_basic.py::TestCasting::test_grad
0.64s call     tests/sparse/test_var.py::TestSparseVariable::test_binary[__truediv__-DenseTensorType]
0.63s call     tests/sparse/test_var.py::TestSparseVariable::test_binary[__pow__-DenseTensorType]
0.61s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[deg2rad-DenseTensorType-None-None]
0.61s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[expm1-DenseTensorType-None-None]
0.61s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[rad2deg-DenseTensorType-None-None]
0.61s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[arcsinh-DenseTensorType-None-None]
0.61s call     tests/sparse/test_basic.py::TestVStack::test_op
0.61s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[tanh-DenseTensorType-None-None]
0.61s call     tests/sparse/test_var.py::TestSparseVariable::test_unary[sin-DenseTensorType-None-None]
=========================== short test summary info ============================
(11 minutes 14 seconds) tests/scan
============================= slowest 50 durations =============================
48.74s call     tests/scan/test_basic.py::TestScan::test_second_derivative_disconnected_cost_with_mit_mot
34.59s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_outs_taps_backwards
32.00s call     tests/scan/test_basic.py::TestScan::test_grad_mitsot
25.15s call     tests/scan/test_basic.py::TestScan::test_R_op[False]
23.22s call     tests/scan/test_basic.py::TestScan::test_R_op[True]
23.11s call     tests/scan/test_basic.py::TestScan::test_R_op_2[False]
20.96s call     tests/scan/test_basic.py::TestExamples::test_grad_multiple_outs_some_disconnected
18.22s call     tests/scan/test_rewriting.py::TestPushOutNonSeqScan::test_pushout_seqs
17.75s call     tests/scan/test_rewriting.py::TestPushOutAddScan::test_machine_translation
17.11s call     tests/scan/test_checkpoints.py::TestScanCheckpoint::test_backward_pass
16.29s call     tests/scan/test_basic.py::TestScan::test_only_nonseq_inputs
15.77s call     tests/scan/test_basic.py::TestScan::test_R_op_2[True]
13.20s call     tests/scan/test_basic.py::TestScan::test_grad_dtype_change
12.04s call     tests/scan/test_basic.py::TestScan::test_grad_of_grad_of_state
10.23s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_outs
9.37s call     tests/scan/test_basic.py::TestExamples::test_grad_multiple_outs_some_disconnected_2
8.91s call     tests/scan/test_basic.py::TestScan::test_grad_one_output
8.12s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_taps_state
7.81s call     tests/scan/test_basic.py::TestExamples::test_default_value_broadcasted
7.81s call     tests/scan/test_basic.py::TestGradUntil::test_grad_until_and_truncate_sequence_taps
7.64s call     tests/scan/test_basic.py::TestScan::test_shared_arguments_with_updates
7.52s call     tests/scan/test_basic.py::TestScan::test_inner_graph_cloning[default_rng]
7.41s call     tests/scan/test_checkpoints.py::TestScanCheckpoint::test_forward_pass
6.74s call     tests/scan/test_basic.py::test_compute_test_value_grad
6.61s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_outs_taps
6.05s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_outs_some_uncomputable
5.97s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_seqs_different_nsteps
5.95s call     tests/scan/test_basic.py::TestScan::test_inner_grad
5.66s call     tests/scan/test_rewriting.py::TestSaveMem::test_savemem_opt_0_step
5.60s call     tests/scan/test_basic.py::TestScan::test_grad_sitsot
4.86s call     tests/scan/test_basic.py::TestGradUntil::test_grad_until_ndim_greater_one
4.71s call     tests/scan/test_basic.py::TestScan::test_grad_duplicate_outputs
4.70s call     tests/scan/test_rewriting.py::TestSaveMem::test_save_mem_store_steps
4.04s call     tests/scan/test_basic.py::TestGradUntil::test_grad_until
3.66s call     tests/scan/test_basic.py::TestExamples::test_gibbs_chain
3.52s call     tests/scan/test_rewriting.py::TestScanInplaceOptimizer::test_simple_rnn_2
3.38s call     tests/scan/test_basic.py::TestScan::test_non_shaped_input_disconnected_gradient[inside-explicit]
3.35s call     tests/scan/test_views.py::test_foldr_memory_consumption
3.17s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_outs_some_truncate
2.90s call     tests/scan/test_basic.py::TestScan::test_grad_wrt_shared
2.77s call     tests/scan/test_basic.py::TestExamples::test_same
2.62s call     tests/scan/test_basic.py::TestScan::test_monitor_mode
2.53s call     tests/scan/test_basic.py::test_compute_test_values
2.47s call     tests/scan/test_basic.py::TestExamples::test_return_steps
2.41s call     tests/scan/test_basic.py::test_compute_test_value_grad_cast
2.29s call     tests/scan/test_basic.py::TestScan::test_pickling
2.25s call     tests/scan/test_basic.py::TestGradUntil::test_grad_until_and_truncate
2.18s call     tests/scan/test_rewriting.py::TestSaveMem::test_save_mem_reduced_number_of_steps
2.15s call     tests/scan/test_basic.py::TestScan::test_R_op_mitmot[False]
2.07s call     tests/scan/test_rewriting.py::TestSaveMem::test_while_scan_taps
=========================== short test summary info ============================
(6 minutes 25 seconds) tests --ignore=tests/tensor --ignore=tests/scan --ignore=tests/sparse
============================= slowest 50 durations =============================
25.85s call     tests/test_ifelse.py::TestIfelse::test_not_lazy_if_inplace
16.03s call     tests/scalar/test_basic.py::TestUpgradeToFloat::test_unary
8.92s call     tests/scalar/test_basic.py::TestUpgradeToFloat::test_binary
8.38s call     tests/scalar/test_basic.py::TestUpgradeToFloat::test_true_div
7.89s call     tests/test_rop.py::TestRopLop::test_max
7.43s call     tests/scalar/test_math.py::test_scalarloop_grad_mixed_dtypes[op2-scalar_loop_grads2]
6.94s call     tests/link/c/test_cmodule.py::test_cache_race_condition
5.45s call     tests/compile/test_builders.py::TestOpFromGraph::test_L_op_disconnected_output_grad
4.68s call     tests/test_gradient.py::test_undefined_grad_opt
3.92s call     tests/compile/test_compilelock.py::test_locking_multiprocess_spawn
3.89s call     tests/test_gradient.py::test_subgraph_grad
3.57s call     tests/test_rop.py::TestRopLop::test_join
3.56s call     tests/test_rop.py::TestRopLop::test_alloc
3.46s call     tests/scalar/test_math.py::test_scalarloop_grad_mixed_dtypes[op3-scalar_loop_grads3]
3.33s call     tests/compile/test_debugmode.py::test_debugmode_basic
2.98s call     tests/test_gradient.py::test_jacobian_matrix
2.87s call     tests/graph/test_compute_test_value.py::TestComputeTestValue::test_scan
2.79s call     tests/compile/test_misc.py::test_nnet
2.78s call     tests/test_gradient.py::test_known_grads
2.72s call     tests/test_gradient.py::TestHessianVectorProdudoct::test_rosen
2.63s call     tests/compile/function/test_pfunc.py::TestPfunc::test_shared
2.58s call     tests/compile/function/test_pfunc.py::TestAliasingRules::test_input_aliasing_affecting_inplace_operations
2.51s call     tests/test_breakpoint.py::TestPdbBreakpoint::test_infer_shape
2.34s call     tests/test_gradient.py::TestGrad::test_grad_grad_cubic
2.33s call     tests/scalar/test_basic.py::test_grad_abs
2.31s call     tests/compile/test_builders.py::TestOpFromGraph::test_grad_override[OpFromGraph]
2.23s call     tests/compile/test_profiling.py::TestProfiling::test_profiling
2.22s call     tests/compile/test_monitormode.py::test_not_inplace
2.20s call     tests/compile/test_builders.py::TestOpFromGraph::test_compute_test_value
2.14s call     tests/test_gradient.py::TestZeroGrad::test_grad
2.12s call     tests/test_rop.py::TestRopLop::test_elemwise0
2.12s call     tests/graph/test_compute_test_value.py::TestComputeTestValue::test_empty_elemwise
2.06s call     tests/test_rop.py::TestRopLop::test_flatten
2.04s call     tests/compile/function/test_types.py::TestFunction::test_swap_SharedVariable_with_given
1.98s call     tests/compile/function/test_pfunc.py::TestAliasingRules::test_potential_output_aliasing_induced_by_updates
1.96s call     tests/compile/function/test_function.py::test_function_dump
1.94s call     tests/link/c/test_basic.py::test_shared_input_output
1.94s call     tests/compile/test_debugmode.py::TestViewMap::test_aliased_outputs_bad
1.89s call     tests/compile/test_debugmode.py::TestCheckIsfinite::test_check_isfinite
1.86s call     tests/graph/test_compute_test_value.py::TestComputeTestValue::test_scan_err1
1.85s call     tests/compile/function/test_pfunc.py::TestPfunc::test_shared_mutable
1.83s call     tests/test_gradient.py::test_jacobian_vector
1.83s call     tests/compile/function/test_pfunc.py::TestPfunc::test_doc
1.82s call     tests/test_rop.py::TestRopLop::test_setsubtensor1
1.75s call     tests/test_rop.py::TestRopLop::test_elemwise1
1.73s call     tests/compile/test_builders.py::TestOpFromGraph::test_lop_override[OpFromGraph]
1.69s call     tests/compile/test_builders.py::TestOpFromGraph::test_rop_multiple_outputs[False]
1.67s call     tests/test_rop.py::TestRopLop::test_subtensor
1.66s call     tests/test_rop.py::TestRopLop::test_softmax
1.61s call     tests/compile/test_builders.py::TestOpFromGraph::test_shared_grad[cls_ofg1]
=========================== short test summary info ============================
(19 minutes 46 seconds) tests/tensor --ignore=tests/tensor/conv --ignore=tests/tensor/rewriting --ignore=tests/tensor/test_math.py --ignore=tests/tensor/test_basic.py --ignore=tests/tensor/test_blas.py --ignore=tests/tensor/test_math_scipy.py --ignore=tests/tensor/test_inplace.py --ignore=tests/tensor/test_elemwise.py
============================= slowest 50 durations =============================
40.51s call     tests/tensor/test_subtensor.py::TestSubtensor::test_shape_i_const
27.59s call     tests/tensor/test_blockwise.py::TestCholesky::test_grad
22.16s call     tests/tensor/test_optimize.py::test_minimize_vector_x[Newton-CG]
13.12s call     tests/tensor/test_subtensor.py::TestSubtensor::test_grad_list
10.27s call     tests/tensor/test_extra_ops.py::test_space_ops[start2-stop2-25-True-0-None-geomspace]
10.07s call     tests/tensor/test_casting.py::TestCasting::test_convert_to_complex
9.77s call     tests/tensor/test_optimize.py::test_root_system_of_equations
8.28s call     tests/tensor/test_blockwise.py::test_scan_gradient_core_type
7.99s call     tests/tensor/test_pad.py::test_nd_padding[asymmetric-reflect]
7.84s call     tests/tensor/test_fft.py::TestFFT::test_grad_rfft
7.71s call     tests/tensor/test_blockwise.py::TestSolveVector::test_grad
7.42s call     tests/tensor/test_pad.py::test_nd_padding[symmetric-symmetric]
6.82s call     tests/tensor/test_extra_ops.py::test_space_ops[start2-stop2-25-True-0-None-linspace]
6.80s call     tests/tensor/test_nlinalg.py::TestSvd::test_grad[batched=True-(3,3)-compute_uv=True, full_matrices=False, gradient=U]
6.79s call     tests/tensor/test_extra_ops.py::test_space_ops[1-stop5-30-True-0-None-linspace]
6.70s call     tests/tensor/test_extra_ops.py::test_space_ops[1-stop5-30-True-0-None-geomspace]
6.37s call     tests/tensor/test_einsum.py::test_general_dot
6.20s call     tests/tensor/test_slinalg.py::test_cholesky_grad_indef
6.11s call     tests/tensor/test_blockwise.py::TestMatrixInverse::test_grad
6.06s call     tests/tensor/test_pad.py::test_reflect_pad[even-symmetrical-3d square]
5.91s call     tests/tensor/test_blas_c.py::TestBlasStrides::test_gemm
5.86s call     tests/tensor/test_subtensor.py::TestInferShape::test_IncSubtensor
5.86s call     tests/tensor/test_extra_ops.py::test_space_ops[1-10-50-True-0-None-geomspace]
5.84s call     tests/tensor/test_subtensor.py::TestIncSubtensor::test_grad_inc_set
5.81s call     tests/tensor/random/rewriting/test_basic.py::test_Subtensor_lift[indices2-True-dist_op2-dist_params2-None]
5.77s call     tests/tensor/test_nlinalg.py::test_qr_grad[real-shape=(3, 3), gradient_test_case=Q, mode=reduced]
5.67s call     tests/tensor/test_pad.py::test_nd_padding[symmetric-reflect]
5.43s call     tests/tensor/test_blas_c.py::TestCGemvNoFlags::test_cgemv
5.42s call     tests/tensor/test_fft.py::TestFFT::test_rfft_float
5.17s call     tests/tensor/test_pad.py::test_nd_padding[asymmetric-symmetric]
5.15s call     tests/tensor/test_blockwise.py::TestSolveMatrix::test_grad
5.12s call     tests/tensor/test_extra_ops.py::TestRepeat::test_basic[int8-3]
5.04s call     tests/tensor/test_blas_c.py::TestBlasStridesC::test_gemm
5.00s call     tests/tensor/test_blas_scipy.py::TestBlasStridesScipy::test_gemm
4.95s call     tests/tensor/test_blas_scipy.py::TestBlasStrides::test_gemm
4.94s call     tests/tensor/test_interpolate.py::test_interp
4.91s call     tests/tensor/test_extra_ops.py::TestFillDiagonalOffset::test_gradient[-5]
4.88s call     tests/tensor/test_extra_ops.py::TestCumOp::test_grad
4.73s call     tests/tensor/random/rewriting/test_basic.py::test_Subtensor_lift[indices17-True-dist_op17-dist_params17-None]
4.64s call     tests/tensor/test_einsum.py::test_einsum_signatures[oij,imj,mjkn,lnk,plk->op-True]
4.61s call     tests/tensor/test_sort.py::TestSort::test_grad_negative_axis_4d
4.61s call     tests/tensor/test_shape.py::TestReshape::test_more_shapes
4.60s call     tests/tensor/test_interpolate.py::test_interp_padded
4.60s call     tests/tensor/test_pad.py::test_symmetric_pad[even-symmetrical-3d square]
4.49s call     tests/tensor/test_pad.py::test_reflect_pad[even-asymmetrical_left-3d square]
4.46s call     tests/tensor/test_pad.py::test_reflect_pad[even-asymmetric_right-3d square]
4.45s call     tests/tensor/test_nlinalg.py::TestSvd::test_grad[batched=False-(3,3)-compute_uv=True, full_matrices=False, gradient=U]
4.39s call     tests/tensor/test_extra_ops.py::test_space_ops[1-10-50-True-0-None-linspace]
4.23s call     tests/tensor/test_pad.py::test_nd_padding[symmetric-mean]
4.22s call     tests/tensor/test_extra_ops.py::test_space_ops[start4-stop4-25-False--1-None-linspace]
=========================== short test summary info ============================
(15 minutes 22 seconds) tests/tensor/test_math.py
============================= slowest 50 durations =============================
157.21s call     tests/tensor/test_math.py::TestSumProdReduceDtype::test_reduce_custom_dtype
72.33s call     tests/tensor/test_math.py::TestProdWithoutZerosDtype::test_prod_without_zeros_custom_dtype
30.49s call     tests/tensor/test_math.py::TestProdWithoutZerosDtype::test_prod_without_zeros_custom_acc_dtype
27.37s call     tests/tensor/test_math.py::TestMaxAndArgmax::test_grad
16.61s call     tests/tensor/test_math.py::TestComparison::test_isclose
15.59s call     tests/tensor/test_math.py::test_var
15.46s call     tests/tensor/test_math.py::TestSumProdReduceDtype::test_reduce_default_dtype
14.42s call     tests/tensor/test_math.py::TestTensordot::test_basic
13.80s call     tests/tensor/test_math.py::TestPowBroadcast::test_grad
11.92s call     tests/tensor/test_math.py::TestAddBroadcast::test_good
10.36s call     tests/tensor/test_math.py::TestProd::test_verify_grad
9.48s call     tests/tensor/test_math.py::TestMulBroadcast::test_good
9.13s call     tests/tensor/test_math.py::TestArctan2Broadcast::test_grad
8.72s call     tests/tensor/test_math.py::TestSubBroadcast::test_grad
8.04s call     tests/tensor/test_math.py::TestSubBroadcast::test_good
7.99s call     tests/tensor/test_math.py::TestMinMax::test_grad_min
7.82s call     tests/tensor/test_math.py::TestArctan2Broadcast::test_good
7.59s call     tests/tensor/test_math.py::TestModBroadcast::test_good
7.45s call     tests/tensor/test_math.py::TestProd::test_other_grad_tests
7.35s call     tests/tensor/test_math.py::TestCeilIntDivBroadcast::test_good
7.07s call     tests/tensor/test_math.py::TestMaximumBroadcast::test_grad
6.96s call     tests/tensor/test_math.py::TestMinimumBroadcast::test_grad
6.95s call     tests/tensor/test_math.py::TestProd::test_prod_no_zeros_in_input
6.73s call     tests/tensor/test_math.py::TestTrueDivBroadcast::test_grad
6.65s call     tests/tensor/test_math.py::TestTrueDivBroadcast::test_good
6.59s call     tests/tensor/test_math.py::TestMulBroadcast::test_grad
6.52s call     tests/tensor/test_math.py::TestModBroadcast::test_grad
6.47s call     tests/tensor/test_math.py::TestMinimumBroadcast::test_good
6.44s call     tests/tensor/test_math.py::TestMaximumBroadcast::test_good
6.02s call     tests/tensor/test_math.py::TestClip2::test_clip_repeat_verify_grad
5.57s call     tests/tensor/test_math.py::TestProdWithoutZerosDtype::test_prod_without_zeros_default_acc_dtype
5.43s call     tests/tensor/test_math.py::TestClip1::test_good
5.28s call     tests/tensor/test_math.py::TestArgminArgmax::test_uint
5.27s call     tests/tensor/test_math.py::TestMeanDtype::test_mean_default_dtype
4.78s call     tests/tensor/test_math.py::test_cov
4.69s call     tests/tensor/test_math.py::TestPowBroadcast::test_good
4.28s call     tests/tensor/test_math.py::TestOuter::test_grad
4.18s call     tests/tensor/test_math.py::TestInvBroadcast::test_good
4.13s call     tests/tensor/test_math.py::TestAdd::test_complex_all_ops
4.13s call     tests/tensor/test_math.py::TestSqrBroadcast::test_good
4.08s call     tests/tensor/test_math.py::TestAbsBroadcast::test_good
3.82s call     tests/tensor/test_math.py::TestDivimpl::test_impls
3.81s call     tests/tensor/test_math.py::TestDenseDot::test_good
3.49s call     tests/tensor/test_math.py::TestExp2Broadcast::test_grad
3.37s call     tests/tensor/test_math.py::TestClip2::test_clip_repeat_grad
3.18s call     tests/tensor/test_math.py::TestCosBroadcast::test_good
3.17s call     tests/tensor/test_math.py::TestArctanhBroadcast::test_good
3.16s call     tests/tensor/test_math.py::TestTanhBroadcast::test_good
3.15s call     tests/tensor/test_math.py::TestDeg2radBroadcast::test_good
3.15s call     tests/tensor/test_math.py::TestTanBroadcast::test_good
=========================== short test summary info ============================
(4 minutes 0 seconds) tests/tensor/conv
============================= slowest 50 durations =============================
44.06s call     tests/tensor/conv/test_abstract_conv.py::TestAbstractConvNoOptim::test_all
18.01s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConv3dNoOptim::test_fwd
13.84s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConv3dNoOptim::test_gradweights
12.88s call     tests/tensor/conv/test_abstract_conv.py::TestBilinearUpsampling::test_fractional_bilinear_upsampling
11.06s call     tests/tensor/conv/test_abstract_conv.py::TestUnsharedConv::test_fwd
9.75s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConv3dNoOptim::test_gradinputs
7.13s call     tests/tensor/conv/test_abstract_conv.py::TestBilinearUpsampling::test_fractional_bilinear_upsampling_shape
6.48s call     tests/tensor/conv/test_abstract_conv.py::TestUnsharedConv::test_gradinput
4.38s call     tests/tensor/conv/test_abstract_conv.py::TestBilinearUpsampling::test_bilinear_kernel_2D
3.94s call     tests/tensor/conv/test_abstract_conv.py::TestUnsharedConv::test_gradweight
3.79s call     tests/tensor/conv/test_abstract_conv.py::TestAssertConvShape::test_basic
3.26s 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.05s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConvNoOptim::test_fwd
2.97s call     tests/tensor/conv/test_abstract_conv.py::TestBilinearUpsampling::test_bilinear_upsampling_1D
2.77s call     tests/tensor/conv/test_abstract_conv.py::TestCausalConv::test_interface
2.71s call     tests/tensor/conv/test_abstract_conv.py::TestConvGradInputsShape::test_check_shape
2.50s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConvNoOptim::test_gradinputs
1.87s call     tests/tensor/conv/test_abstract_conv.py::TestAssertShape::test_basic
1.61s call     tests/tensor/conv/test_abstract_conv.py::TestConv2dGrads::test_conv2d_grad_wrt_inputs
1.35s call     tests/tensor/conv/test_abstract_conv.py::TestAssertShape::test_shape_check_conv2d
1.32s call     tests/tensor/conv/test_abstract_conv.py::TestBilinearUpsampling::test_compare_1D_and_2D_upsampling_values
1.30s call     tests/tensor/conv/test_abstract_conv.py::TestConv2dGrads::test_conv2d_grad_wrt_weights
1.29s call     tests/tensor/conv/test_abstract_conv.py::TestAbstractConvNoOptim::test_gradinput_impossible_output_shapes
1.09s call     tests/tensor/conv/test_abstract_conv.py::TestBilinearUpsampling::test_bilinear_upsampling_reshaping
0.95s call     tests/tensor/conv/test_abstract_conv.py::TestAssertShape::test_shape_check_conv3d
0.88s call     tests/tensor/conv/test_abstract_conv.py::TestConv2dTranspose::test_interface
0.50s 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_inputs
0.48s call     tests/tensor/conv/test_abstract_conv.py::TestAssertShape::test_shape_check_conv3d_grad_wrt_weights
0.46s call     tests/tensor/conv/test_abstract_conv.py::TestAssertShape::test_shape_check_conv2d_grad_wrt_weights
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.23s 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.05s 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.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 0 seconds) tests/tensor/test_basic.py tests/tensor/test_inplace.py
============================= slowest 50 durations =============================
65.81s call     tests/tensor/test_basic.py::TestSecondSameRank::test_bad_runtime
65.76s call     tests/tensor/test_basic.py::TestSecondSameRank::test_good
36.42s call     tests/tensor/test_basic.py::TestTriangle::test_tril_triu
20.20s call     tests/tensor/test_basic.py::TestAllocDiag::test_alloc_diag_values
12.54s call     tests/tensor/test_basic.py::TestJoinAndSplit::test_roll
11.41s call     tests/tensor/test_basic.py::TestNdGrid::test_mgrid_numpy_equiv
10.18s call     tests/tensor/test_basic.py::TestSecondBroadcast::test_good
8.15s call     tests/tensor/test_inplace.py::TestAddInplaceBroadcast::test_good
8.12s call     tests/tensor/test_inplace.py::TestSubInplaceBroadcast::test_good
8.10s call     tests/tensor/test_inplace.py::TestMulInplaceBroadcast::test_good
7.03s call     tests/tensor/test_inplace.py::TestModInplaceBroadcast::test_good
7.01s call     tests/tensor/test_inplace.py::TestIntDivInplaceBroadcast::test_good
6.53s call     tests/tensor/test_inplace.py::TestMaximumInplaceBroadcast::test_good
6.51s call     tests/tensor/test_inplace.py::TestMinimumInplaceBroadcast::test_good
5.91s call     tests/tensor/test_basic.py::TestJoinAndSplit::test_stack_hessian
5.52s call     tests/tensor/test_basic.py::TestZerosLikeBroadcast::test_good
4.96s call     tests/tensor/test_basic.py::TestNdGrid::test_mgrid_pytensor_variable_numpy_equiv
4.81s call     tests/tensor/test_basic.py::TestAlloc::test_alloc_constant_folding
4.48s call     tests/tensor/test_inplace.py::TestTrueDivInplaceBroadcast::test_good
4.23s call     tests/tensor/test_inplace.py::TestPowInplaceBroadcast::test_good
4.14s call     tests/tensor/test_basic.py::TestJoinAndSplit::test_broadcastable_flags_many_dims_and_inputs
4.08s call     tests/tensor/test_basic.py::TestAllocBroadcast::test_good
4.04s call     tests/tensor/test_inplace.py::TestNegInplaceBroadcast::test_good
3.99s call     tests/tensor/test_inplace.py::TestSqrInplaceBroadcast::test_good
3.94s call     tests/tensor/test_basic.py::TestSwitchBroadcast::test_grad
3.73s call     tests/tensor/test_inplace.py::TestArctan2InplaceBroadcast::test_good
3.58s call     tests/tensor/test_basic.py::TestInferShape::test_Flatten
3.17s call     tests/tensor/test_inplace.py::TestTruncInplaceBroadcast::test_good
3.17s call     tests/tensor/test_inplace.py::TestAbsInplaceBroadcast::test_good
3.14s call     tests/tensor/test_basic.py::TestSwitchBroadcast::test_good
2.99s call     tests/tensor/test_basic.py::TestAlloc13GradBroadcast::test_grad
2.78s call     tests/tensor/test_basic.py::TestJoinAndSplit::test_join_matrix1[False]
2.59s call     tests/tensor/test_basic.py::TestAllocDimshuffleGradBroadcast::test_grad
2.47s call     tests/tensor/test_basic.py::TestTile::test_tile_grad
2.46s call     tests/tensor/test_basic.py::TestJoinAndSplit::test_broadcastable_flag_assignment_mixed_thisaxes
2.43s call     tests/tensor/test_basic.py::TestARange::test_infer_shape[custom]
2.42s call     tests/tensor/test_basic.py::TestOnesLikeBroadcast::test_good
2.35s call     tests/tensor/test_inplace.py::TestSgnInplaceBroadcast::test_good
2.21s call     tests/tensor/test_inplace.py::TestConjInplaceBroadcast::test_good
2.11s call     tests/tensor/test_basic.py::TestARange::test_grads
2.10s call     tests/tensor/test_basic.py::TestAlloc::test_zeros
2.00s call     tests/tensor/test_basic.py::TestAllocb1GradBroadcast::test_grad
1.98s call     tests/tensor/test_inplace.py::test_XOR_inplace
1.93s call     tests/tensor/test_basic.py::TestAlloc01GradBroadcast::test_grad
1.76s call     tests/tensor/test_basic.py::test_empty
1.62s call     tests/tensor/test_basic.py::TestAllocb4GradBroadcast::test_grad
1.59s call     tests/tensor/test_basic.py::TestTile::test_combined_reps_entries[2]
1.58s call     tests/tensor/test_basic.py::TestExtractDiag::test_grad_3d[1-0-1]
1.54s call     tests/tensor/test_basic.py::TestAllocb3GradBroadcast::test_grad
1.54s call     tests/tensor/test_basic.py::TestExtractDiag::test_grad_3d[0-0-1]
=========================== short test summary info ============================

You can find more information on how to contribute here

Automatically generated by GitHub Action
Latest run date: 2025-06-21
Run logs: 15795553279

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