## Coverage Report

#### Created: 2026-04-17 07:37

next uncovered line (L), next uncovered region (R), next uncovered branch (B)

    /home/liu/actions-runner/_work/ccv/ccv/lib/nnc/ccv_nnc_easy.h

    Line
    Count
    Source
    1
    /**********************************************************
    2
     * C-based/Cached/Core Computer Vision Library
    3
     * Liu Liu, 2010-02-01
    4
     **********************************************************/
    5
    6
    /**********************************************************
    7
     * CCV - Neural Network Collection
    8
     **********************************************************/
    9
    10
    #ifndef GUARD_ccv_nnc_easy_h
    11
    #define GUARD_ccv_nnc_easy_h
    12
    13
    #include "ccv.h"
    14
    #include "ccv_internal.h"
    15
    #include "nnc/ccv_nnc.h"
    16
    #ifdef HAVE_MPS
    17
    #ifdef __APPLE__
    18
    #include "TargetConditionals.h"
    19
    #if !TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR
    20
    #include <mach/mach_vm.h>
    21
    #else
    22
    #define PAGE_SIZE (16384)
    23
    #endif
    24
    #endif
    25
    #endif
    26
    27
    /**
    28
     * Convenience API
    29
     *
    30
     * This header provides convenience APIs for nnc usage. Being convenience API,
    31
     * it is optimized for shorthand coding, and may collide the naming space with
    32
     * others.
    33
     *
    34
     */
    35
    // c99 only, make sure your compiler supports that.
    36
    37
    2
    #define NOOP_GRAPH_WHILE_EXPR (ccv_nnc_graph_while_f)(1)
    38
    1
    #define NOOP_GRAPH_CASE_OF_EXPR (ccv_nnc_graph_case_of_f)(1)
    39
    40
    // This is a better LIST_COUNT macro, it generates a list of 1+1+0+0+0 where it is 1 if the parameter presents, and 0 otherwise.
    41
    // This works better for cases such as LIST_COUNT(1, 2, 3,) where previous macro will get 4 and this one will have correctly
    42
    // computed result.
    43
    6.48M
    #define LIST_COUNT_01(_0,_1,_2,...) _2
    44
    6.48M
    #define LIST_COUNT_E(...) LIST_COUNT_01(_0,##__VA_ARGS__,1,0)
    45
    101k
    #define LIST_COUNT_N(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22,_23,_24,_25,_26,_27,_28,_29,_30,_31,_32,_33,_34,_35,_36,_37,_38,_39,_40,_41,_42,_43,_44,_45,_46,_47,_48,_49,_50,_51,_52,_53,_54,_55,_56,_57,_58,_59,_60,_61,_62,_63,...) (LIST_COUNT_E(_0)+LIST_COUNT_E(_1)+LIST_COUNT_E(_2)+LIST_COUNT_E(_3)+LIST_COUNT_E(_4)+LIST_COUNT_E(_5)+LIST_COUNT_E(_6)+LIST_COUNT_E(_7)+LIST_COUNT_E(_8)+LIST_COUNT_E(_9)+LIST_COUNT_E(_10)+LIST_COUNT_E(_11)+LIST_COUNT_E(_12)+LIST_COUNT_E(_13)+LIST_COUNT_E(_14)+LIST_COUNT_E(_15)+LIST_COUNT_E(_16)+LIST_COUNT_E(_17)+LIST_COUNT_E(_18)+LIST_COUNT_E(_19)+LIST_COUNT_E(_20)+LIST_COUNT_E(_21)+LIST_COUNT_E(_22)+LIST_COUNT_E(_23)+LIST_COUNT_E(_24)+LIST_COUNT_E(_25)+LIST_COUNT_E(_26)+LIST_COUNT_E(_27)+LIST_COUNT_E(_28)+LIST_COUNT_E(_29)+LIST_COUNT_E(_30)+LIST_COUNT_E(_31)+LIST_COUNT_E(_32)+LIST_COUNT_E(_33)+LIST_COUNT_E(_34)+LIST_COUNT_E(_35)+LIST_COUNT_E(_36)+LIST_COUNT_E(_37)+LIST_COUNT_E(_38)+LIST_COUNT_E(_39)+LIST_COUNT_E(_40)+LIST_COUNT_E(_41)+LIST_COUNT_E(_42)+LIST_COUNT_E(_43)+LIST_COUNT_E(_44)+LIST_COUNT_E(_45)+LIST_COUNT_E(_46)+LIST_COUNT_E(_47)+LIST_COUNT_E(_48)+LIST_COUNT_E(_49)+LIST_COUNT_E(_50)+LIST_COUNT_E(_51)+LIST_COUNT_E(_52)+LIST_COUNT_E(_53)+LIST_COUNT_E(_54)+LIST_COUNT_E(_55)+LIST_COUNT_E(_56)+LIST_COUNT_E(_57)+LIST_COUNT_E(_58)+LIST_COUNT_E(_59)+LIST_COUNT_E(_60)+LIST_COUNT_E(_61)+LIST_COUNT_E(_62)+LIST_COUNT_E(_63)-1)
    46
    101k
    #define LIST_COUNT(...) LIST_COUNT_N(_0,##__VA_ARGS__,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,)
    47
    48
    99.5k
    #define LIST_X(_type, ...) (_type []){__VA_ARGS__10}
    49
    50
    #define KV_X_2(_x, _y, ...) {(_x), (_y)}
    51
    #define KV_X_1(_x, ...) {(_x)}
    52
    #define KV_X_SEL(_1, _2, _FX, ...) _FX
    53
    #define KV(...) KV_X_SEL(__VA_ARGS__, KV_X_2, KV_X_1)(__VA_ARGS__)
    54
    55
    170
    #define LIST_SIZEOF_COUNT(_type, ...) (sizeof(LIST_X(_type, __VA_ARGS__)) / sizeof(_type))
    56
    57
    /**
    58
     * @defgroup convenience_api Convenience API
    59
     * @{
    60
     */
    61
    /**
    62
     * Pass a list of tensors to NNC functions that accepts (tensor array, tensor array size).
    63
     * This method effectively gives two parameters as one.
    64
     */
    65
    39.0k
    #define TENSOR_LIST(...) LIST_X(ccv_nnc_tensor_t*, __VA_ARGS__), LIST_COUNT(__VA_ARGS__)
    66
    /**
    67
     * Pass a list of tensor parameters to NNC functions that accepts (parameter array, parameter array size).
    68
     * This method effectively gives two parameters as one.
    69
     */
    70
    76
    #define TENSOR_PARAM_LIST(...) LIST_X(const ccv_nnc_tensor_param_t, __VA_ARGS__), LIST_COUNT(__VA_ARGS__)
    71
    /**
    72
     * This represents a tensor symbol that is empty (tensor = nil)
    73
     */
    74
    88.4k
    #define NO_TENSOR_SYMBOL (const ccv_nnc_tensor_symbol_t){.d = CCV_NNC_NO_TENSOR_SYMBOL}
    75
    /**
    76
     * This represents a graph exec symbol that is empty (exec = nil)
    77
     */
    78
    102
    #define NO_GRAPH_EXEC_SYMBOL (const ccv_nnc_graph_exec_symbol_t){.d = CCV_NNC_NO_GRAPH_EXEC_SYMBOL}
    79
    /**
    80
     * Pass a list of tensor symbols to NNC functions that accepts (tensor symbol array, tensor symbol array size).
    81
     * This method effectively gives two parameters as one.
    82
     */
    83
    7.26k
    #define TENSOR_SYMBOL_LIST(...) LIST_X(const ccv_nnc_tensor_symbol_t, __VA_ARGS__), LIST_COUNT(__VA_ARGS__)
    84
    /**
    85
     * Pass a list of tensor variables to NNC functions that accepts (tensor variable array, tensor variable array size).
    86
     * This method effectively gives two parameters as one.
    87
     */
    88
    46.5k
    #define TENSOR_VARIABLE_LIST(...) LIST_X(ccv_nnc_tensor_variable_t, __VA_ARGS__), LIST_COUNT(__VA_ARGS__)
    89
    /**
    90
     * Pass a list of tensor bindings to NNC functions that accepts (tensor binding array, tensor binding array size).
    91
     * This method effectively gives two parameters as one. Since tensor binding requires two: symbol and a tensor,
    92
     * you should use this like: TENSOR_BIND_MAP(KV(symbol1, tensor1), KV(symbol2, tensor2)).
    93
     */
    94
    38
    #define TENSOR_BIND_MAP(...) LIST_X(const ccv_nnc_tensor_bind_t, __VA_ARGS__), LIST_SIZEOF_COUNT(ccv_nnc_tensor_bind_t, __VA_ARGS__)
    95
    /**
    96
     * Pass a list of tensor symbol pairs to NNC functions that accepts (tensor symbol pair array, tensor symbol pair array size).
    97
     * This method effectively gives two parameters as one. Since tensor symbol pair requires two: source symbol and destination symbol,
    98
     * you should use this like: TENSOR_SYMBOL_MAP(KV(symbol1, symbol2), KV(symbol3, symbol4)).
    99
     */
    100
    54
    #define TENSOR_SYMBOL_MAP(...) LIST_X(const ccv_nnc_tensor_symbol_map_t, __VA_ARGS__), LIST_SIZEOF_COUNT(ccv_nnc_tensor_symbol_map_t, __VA_ARGS__)
    101
    /**
    102
     * Pass a list of execution nodes to NNC functions that accepts (execution node array, execution node array size).
    103
     * This method effectively gives two parameters as one.
    104
     */
    105
    67
    #define GRAPH_EXEC_LIST(...) LIST_X(const ccv_nnc_graph_exec_t, __VA_ARGS__), LIST_COUNT(__VA_ARGS__)
    106
    /**
    107
     * Pass a list of execution node symbols to NNC functions that accepts (execution node symbol array, execution node symbol array size).
    108
     * This method effectively gives two parameters as one.
    109
     */
    110
    119
    #define GRAPH_EXEC_SYMBOL_LIST(...) LIST_X(const ccv_nnc_graph_exec_symbol_t, __VA_ARGS__), LIST_COUNT(__VA_ARGS__)
    111
    /**
    112
     * Pass both default sources and default sources size to function that accepts (sources, source size).
    113
     * @param x A given symbolic graph.
    114
     */
    115
    7.31k
    #define SYMBOLIC_GRAPH_SOURCES(x) ccv_nnc_symbolic_graph_sources(x), ccv_nnc_symbolic_graph_source_size(x)
    116
    /**
    117
     * Pass both default destinations and default destinations size to function that accepts (destinations, destination size).
    118
     * @param x A given symbolic graph.
    119
     */
    120
    7.21k
    #define SYMBOLIC_GRAPH_DESTINATIONS(x) ccv_nnc_symbolic_graph_destinations(x), ccv_nnc_symbolic_graph_destination_size(x)
    121
    /**
    122
     * Pass a list of simplification passes to NNC functions that accepts (pass array, pass array size).
    123
     * This method effectively gives two parameters as one.
    124
     */
    125
    4.62k
    #define SYMBOLIC_GRAPH_PASSES(...) LIST_X(const int, __VA_ARGS__), LIST_COUNT(__VA_ARGS__)
    126
    /**
    127
     * Pass a list of CNNP models to NNC functions that accepts (model array, model array size).
    128
     * This method effectively gives two parameters as one.
    129
     */
    130
    100
    #define MODEL_LIST(...) LIST_X(ccv_cnnp_model_t*, __VA_ARGS__), LIST_COUNT(__VA_ARGS__)
    131
    /**
    132
     * Pass a list of CNNP model IOs to NNC functions that accepts (model IO array, model IO array size).
    133
     * This method effectively gives two parameters as one.
    134
     */
    135
    1.05k
    #define MODEL_IO_LIST(...) LIST_X(const ccv_cnnp_model_io_t, __VA_ARGS__), LIST_COUNT(__VA_ARGS__)
    136
    /**
    137
     * Pass a list of CNNP tensor params to ccv_cnnp_cmd_exec which accepts (tensor params array, tensor params array size).
    138
     * This method effectively gives two parameters as one.
    139
     */
    140
    78
    #define MODEL_CMD_EXEC_IO_MAP(...) LIST_X(const ccv_cnnp_cmd_exec_io_t, __VA_ARGS__), LIST_SIZEOF_COUNT(ccv_cnnp_cmd_exec_io_t, __VA_ARGS__)
    141
    /**
    142
     * Pass a list of CNNP tensor type to ccv_cnnp_cmd_exec which accepts (tensor type array, tensor type array size).
    143
     * This method effectively gives two parameters as one.
    144
     */
    145
    78
    #define MODEL_CMD_EXEC_IO_LIST(...) LIST_X(const int, __VA_ARGS__), LIST_COUNT(__VA_ARGS__)
    146
    /**
    147
     * Pass a list of dataframe column ids to iteration function that accepts (column id array, column id array size).
    148
     * This method effectively gives two parameters as one.
    149
     */
    150
    164
    #define COLUMN_ID_LIST(...) LIST_X(const int, __VA_ARGS__), LIST_COUNT(__VA_ARGS__)
    151
    152
    19.0k
    #define TRAVERSE_FULL 0,0,0,0
    153
    154
    1.35k
    #define ALL_PARAMETERS -1
    155
    156
    // We will support NUMA allocation on CPU in the future. Currently, this is not very meaningful (except enforce no memory reuse between tensors).
    157
    15.5k
    #define CPU_NUMA_TENSOR_NHWC(device_id, dt, ...) ((ccv_nnc_tensor_param_t){.type=(CCV_COMPUTE_DEVICE_##device_id) | CCV_TENSOR_CPU_MEMORY,.format=CCV_TENSOR_FORMAT_NHWC,.datatype=CCV_##dt,.dim={__VA_ARGS__72}})
    158
    577
    #define CPU_NUMA_TENSOR_NCHW(device_id, dt, ...) ((ccv_nnc_tensor_param_t){.type=(CCV_COMPUTE_DEVICE_##device_id) | CCV_TENSOR_CPU_MEMORY,.format=CCV_TENSOR_FORMAT_NCHW,.datatype=CCV_##dt,.dim={__VA_ARGS__}})
    159
    #define CPU_NUMA_TENSOR_CHWN(device_id, dt, ...) ((ccv_nnc_tensor_param_t){.type=(CCV_COMPUTE_DEVICE_##device_id) | CCV_TENSOR_CPU_MEMORY,.format=CCV_TENSOR_FORMAT_CHWN,.datatype=CCV_##dt,.dim={__VA_ARGS__}})
    160
    15.5k
    #define CPU_TENSOR_NHWC(dt, ...) CPU_NUMA_TENSOR_NHWC(ANY, dt, __VA_ARGS__)
    161
    577
    #define CPU_TENSOR_NCHW(dt, ...) CPU_NUMA_TENSOR_NCHW(ANY, dt, __VA_ARGS__)
    162
    #define CPU_TENSOR_CHWN(dt, ...) CPU_NUMA_TENSOR_CHWN(ANY, dt, __VA_ARGS__)
    163
    // This way, we can do error check on the device type :)
    164
    1.51k
    #define GPU_TENSOR_NHWC(device_id, dt, ...) ((ccv_nnc_tensor_param_t){.type=(CCV_COMPUTE_DEVICE_##device_id) | CCV_TENSOR_GPU_MEMORY,.format=CCV_TENSOR_FORMAT_NHWC,.datatype=CCV_##dt,.dim={__VA_ARGS__}})
    165
    494
    #define GPU_TENSOR_NCHW(device_id, dt, ...) ((ccv_nnc_tensor_param_t){.type=(CCV_COMPUTE_DEVICE_##device_id) | CCV_TENSOR_GPU_MEMORY,.format=CCV_TENSOR_FORMAT_NCHW,.datatype=CCV_##dt,.dim={__VA_ARGS__}})
    166
    #define GPU_TENSOR_CHWN(device_id, dt, ...) ((ccv_nnc_tensor_param_t){.type=(CCV_COMPUTE_DEVICE_##device_id) | CCV_TENSOR_GPU_MEMORY,.format=CCV_TENSOR_FORMAT_CHWN,.datatype=CCV_##dt,.dim={__VA_ARGS__}})
    167
    /** @} */
    168
    169
    2.55k
    #define DIM_ALLOC(...) (int [CCV_NNC_MAX_DIM_ALLOC]){__VA_ARGS__}
    170
    171
    456
    #define ESCAPE_X(...) __VA_ARGS__
    172
    13
    #define HINT_X_1(_stride_) ((ccv_nnc_hint_t){.stride={.dim={ESCAPE_X _stride_}}, .border={.begin={0},.end={0}}})
    173
    125
    #define HINT_X_2(_stride_, _border_) ((ccv_nnc_hint_t){.stride={.dim={ESCAPE_X _stride_}}, .border={.begin={ESCAPE_X _border_},.end={ESCAPE_X _border_}}})
    174
    #define HINT_X_3(_stride_, _begin_, _end_) ((ccv_nnc_hint_t){.stride={.dim={ESCAPE_X _stride_}}, .border={.begin={ESCAPE_X _begin_},.end={ESCAPE_X _end_}}})
    175
    138
    #define HINT_X_SEL(_1, _2, _3, _FX, ...) _FX
    176
    /**
    177
     * @ingroup convenience_api
    178
     * Simpler method to create hint.
    179
     * HINT(stride), HINT(stride, border), HINT(stride, border begin, border end)
    180
     */
    181
    138
    #define HINT(...) HINT_X_SEL(__VA_ARGS__, HINT_X_3, HINT_X_2125, HINT_X_113)(__VA_ARGS__)
    182
    183
    static inline size_t ccv_nnc_dimension_count(const int dim[CCV_NNC_MAX_DIM_ALLOC])
    184
    1.12M
    {
    185
    1.12M
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    1.12M
      int i;
    188
    1.12M
      size_t count = dim[0];
    189
    2.25M
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++1.12M)
    190
    1.12M
        count *= dim[i];
    191
    1.12M
      return count;
    192
    1.12M
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: compare.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: compression.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: concat.tests.c:ccv_nnc_dimension_count

    cublas.tests.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    4
    {
    185
    4
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    4
      int i;
    188
    4
      size_t count = dim[0];
    189
    8
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++4)
    190
    4
        count *= dim[i];
    191
    4
      return count;
    192
    4
    }

    cudnn.tests.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    2
    {
    185
    2
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    2
      int i;
    188
    2
      size_t count = dim[0];
    189
    8
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++6)
    190
    6
        count *= dim[i];
    191
    2
      return count;
    192
    2
    }
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_dimension_count

    graph.vgg.d.tests.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    4
    {
    185
    4
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    4
      int i;
    188
    4
      size_t count = dim[0];
    189
    8
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++4)
    190
    4
        count *= dim[i];
    191
    4
      return count;
    192
    4
    }
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: index.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: loss.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: nms.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: pad.tests.c:ccv_nnc_dimension_count

    palettize.tests.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    4
    {
    185
    4
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    4
      int i;
    188
    4
      size_t count = dim[0];
    189
    9
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++5)
    190
    5
        count *= dim[i];
    191
    4
      return count;
    192
    4
    }
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: partition.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: random.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: sort.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: swish.tests.c:ccv_nnc_dimension_count

    symbolic.graph.vgg.d.tests.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    4
    {
    185
    4
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    4
      int i;
    188
    4
      size_t count = dim[0];
    189
    8
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++4)
    190
    4
        count *= dim[i];
    191
    4
      return count;
    192
    4
    }

    tensor.tests.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    1
    {
    185
    1
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    1
      int i;
    188
    1
      size_t count = dim[0];
    189
    3
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++2)
    190
    2
        count *= dim[i];
    191
    1
      return count;
    192
    1
    }
    Unexecuted instantiation: transform.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: attention.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: backward.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: complex.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: custom.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: forward.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: graph.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_dimension_count

    histogram.tests.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    6
    {
    185
    6
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    6
      int i;
    188
    6
      size_t count = dim[0];
    189
    24
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++18)
    190
    18
        count *= dim[i];
    191
    6
      return count;
    192
    6
    }
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: micro.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: numa.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: rand.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: tape.tests.c:ccv_nnc_dimension_count

    tensor.bind.tests.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    2
    {
    185
    2
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    2
      int i;
    188
    2
      size_t count = dim[0];
    189
    3
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++1)
    190
    1
        count *= dim[i];
    191
    2
      return count;
    192
    2
    }
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: while.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_dimension_count

    ccv_nnc_tensor.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    76.9k
    {
    185
    76.9k
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    76.9k
      int i;
    188
    76.9k
      size_t count = dim[0];
    189
    133k
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++56.9k)
    190
    56.9k
        count *= dim[i];
    191
    76.9k
      return count;
    192
    76.9k
    }

    ccv_nnc_tensor_io.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    82
    {
    185
    82
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    82
      int i;
    188
    82
      size_t count = dim[0];
    189
    156
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++74)
    190
    74
        count *= dim[i];
    191
    82
      return count;
    192
    82
    }
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_dimension_count

    ccv_nnc_graph.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    5.80k
    {
    185
    5.80k
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    5.80k
      int i;
    188
    5.80k
      size_t count = dim[0];
    189
    14.7k
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++8.96k)
    190
    8.96k
        count *= dim[i];
    191
    5.80k
      return count;
    192
    5.80k
    }

    ccv_nnc_symbolic_graph.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    4.78k
    {
    185
    4.78k
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    4.78k
      int i;
    188
    4.78k
      size_t count = dim[0];
    189
    6.12k
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++1.34k)
    190
    1.34k
        count *= dim[i];
    191
    4.78k
      return count;
    192
    4.78k
    }
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_dimension_count

    ccv_nnc_symbolic_graph_compile.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    252k
    {
    185
    252k
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    252k
      int i;
    188
    252k
      size_t count = dim[0];
    189
    375k
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++123k)
    190
    123k
        count *= dim[i];
    191
    252k
      return count;
    192
    252k
    }

    ccv_nnc_symbolic_graph_backward.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    4.21k
    {
    185
    4.21k
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    4.21k
      int i;
    188
    4.21k
      size_t count = dim[0];
    189
    4.57k
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++358)
    190
    358
        count *= dim[i];
    191
    4.21k
      return count;
    192
    4.21k
    }
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_dimension_count

    ccv_nnc_tensor_tape.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    22
    {
    185
    22
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    22
      int i;
    188
    22
      size_t count = dim[0];
    189
    22
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++0)
    190
    0
        count *= dim[i];
    191
    22
      return count;
    192
    22
    }
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_dimension_count

    ccv_nnc_dynamic_graph.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    32.7k
    {
    185
    32.7k
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    32.7k
      int i;
    188
    32.7k
      size_t count = dim[0];
    189
    45.8k
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++13.1k)
    190
    13.1k
        count *= dim[i];
    191
    32.7k
      return count;
    192
    32.7k
    }
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_dimension_count

    ccv_cnnp_dataframe_addons.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    335k
    {
    185
    335k
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    335k
      int i;
    188
    335k
      size_t count = dim[0];
    189
    698k
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++362k)
    190
    362k
        count *= dim[i];
    191
    335k
      return count;
    192
    335k
    }
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_dimension_count

    ccv_cnnp_model.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    7.38k
    {
    185
    7.38k
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    7.38k
      int i;
    188
    7.38k
      size_t count = dim[0];
    189
    8.52k
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++1.13k)
    190
    1.13k
        count *= dim[i];
    191
    7.38k
      return count;
    192
    7.38k
    }
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_dimension_count

    ccv_cnnp_model_addons.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    3.25k
    {
    185
    3.25k
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    3.25k
      int i;
    188
    3.25k
      size_t count = dim[0];
    189
    3.74k
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++494)
    190
    494
        count *= dim[i];
    191
    3.25k
      return count;
    192
    3.25k
    }
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_dimension_count

    ccv_nnc_add_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    17.0k
    {
    185
    17.0k
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    17.0k
      int i;
    188
    17.0k
      size_t count = dim[0];
    189
    21.4k
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++4.45k)
    190
    4.45k
        count *= dim[i];
    191
    17.0k
      return count;
    192
    17.0k
    }

    ccv_nnc_mul_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    155
    {
    185
    155
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    155
      int i;
    188
    155
      size_t count = dim[0];
    189
    381
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++226)
    190
    226
        count *= dim[i];
    191
    155
      return count;
    192
    155
    }

    ccv_nnc_cmul_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    9
    {
    185
    9
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    9
      int i;
    188
    9
      size_t count = dim[0];
    189
    15
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++6)
    190
    6
        count *= dim[i];
    191
    9
      return count;
    192
    9
    }

    ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    20
    {
    185
    20
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    20
      int i;
    188
    20
      size_t count = dim[0];
    189
    20
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++0)
    190
    0
        count *= dim[i];
    191
    20
      return count;
    192
    20
    }
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_dimension_count

    ccv_nnc_min_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    6
    {
    185
    6
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    6
      int i;
    188
    6
      size_t count = dim[0];
    189
    16
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++10)
    190
    10
        count *= dim[i];
    191
    6
      return count;
    192
    6
    }

    ccv_nnc_max_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    6
    {
    185
    6
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    6
      int i;
    188
    6
      size_t count = dim[0];
    189
    16
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++10)
    190
    10
        count *= dim[i];
    191
    6
      return count;
    192
    6
    }
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_dimension_count

    ccv_nnc_conv_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    2.22k
    {
    185
    2.22k
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    2.22k
      int i;
    188
    2.22k
      size_t count = dim[0];
    189
    5.55k
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++3.33k)
    190
    3.33k
        count *= dim[i];
    191
    2.22k
      return count;
    192
    2.22k
    }
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_dimension_count

    ccv_nnc_dropout_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    6
    {
    185
    6
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    6
      int i;
    188
    6
      size_t count = dim[0];
    189
    12
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++6)
    190
    6
        count *= dim[i];
    191
    6
      return count;
    192
    6
    }

    ccv_nnc_ew_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    107k
    {
    185
    107k
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    107k
      int i;
    188
    107k
      size_t count = dim[0];
    189
    158k
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++50.6k)
    190
    50.6k
        count *= dim[i];
    191
    107k
      return count;
    192
    107k
    }

    ccv_nnc_gelu_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    317
    {
    185
    317
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    317
      int i;
    188
    317
      size_t count = dim[0];
    189
    329
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++12)
    190
    12
        count *= dim[i];
    191
    317
      return count;
    192
    317
    }
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_dimension_count

    ccv_nnc_histogram_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    22
    {
    185
    22
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    22
      int i;
    188
    22
      size_t count = dim[0];
    189
    26
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++4)
    190
    4
        count *= dim[i];
    191
    22
      return count;
    192
    22
    }
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_dimension_count

    ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    6
    {
    185
    6
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    6
      int i;
    188
    6
      size_t count = dim[0];
    189
    12
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++6)
    190
    6
        count *= dim[i];
    191
    6
      return count;
    192
    6
    }

    ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    20
    {
    185
    20
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    20
      int i;
    188
    20
      size_t count = dim[0];
    189
    24
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++4)
    190
    4
        count *= dim[i];
    191
    20
      return count;
    192
    20
    }

    ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    19
    {
    185
    19
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    19
      int i;
    188
    19
      size_t count = dim[0];
    189
    38
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++19)
    190
    19
        count *= dim[i];
    191
    19
      return count;
    192
    19
    }

    ccv_nnc_mse_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    258
    {
    185
    258
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    258
      int i;
    188
    258
      size_t count = dim[0];
    189
    258
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++0)
    190
    0
        count *= dim[i];
    191
    258
      return count;
    192
    258
    }

    ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    9
    {
    185
    9
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    9
      int i;
    188
    9
      size_t count = dim[0];
    189
    12
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++3)
    190
    3
        count *= dim[i];
    191
    9
      return count;
    192
    9
    }
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_dimension_count

    ccv_nnc_partition_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    51
    {
    185
    51
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    51
      int i;
    188
    51
      size_t count = dim[0];
    189
    96
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++45)
    190
    45
        count *= dim[i];
    191
    51
      return count;
    192
    51
    }
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_dimension_count

    ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    55
    {
    185
    55
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    55
      int i;
    188
    55
      size_t count = dim[0];
    189
    126
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++71)
    190
    71
        count *= dim[i];
    191
    55
      return count;
    192
    55
    }

    ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    1
    {
    185
    1
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    1
      int i;
    188
    1
      size_t count = dim[0];
    189
    1
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++0)
    190
    0
        count *= dim[i];
    191
    1
      return count;
    192
    1
    }
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_dimension_count

    ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    12
    {
    185
    12
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    12
      int i;
    188
    12
      size_t count = dim[0];
    189
    21
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++9)
    190
    9
        count *= dim[i];
    191
    12
      return count;
    192
    12
    }
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_dimension_count

    ccv_nnc_argmax_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    8
    {
    185
    8
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    8
      int i;
    188
    8
      size_t count = dim[0];
    189
    19
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++11)
    190
    11
        count *= dim[i];
    191
    8
      return count;
    192
    8
    }

    ccv_nnc_argmin_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    6
    {
    185
    6
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    6
      int i;
    188
    6
      size_t count = dim[0];
    189
    15
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++9)
    190
    9
        count *= dim[i];
    191
    6
      return count;
    192
    6
    }

    ccv_nnc_relu_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    2.73k
    {
    185
    2.73k
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    2.73k
      int i;
    188
    2.73k
      size_t count = dim[0];
    189
    9.54k
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++6.80k)
    190
    6.80k
        count *= dim[i];
    191
    2.73k
      return count;
    192
    2.73k
    }
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_dimension_count

    ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    3
    {
    185
    3
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    3
      int i;
    188
    3
      size_t count = dim[0];
    189
    3
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++0)
    190
    0
        count *= dim[i];
    191
    3
      return count;
    192
    3
    }
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_dimension_count

    ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    21
    {
    185
    21
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    21
      int i;
    188
    21
      size_t count = dim[0];
    189
    32
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++11)
    190
    11
        count *= dim[i];
    191
    21
      return count;
    192
    21
    }

    ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    12
    {
    185
    12
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    12
      int i;
    188
    12
      size_t count = dim[0];
    189
    16
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++4)
    190
    4
        count *= dim[i];
    191
    12
      return count;
    192
    12
    }

    ccv_nnc_softmax_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    514
    {
    185
    514
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    514
      int i;
    188
    514
      size_t count = dim[0];
    189
    531
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++17)
    190
    17
        count *= dim[i];
    191
    514
      return count;
    192
    514
    }

    ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    939
    {
    185
    939
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    939
      int i;
    188
    939
      size_t count = dim[0];
    189
    1.56k
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++628)
    190
    628
        count *= dim[i];
    191
    939
      return count;
    192
    939
    }

    ccv_nnc_sort_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    60
    {
    185
    60
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    60
      int i;
    188
    60
      size_t count = dim[0];
    189
    96
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++36)
    190
    36
        count *= dim[i];
    191
    60
      return count;
    192
    60
    }

    ccv_nnc_swish_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    14
    {
    185
    14
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    14
      int i;
    188
    14
      size_t count = dim[0];
    189
    22
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++8)
    190
    8
        count *= dim[i];
    191
    14
      return count;
    192
    14
    }

    ccv_nnc_tanh_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    8
    {
    185
    8
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    8
      int i;
    188
    8
      size_t count = dim[0];
    189
    14
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++6)
    190
    6
        count *= dim[i];
    191
    8
      return count;
    192
    8
    }

    ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    6
    {
    185
    6
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    6
      int i;
    188
    6
      size_t count = dim[0];
    189
    6
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++0)
    190
    0
        count *= dim[i];
    191
    6
      return count;
    192
    6
    }
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_dimension_count

    ccv_nnc_util_cpu_ref.c:ccv_nnc_dimension_count

    Line
    Count
    Source
    184
    273k
    {
    185
    273k
      if (dim[0] == 0)
    186
    0
        return 0;
    187
    273k
      int i;
    188
    273k
      size_t count = dim[0];
    189
    765k
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; i++491k)
    190
    491k
        count *= dim[i];
    191
    273k
      return count;
    192
    273k
    }
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_dimension_count
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_dimension_count
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_dimension_count
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_dimension_count
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_dimension_count
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_dimension_count
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_dimension_count
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_dimension_count
    193
    194
    static inline size_t ccv_nnc_dimension_upper_bound(const int dim[CCV_NNC_MAX_DIM_ALLOC], const int stride[CCV_NNC_MAX_DIM_ALLOC])
    195
    177
    {
    196
    177
      if (dim[0] == 0 || stride[0] == 0)
    197
    0
        return 0;
    198
    177
      int i;
    199
    177
      size_t count = 1 + (dim[0] - 1) * stride[0];
    200
    464
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0 && stride[i] > 0287; i++287)
    201
    287
        count += (dim[i] - 1) * stride[i];
    202
    177
      return count;
    203
    177
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: compare.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: compression.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: concat.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: cublas.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: index.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: loss.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: nms.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: pad.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: palettize.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: partition.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: random.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: sort.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: swish.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: tensor.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: transform.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: attention.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: backward.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: complex.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: custom.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: forward.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: graph.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: micro.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: numa.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: rand.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: tape.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: while.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_dimension_upper_bound

    ccv_nnc_tensor.c:ccv_nnc_dimension_upper_bound

    Line
    Count
    Source
    195
    177
    {
    196
    177
      if (dim[0] == 0 || stride[0] == 0)
    197
    0
        return 0;
    198
    177
      int i;
    199
    177
      size_t count = 1 + (dim[0] - 1) * stride[0];
    200
    464
      for (i = 1; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0 && stride[i] > 0287; i++287)
    201
    287
        count += (dim[i] - 1) * stride[i];
    202
    177
      return count;
    203
    177
    }
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_cnnp_model_addons.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_add_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_mul_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_cmul_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_min_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_max_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_ew_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_mse_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_util_cpu_ref.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_dimension_upper_bound
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_dimension_upper_bound
    204
    205
    static inline size_t ccv_nnc_tensor_count(const ccv_nnc_tensor_param_t params)
    206
    1.11M
    {
    207
    1.11M
      return ccv_nnc_dimension_count(params.dim);
    208
    1.11M
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: compare.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: compression.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: concat.tests.c:ccv_nnc_tensor_count

    cublas.tests.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    4
    {
    207
    4
      return ccv_nnc_dimension_count(params.dim);
    208
    4
    }

    cudnn.tests.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    2
    {
    207
    2
      return ccv_nnc_dimension_count(params.dim);
    208
    2
    }
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_tensor_count

    graph.vgg.d.tests.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    4
    {
    207
    4
      return ccv_nnc_dimension_count(params.dim);
    208
    4
    }
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: index.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: loss.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: nms.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: pad.tests.c:ccv_nnc_tensor_count

    palettize.tests.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    4
    {
    207
    4
      return ccv_nnc_dimension_count(params.dim);
    208
    4
    }
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: partition.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: random.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: sort.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: swish.tests.c:ccv_nnc_tensor_count

    symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    4
    {
    207
    4
      return ccv_nnc_dimension_count(params.dim);
    208
    4
    }

    tensor.tests.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    1
    {
    207
    1
      return ccv_nnc_dimension_count(params.dim);
    208
    1
    }
    Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: attention.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: complex.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_tensor_count

    histogram.tests.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    6
    {
    207
    6
      return ccv_nnc_dimension_count(params.dim);
    208
    6
    }
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: micro.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_count

    tensor.bind.tests.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    2
    {
    207
    2
      return ccv_nnc_dimension_count(params.dim);
    208
    2
    }
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_count

    ccv_nnc_tensor.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    76.9k
    {
    207
    76.9k
      return ccv_nnc_dimension_count(params.dim);
    208
    76.9k
    }

    ccv_nnc_tensor_io.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    82
    {
    207
    82
      return ccv_nnc_dimension_count(params.dim);
    208
    82
    }
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_count

    ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    4.78k
    {
    207
    4.78k
      return ccv_nnc_dimension_count(params.dim);
    208
    4.78k
    }
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_count

    ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    252k
    {
    207
    252k
      return ccv_nnc_dimension_count(params.dim);
    208
    252k
    }
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_count

    ccv_nnc_tensor_tape.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    22
    {
    207
    22
      return ccv_nnc_dimension_count(params.dim);
    208
    22
    }
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_tensor_count

    ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    32.7k
    {
    207
    32.7k
      return ccv_nnc_dimension_count(params.dim);
    208
    32.7k
    }
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_count

    ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    335k
    {
    207
    335k
      return ccv_nnc_dimension_count(params.dim);
    208
    335k
    }
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_tensor_count

    ccv_cnnp_model.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    7.38k
    {
    207
    7.38k
      return ccv_nnc_dimension_count(params.dim);
    208
    7.38k
    }
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_count

    ccv_cnnp_model_addons.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    2.18k
    {
    207
    2.18k
      return ccv_nnc_dimension_count(params.dim);
    208
    2.18k
    }
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_count

    ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    17.0k
    {
    207
    17.0k
      return ccv_nnc_dimension_count(params.dim);
    208
    17.0k
    }

    ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    155
    {
    207
    155
      return ccv_nnc_dimension_count(params.dim);
    208
    155
    }

    ccv_nnc_cmul_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    9
    {
    207
    9
      return ccv_nnc_dimension_count(params.dim);
    208
    9
    }

    ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    20
    {
    207
    20
      return ccv_nnc_dimension_count(params.dim);
    208
    20
    }
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_tensor_count

    ccv_nnc_min_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    6
    {
    207
    6
      return ccv_nnc_dimension_count(params.dim);
    208
    6
    }

    ccv_nnc_max_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    6
    {
    207
    6
      return ccv_nnc_dimension_count(params.dim);
    208
    6
    }
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_tensor_count

    ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    2.22k
    {
    207
    2.22k
      return ccv_nnc_dimension_count(params.dim);
    208
    2.22k
    }
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_tensor_count

    ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    6
    {
    207
    6
      return ccv_nnc_dimension_count(params.dim);
    208
    6
    }

    ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    107k
    {
    207
    107k
      return ccv_nnc_dimension_count(params.dim);
    208
    107k
    }

    ccv_nnc_gelu_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    317
    {
    207
    317
      return ccv_nnc_dimension_count(params.dim);
    208
    317
    }
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_tensor_count

    ccv_nnc_histogram_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    22
    {
    207
    22
      return ccv_nnc_dimension_count(params.dim);
    208
    22
    }
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_tensor_count

    ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    6
    {
    207
    6
      return ccv_nnc_dimension_count(params.dim);
    208
    6
    }

    ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    20
    {
    207
    20
      return ccv_nnc_dimension_count(params.dim);
    208
    20
    }

    ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    19
    {
    207
    19
      return ccv_nnc_dimension_count(params.dim);
    208
    19
    }

    ccv_nnc_mse_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    258
    {
    207
    258
      return ccv_nnc_dimension_count(params.dim);
    208
    258
    }

    ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    9
    {
    207
    9
      return ccv_nnc_dimension_count(params.dim);
    208
    9
    }
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_tensor_count

    ccv_nnc_partition_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    51
    {
    207
    51
      return ccv_nnc_dimension_count(params.dim);
    208
    51
    }
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_count

    ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    55
    {
    207
    55
      return ccv_nnc_dimension_count(params.dim);
    208
    55
    }

    ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    1
    {
    207
    1
      return ccv_nnc_dimension_count(params.dim);
    208
    1
    }
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_count

    ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    12
    {
    207
    12
      return ccv_nnc_dimension_count(params.dim);
    208
    12
    }
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_tensor_count

    ccv_nnc_argmax_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    8
    {
    207
    8
      return ccv_nnc_dimension_count(params.dim);
    208
    8
    }

    ccv_nnc_argmin_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    6
    {
    207
    6
      return ccv_nnc_dimension_count(params.dim);
    208
    6
    }

    ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    2.73k
    {
    207
    2.73k
      return ccv_nnc_dimension_count(params.dim);
    208
    2.73k
    }
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_tensor_count

    ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    3
    {
    207
    3
      return ccv_nnc_dimension_count(params.dim);
    208
    3
    }
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_count

    ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    21
    {
    207
    21
      return ccv_nnc_dimension_count(params.dim);
    208
    21
    }

    ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    12
    {
    207
    12
      return ccv_nnc_dimension_count(params.dim);
    208
    12
    }

    ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    514
    {
    207
    514
      return ccv_nnc_dimension_count(params.dim);
    208
    514
    }

    ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    939
    {
    207
    939
      return ccv_nnc_dimension_count(params.dim);
    208
    939
    }

    ccv_nnc_sort_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    60
    {
    207
    60
      return ccv_nnc_dimension_count(params.dim);
    208
    60
    }

    ccv_nnc_swish_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    14
    {
    207
    14
      return ccv_nnc_dimension_count(params.dim);
    208
    14
    }

    ccv_nnc_tanh_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    8
    {
    207
    8
      return ccv_nnc_dimension_count(params.dim);
    208
    8
    }

    ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    6
    {
    207
    6
      return ccv_nnc_dimension_count(params.dim);
    208
    6
    }
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_tensor_count

    ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_count

    Line
    Count
    Source
    206
    273k
    {
    207
    273k
      return ccv_nnc_dimension_count(params.dim);
    208
    273k
    }
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_tensor_count
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_count
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_tensor_count
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_count
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_count
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_count
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_tensor_count
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_tensor_count
    209
    210
    static inline ccv_nnc_tensor_param_t ccv_nnc_tensor_palettize(const ccv_nnc_tensor_param_t params, const int qbits, const int number_in_blocks)
    211
    7
    {
    212
    7
      assert(params.datatype == CCV_16F || params.datatype == CCV_32F || params.datatype == CCV_64F || params.datatype == CCV_16BF);
    213
    7
      ccv_nnc_tensor_param_t new_params = params;
    214
    7
      assert(qbits >= 4 && qbits <= 8);
    215
    7
      new_params.datatype = ((params.datatype >> 12) & 0xff) | CCV_QX | ((qbits << 8) & 0xf00);
    216
    7
      new_params.reserved = number_in_blocks;
    217
    7
      return new_params;
    218
    7
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: compare.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: compression.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: concat.tests.c:ccv_nnc_tensor_palettize

    cublas.tests.c:ccv_nnc_tensor_palettize

    Line
    Count
    Source
    211
    4
    {
    212
    4
      assert(params.datatype == CCV_16F || params.datatype == CCV_32F || params.datatype == CCV_64F || params.datatype == CCV_16BF);
    213
    4
      ccv_nnc_tensor_param_t new_params = params;
    214
    4
      assert(qbits >= 4 && qbits <= 8);
    215
    4
      new_params.datatype = ((params.datatype >> 12) & 0xff) | CCV_QX | ((qbits << 8) & 0xf00);
    216
    4
      new_params.reserved = number_in_blocks;
    217
    4
      return new_params;
    218
    4
    }

    cudnn.tests.c:ccv_nnc_tensor_palettize

    Line
    Count
    Source
    211
    2
    {
    212
    2
      assert(params.datatype == CCV_16F || params.datatype == CCV_32F || params.datatype == CCV_64F || params.datatype == CCV_16BF);
    213
    2
      ccv_nnc_tensor_param_t new_params = params;
    214
    2
      assert(qbits >= 4 && qbits <= 8);
    215
    2
      new_params.datatype = ((params.datatype >> 12) & 0xff) | CCV_QX | ((qbits << 8) & 0xf00);
    216
    2
      new_params.reserved = number_in_blocks;
    217
    2
      return new_params;
    218
    2
    }
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: index.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: loss.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: nms.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: pad.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: palettize.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: partition.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: random.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: sort.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: swish.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_palettize

    tensor.tests.c:ccv_nnc_tensor_palettize

    Line
    Count
    Source
    211
    1
    {
    212
    1
      assert(params.datatype == CCV_16F || params.datatype == CCV_32F || params.datatype == CCV_64F || params.datatype == CCV_16BF);
    213
    1
      ccv_nnc_tensor_param_t new_params = params;
    214
    1
      assert(qbits >= 4 && qbits <= 8);
    215
    1
      new_params.datatype = ((params.datatype >> 12) & 0xff) | CCV_QX | ((qbits << 8) & 0xf00);
    216
    1
      new_params.reserved = number_in_blocks;
    217
    1
      return new_params;
    218
    1
    }
    Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: attention.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: complex.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: micro.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_cnnp_model_addons.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_cmul_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_min_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_max_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_mse_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_tensor_palettize
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_tensor_palettize
    219
    220
    static inline ccv_nnc_tensor_param_t ccv_nnc_tensor_8i_rowwise(const ccv_nnc_tensor_param_t params)
    221
    9
    {
    222
    9
      assert(params.datatype == CCV_16F || params.datatype == CCV_32F || params.datatype == CCV_64F || params.datatype == CCV_16BF);
    223
    9
      ccv_nnc_tensor_param_t new_params = params;
    224
    9
      new_params.datatype = ((params.datatype >> 12) & 0xff) | CCV_QX | CCV_NNC_QX_8I_ROWWISE;
    225
    9
      new_params.reserved = 0;
    226
    9
      return new_params;
    227
    9
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: compare.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: compression.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: concat.tests.c:ccv_nnc_tensor_8i_rowwise

    cublas.tests.c:ccv_nnc_tensor_8i_rowwise

    Line
    Count
    Source
    221
    4
    {
    222
    4
      assert(params.datatype == CCV_16F || params.datatype == CCV_32F || params.datatype == CCV_64F || params.datatype == CCV_16BF);
    223
    4
      ccv_nnc_tensor_param_t new_params = params;
    224
    4
      new_params.datatype = ((params.datatype >> 12) & 0xff) | CCV_QX | CCV_NNC_QX_8I_ROWWISE;
    225
    4
      new_params.reserved = 0;
    226
    4
      return new_params;
    227
    4
    }
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: index.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: loss.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: nms.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: pad.tests.c:ccv_nnc_tensor_8i_rowwise

    palettize.tests.c:ccv_nnc_tensor_8i_rowwise

    Line
    Count
    Source
    221
    5
    {
    222
    5
      assert(params.datatype == CCV_16F || params.datatype == CCV_32F || params.datatype == CCV_64F || params.datatype == CCV_16BF);
    223
    5
      ccv_nnc_tensor_param_t new_params = params;
    224
    5
      new_params.datatype = ((params.datatype >> 12) & 0xff) | CCV_QX | CCV_NNC_QX_8I_ROWWISE;
    225
    5
      new_params.reserved = 0;
    226
    5
      return new_params;
    227
    5
    }
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: partition.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: random.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: sort.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: swish.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: attention.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: complex.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: micro.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_cnnp_model_addons.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_cmul_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_min_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_max_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_mse_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_tensor_8i_rowwise
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_tensor_8i_rowwise
    228
    229
    static inline size_t ccv_nnc_tensor_data_size_without_padding(const ccv_nnc_tensor_param_t params)
    230
    164k
    {
    231
    164k
      const ssize_t count = (ssize_t)ccv_nnc_tensor_count(params);
    232
    164k
      ssize_t data_size;
    233
    164k
      if (CCV_GET_DATA_TYPE(params.datatype) == CCV_QX)
    234
    26
      {
    235
    26
        const int qx_datatype = (params.datatype & 0xff) << 12;
    236
    26
        const int qx_subtype = params.datatype & 0xf00;
    237
    26
        if (qx_subtype >= 0x400 && qx_subtype <= 0x800)
    238
    11
        {
    239
    11
          const int number_in_blocks = params.reserved;
    240
    11
          const int num_blocks = (int)((count + number_in_blocks - 1) / number_in_blocks);
    241
    11
          const int qbits = qx_subtype >> 8;
    242
    11
          assert(qbits >= 4 && qbits <= 8);
    243
    11
          data_size = (ssize_t)(1 << qbits) * CCV_GET_DATA_TYPE_SIZE(qx_datatype) * num_blocks + (count * qbits + 7) / 8;
    244
    15
        } else if (qx_subtype == CCV_NNC_QX_8I_ROWWISE) {
    245
    15
          const int nd = ccv_nnc_tensor_nd(params.dim);
    246
    15
          const int row_length = params.dim[nd - 1];
    247
    15
          assert(row_length > 0);
    248
    15
          assert(count % row_length == 0);
    249
    15
          const ssize_t row_count = count / row_length;
    250
    15
          const ssize_t scale_offset = (count + 127) & -128;
    251
    15
          data_size = scale_offset + row_count * CCV_GET_DATA_TYPE_SIZE(qx_datatype);
    252
    15
        } else {
    253
    0
          assert(0);
    254
    0
          data_size = 0;
    255
    0
        }
    256
    26
      } else
    257
    164k
        data_size = CCV_GET_DATA_TYPE_SIZE(params.datatype) * count;
    258
    164k
      return data_size;
    259
    164k
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: compare.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: compression.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: concat.tests.c:ccv_nnc_tensor_data_size_without_padding

    cublas.tests.c:ccv_nnc_tensor_data_size_without_padding

    Line
    Count
    Source
    230
    4
    {
    231
    4
      const ssize_t count = (ssize_t)ccv_nnc_tensor_count(params);
    232
    4
      ssize_t data_size;
    233
    4
      if (CCV_GET_DATA_TYPE(params.datatype) == CCV_QX)
    234
    4
      {
    235
    4
        const int qx_datatype = (params.datatype & 0xff) << 12;
    236
    4
        const int qx_subtype = params.datatype & 0xf00;
    237
    4
        if (qx_subtype >= 0x400 && qx_subtype <= 0x800)
    238
    2
        {
    239
    2
          const int number_in_blocks = params.reserved;
    240
    2
          const int num_blocks = (int)((count + number_in_blocks - 1) / number_in_blocks);
    241
    2
          const int qbits = qx_subtype >> 8;
    242
    2
          assert(qbits >= 4 && qbits <= 8);
    243
    2
          data_size = (ssize_t)(1 << qbits) * CCV_GET_DATA_TYPE_SIZE(qx_datatype) * num_blocks + (count * qbits + 7) / 8;
    244
    2
        } else if (qx_subtype == CCV_NNC_QX_8I_ROWWISE) {
    245
    2
          const int nd = ccv_nnc_tensor_nd(params.dim);
    246
    2
          const int row_length = params.dim[nd - 1];
    247
    2
          assert(row_length > 0);
    248
    2
          assert(count % row_length == 0);
    249
    2
          const ssize_t row_count = count / row_length;
    250
    2
          const ssize_t scale_offset = (count + 127) & -128;
    251
    2
          data_size = scale_offset + row_count * CCV_GET_DATA_TYPE_SIZE(qx_datatype);
    252
    2
        } else {
    253
    0
          assert(0);
    254
    0
          data_size = 0;
    255
    0
        }
    256
    4
      } else
    257
    0
        data_size = CCV_GET_DATA_TYPE_SIZE(params.datatype) * count;
    258
    4
      return data_size;
    259
    4
    }

    cudnn.tests.c:ccv_nnc_tensor_data_size_without_padding

    Line
    Count
    Source
    230
    1
    {
    231
    1
      const ssize_t count = (ssize_t)ccv_nnc_tensor_count(params);
    232
    1
      ssize_t data_size;
    233
    1
      if (CCV_GET_DATA_TYPE(params.datatype) == CCV_QX)
    234
    1
      {
    235
    1
        const int qx_datatype = (params.datatype & 0xff) << 12;
    236
    1
        const int qx_subtype = params.datatype & 0xf00;
    237
    1
        if (qx_subtype >= 0x400 && qx_subtype <= 0x800)
    238
    1
        {
    239
    1
          const int number_in_blocks = params.reserved;
    240
    1
          const int num_blocks = (int)((count + number_in_blocks - 1) / number_in_blocks);
    241
    1
          const int qbits = qx_subtype >> 8;
    242
    1
          assert(qbits >= 4 && qbits <= 8);
    243
    1
          data_size = (ssize_t)(1 << qbits) * CCV_GET_DATA_TYPE_SIZE(qx_datatype) * num_blocks + (count * qbits + 7) / 8;
    244
    1
        } else if (0qx_subtype == CCV_NNC_QX_8I_ROWWISE0) {
    245
    0
          const int nd = ccv_nnc_tensor_nd(params.dim);
    246
    0
          const int row_length = params.dim[nd - 1];
    247
    0
          assert(row_length > 0);
    248
    0
          assert(count % row_length == 0);
    249
    0
          const ssize_t row_count = count / row_length;
    250
    0
          const ssize_t scale_offset = (count + 127) & -128;
    251
    0
          data_size = scale_offset + row_count * CCV_GET_DATA_TYPE_SIZE(qx_datatype);
    252
    0
        } else {
    253
    0
          assert(0);
    254
    0
          data_size = 0;
    255
    0
        }
    256
    1
      } else
    257
    0
        data_size = CCV_GET_DATA_TYPE_SIZE(params.datatype) * count;
    258
    1
      return data_size;
    259
    1
    }
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: index.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: loss.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: nms.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: pad.tests.c:ccv_nnc_tensor_data_size_without_padding

    palettize.tests.c:ccv_nnc_tensor_data_size_without_padding

    Line
    Count
    Source
    230
    4
    {
    231
    4
      const ssize_t count = (ssize_t)ccv_nnc_tensor_count(params);
    232
    4
      ssize_t data_size;
    233
    4
      if (CCV_GET_DATA_TYPE(params.datatype) == CCV_QX)
    234
    4
      {
    235
    4
        const int qx_datatype = (params.datatype & 0xff) << 12;
    236
    4
        const int qx_subtype = params.datatype & 0xf00;
    237
    4
        if (qx_subtype >= 0x400 && qx_subtype <= 0x800)
    238
    0
        {
    239
    0
          const int number_in_blocks = params.reserved;
    240
    0
          const int num_blocks = (int)((count + number_in_blocks - 1) / number_in_blocks);
    241
    0
          const int qbits = qx_subtype >> 8;
    242
    0
          assert(qbits >= 4 && qbits <= 8);
    243
    0
          data_size = (ssize_t)(1 << qbits) * CCV_GET_DATA_TYPE_SIZE(qx_datatype) * num_blocks + (count * qbits + 7) / 8;
    244
    4
        } else if (qx_subtype == CCV_NNC_QX_8I_ROWWISE) {
    245
    4
          const int nd = ccv_nnc_tensor_nd(params.dim);
    246
    4
          const int row_length = params.dim[nd - 1];
    247
    4
          assert(row_length > 0);
    248
    4
          assert(count % row_length == 0);
    249
    4
          const ssize_t row_count = count / row_length;
    250
    4
          const ssize_t scale_offset = (count + 127) & -128;
    251
    4
          data_size = scale_offset + row_count * CCV_GET_DATA_TYPE_SIZE(qx_datatype);
    252
    4
        } else {
    253
    0
          assert(0);
    254
    0
          data_size = 0;
    255
    0
        }
    256
    4
      } else
    257
    0
        data_size = CCV_GET_DATA_TYPE_SIZE(params.datatype) * count;
    258
    4
      return data_size;
    259
    4
    }
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: partition.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: random.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: sort.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: swish.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_data_size_without_padding

    tensor.tests.c:ccv_nnc_tensor_data_size_without_padding

    Line
    Count
    Source
    230
    1
    {
    231
    1
      const ssize_t count = (ssize_t)ccv_nnc_tensor_count(params);
    232
    1
      ssize_t data_size;
    233
    1
      if (CCV_GET_DATA_TYPE(params.datatype) == CCV_QX)
    234
    1
      {
    235
    1
        const int qx_datatype = (params.datatype & 0xff) << 12;
    236
    1
        const int qx_subtype = params.datatype & 0xf00;
    237
    1
        if (qx_subtype >= 0x400 && qx_subtype <= 0x800)
    238
    1
        {
    239
    1
          const int number_in_blocks = params.reserved;
    240
    1
          const int num_blocks = (int)((count + number_in_blocks - 1) / number_in_blocks);
    241
    1
          const int qbits = qx_subtype >> 8;
    242
    1
          assert(qbits >= 4 && qbits <= 8);
    243
    1
          data_size = (ssize_t)(1 << qbits) * CCV_GET_DATA_TYPE_SIZE(qx_datatype) * num_blocks + (count * qbits + 7) / 8;
    244
    1
        } else if (0qx_subtype == CCV_NNC_QX_8I_ROWWISE0) {
    245
    0
          const int nd = ccv_nnc_tensor_nd(params.dim);
    246
    0
          const int row_length = params.dim[nd - 1];
    247
    0
          assert(row_length > 0);
    248
    0
          assert(count % row_length == 0);
    249
    0
          const ssize_t row_count = count / row_length;
    250
    0
          const ssize_t scale_offset = (count + 127) & -128;
    251
    0
          data_size = scale_offset + row_count * CCV_GET_DATA_TYPE_SIZE(qx_datatype);
    252
    0
        } else {
    253
    0
          assert(0);
    254
    0
          data_size = 0;
    255
    0
        }
    256
    1
      } else
    257
    0
        data_size = CCV_GET_DATA_TYPE_SIZE(params.datatype) * count;
    258
    1
      return data_size;
    259
    1
    }
    Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: attention.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: complex.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: micro.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_data_size_without_padding

    tensor.bind.tests.c:ccv_nnc_tensor_data_size_without_padding

    Line
    Count
    Source
    230
    2
    {
    231
    2
      const ssize_t count = (ssize_t)ccv_nnc_tensor_count(params);
    232
    2
      ssize_t data_size;
    233
    2
      if (CCV_GET_DATA_TYPE(params.datatype) == CCV_QX)
    234
    0
      {
    235
    0
        const int qx_datatype = (params.datatype & 0xff) << 12;
    236
    0
        const int qx_subtype = params.datatype & 0xf00;
    237
    0
        if (qx_subtype >= 0x400 && qx_subtype <= 0x800)
    238
    0
        {
    239
    0
          const int number_in_blocks = params.reserved;
    240
    0
          const int num_blocks = (int)((count + number_in_blocks - 1) / number_in_blocks);
    241
    0
          const int qbits = qx_subtype >> 8;
    242
    0
          assert(qbits >= 4 && qbits <= 8);
    243
    0
          data_size = (ssize_t)(1 << qbits) * CCV_GET_DATA_TYPE_SIZE(qx_datatype) * num_blocks + (count * qbits + 7) / 8;
    244
    0
        } else if (qx_subtype == CCV_NNC_QX_8I_ROWWISE) {
    245
    0
          const int nd = ccv_nnc_tensor_nd(params.dim);
    246
    0
          const int row_length = params.dim[nd - 1];
    247
    0
          assert(row_length > 0);
    248
    0
          assert(count % row_length == 0);
    249
    0
          const ssize_t row_count = count / row_length;
    250
    0
          const ssize_t scale_offset = (count + 127) & -128;
    251
    0
          data_size = scale_offset + row_count * CCV_GET_DATA_TYPE_SIZE(qx_datatype);
    252
    0
        } else {
    253
    0
          assert(0);
    254
    0
          data_size = 0;
    255
    0
        }
    256
    0
      } else
    257
    2
        data_size = CCV_GET_DATA_TYPE_SIZE(params.datatype) * count;
    258
    2
      return data_size;
    259
    2
    }
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_data_size_without_padding

    ccv_nnc_tensor.c:ccv_nnc_tensor_data_size_without_padding

    Line
    Count
    Source
    230
    48.8k
    {
    231
    48.8k
      const ssize_t count = (ssize_t)ccv_nnc_tensor_count(params);
    232
    48.8k
      ssize_t data_size;
    233
    48.8k
      if (CCV_GET_DATA_TYPE(params.datatype) == CCV_QX)
    234
    16
      {
    235
    16
        const int qx_datatype = (params.datatype & 0xff) << 12;
    236
    16
        const int qx_subtype = params.datatype & 0xf00;
    237
    16
        if (qx_subtype >= 0x400 && qx_subtype <= 0x800)
    238
    7
        {
    239
    7
          const int number_in_blocks = params.reserved;
    240
    7
          const int num_blocks = (int)((count + number_in_blocks - 1) / number_in_blocks);
    241
    7
          const int qbits = qx_subtype >> 8;
    242
    7
          assert(qbits >= 4 && qbits <= 8);
    243
    7
          data_size = (ssize_t)(1 << qbits) * CCV_GET_DATA_TYPE_SIZE(qx_datatype) * num_blocks + (count * qbits + 7) / 8;
    244
    9
        } else if (qx_subtype == CCV_NNC_QX_8I_ROWWISE) {
    245
    9
          const int nd = ccv_nnc_tensor_nd(params.dim);
    246
    9
          const int row_length = params.dim[nd - 1];
    247
    9
          assert(row_length > 0);
    248
    9
          assert(count % row_length == 0);
    249
    9
          const ssize_t row_count = count / row_length;
    250
    9
          const ssize_t scale_offset = (count + 127) & -128;
    251
    9
          data_size = scale_offset + row_count * CCV_GET_DATA_TYPE_SIZE(qx_datatype);
    252
    9
        } else {
    253
    0
          assert(0);
    254
    0
          data_size = 0;
    255
    0
        }
    256
    16
      } else
    257
    48.8k
        data_size = CCV_GET_DATA_TYPE_SIZE(params.datatype) * count;
    258
    48.8k
      return data_size;
    259
    48.8k
    }

    ccv_nnc_tensor_io.c:ccv_nnc_tensor_data_size_without_padding

    Line
    Count
    Source
    230
    70
    {
    231
    70
      const ssize_t count = (ssize_t)ccv_nnc_tensor_count(params);
    232
    70
      ssize_t data_size;
    233
    70
      if (CCV_GET_DATA_TYPE(params.datatype) == CCV_QX)
    234
    0
      {
    235
    0
        const int qx_datatype = (params.datatype & 0xff) << 12;
    236
    0
        const int qx_subtype = params.datatype & 0xf00;
    237
    0
        if (qx_subtype >= 0x400 && qx_subtype <= 0x800)
    238
    0
        {
    239
    0
          const int number_in_blocks = params.reserved;
    240
    0
          const int num_blocks = (int)((count + number_in_blocks - 1) / number_in_blocks);
    241
    0
          const int qbits = qx_subtype >> 8;
    242
    0
          assert(qbits >= 4 && qbits <= 8);
    243
    0
          data_size = (ssize_t)(1 << qbits) * CCV_GET_DATA_TYPE_SIZE(qx_datatype) * num_blocks + (count * qbits + 7) / 8;
    244
    0
        } else if (qx_subtype == CCV_NNC_QX_8I_ROWWISE) {
    245
    0
          const int nd = ccv_nnc_tensor_nd(params.dim);
    246
    0
          const int row_length = params.dim[nd - 1];
    247
    0
          assert(row_length > 0);
    248
    0
          assert(count % row_length == 0);
    249
    0
          const ssize_t row_count = count / row_length;
    250
    0
          const ssize_t scale_offset = (count + 127) & -128;
    251
    0
          data_size = scale_offset + row_count * CCV_GET_DATA_TYPE_SIZE(qx_datatype);
    252
    0
        } else {
    253
    0
          assert(0);
    254
    0
          data_size = 0;
    255
    0
        }
    256
    0
      } else
    257
    70
        data_size = CCV_GET_DATA_TYPE_SIZE(params.datatype) * count;
    258
    70
      return data_size;
    259
    70
    }
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_data_size_without_padding

    ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_data_size_without_padding

    Line
    Count
    Source
    230
    84.9k
    {
    231
    84.9k
      const ssize_t count = (ssize_t)ccv_nnc_tensor_count(params);
    232
    84.9k
      ssize_t data_size;
    233
    84.9k
      if (CCV_GET_DATA_TYPE(params.datatype) == CCV_QX)
    234
    0
      {
    235
    0
        const int qx_datatype = (params.datatype & 0xff) << 12;
    236
    0
        const int qx_subtype = params.datatype & 0xf00;
    237
    0
        if (qx_subtype >= 0x400 && qx_subtype <= 0x800)
    238
    0
        {
    239
    0
          const int number_in_blocks = params.reserved;
    240
    0
          const int num_blocks = (int)((count + number_in_blocks - 1) / number_in_blocks);
    241
    0
          const int qbits = qx_subtype >> 8;
    242
    0
          assert(qbits >= 4 && qbits <= 8);
    243
    0
          data_size = (ssize_t)(1 << qbits) * CCV_GET_DATA_TYPE_SIZE(qx_datatype) * num_blocks + (count * qbits + 7) / 8;
    244
    0
        } else if (qx_subtype == CCV_NNC_QX_8I_ROWWISE) {
    245
    0
          const int nd = ccv_nnc_tensor_nd(params.dim);
    246
    0
          const int row_length = params.dim[nd - 1];
    247
    0
          assert(row_length > 0);
    248
    0
          assert(count % row_length == 0);
    249
    0
          const ssize_t row_count = count / row_length;
    250
    0
          const ssize_t scale_offset = (count + 127) & -128;
    251
    0
          data_size = scale_offset + row_count * CCV_GET_DATA_TYPE_SIZE(qx_datatype);
    252
    0
        } else {
    253
    0
          assert(0);
    254
    0
          data_size = 0;
    255
    0
        }
    256
    0
      } else
    257
    84.9k
        data_size = CCV_GET_DATA_TYPE_SIZE(params.datatype) * count;
    258
    84.9k
      return data_size;
    259
    84.9k
    }
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_data_size_without_padding

    ccv_nnc_tensor_tape.c:ccv_nnc_tensor_data_size_without_padding

    Line
    Count
    Source
    230
    22
    {
    231
    22
      const ssize_t count = (ssize_t)ccv_nnc_tensor_count(params);
    232
    22
      ssize_t data_size;
    233
    22
      if (CCV_GET_DATA_TYPE(params.datatype) == CCV_QX)
    234
    0
      {
    235
    0
        const int qx_datatype = (params.datatype & 0xff) << 12;
    236
    0
        const int qx_subtype = params.datatype & 0xf00;
    237
    0
        if (qx_subtype >= 0x400 && qx_subtype <= 0x800)
    238
    0
        {
    239
    0
          const int number_in_blocks = params.reserved;
    240
    0
          const int num_blocks = (int)((count + number_in_blocks - 1) / number_in_blocks);
    241
    0
          const int qbits = qx_subtype >> 8;
    242
    0
          assert(qbits >= 4 && qbits <= 8);
    243
    0
          data_size = (ssize_t)(1 << qbits) * CCV_GET_DATA_TYPE_SIZE(qx_datatype) * num_blocks + (count * qbits + 7) / 8;
    244
    0
        } else if (qx_subtype == CCV_NNC_QX_8I_ROWWISE) {
    245
    0
          const int nd = ccv_nnc_tensor_nd(params.dim);
    246
    0
          const int row_length = params.dim[nd - 1];
    247
    0
          assert(row_length > 0);
    248
    0
          assert(count % row_length == 0);
    249
    0
          const ssize_t row_count = count / row_length;
    250
    0
          const ssize_t scale_offset = (count + 127) & -128;
    251
    0
          data_size = scale_offset + row_count * CCV_GET_DATA_TYPE_SIZE(qx_datatype);
    252
    0
        } else {
    253
    0
          assert(0);
    254
    0
          data_size = 0;
    255
    0
        }
    256
    0
      } else
    257
    22
        data_size = CCV_GET_DATA_TYPE_SIZE(params.datatype) * count;
    258
    22
      return data_size;
    259
    22
    }
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_tensor_data_size_without_padding

    ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_data_size_without_padding

    Line
    Count
    Source
    230
    30.6k
    {
    231
    30.6k
      const ssize_t count = (ssize_t)ccv_nnc_tensor_count(params);
    232
    30.6k
      ssize_t data_size;
    233
    30.6k
      if (CCV_GET_DATA_TYPE(params.datatype) == CCV_QX)
    234
    0
      {
    235
    0
        const int qx_datatype = (params.datatype & 0xff) << 12;
    236
    0
        const int qx_subtype = params.datatype & 0xf00;
    237
    0
        if (qx_subtype >= 0x400 && qx_subtype <= 0x800)
    238
    0
        {
    239
    0
          const int number_in_blocks = params.reserved;
    240
    0
          const int num_blocks = (int)((count + number_in_blocks - 1) / number_in_blocks);
    241
    0
          const int qbits = qx_subtype >> 8;
    242
    0
          assert(qbits >= 4 && qbits <= 8);
    243
    0
          data_size = (ssize_t)(1 << qbits) * CCV_GET_DATA_TYPE_SIZE(qx_datatype) * num_blocks + (count * qbits + 7) / 8;
    244
    0
        } else if (qx_subtype == CCV_NNC_QX_8I_ROWWISE) {
    245
    0
          const int nd = ccv_nnc_tensor_nd(params.dim);
    246
    0
          const int row_length = params.dim[nd - 1];
    247
    0
          assert(row_length > 0);
    248
    0
          assert(count % row_length == 0);
    249
    0
          const ssize_t row_count = count / row_length;
    250
    0
          const ssize_t scale_offset = (count + 127) & -128;
    251
    0
          data_size = scale_offset + row_count * CCV_GET_DATA_TYPE_SIZE(qx_datatype);
    252
    0
        } else {
    253
    0
          assert(0);
    254
    0
          data_size = 0;
    255
    0
        }
    256
    0
      } else
    257
    30.6k
        data_size = CCV_GET_DATA_TYPE_SIZE(params.datatype) * count;
    258
    30.6k
      return data_size;
    259
    30.6k
    }
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_cnnp_model_addons.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_cmul_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_min_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_max_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_mse_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_tensor_data_size_without_padding
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_tensor_data_size_without_padding
    260
    261
    static inline size_t ccv_nnc_tensor_data_size(const ccv_nnc_tensor_param_t params)
    262
    164k
    {
    263
    164k
      ssize_t data_size = ccv_nnc_tensor_data_size_without_padding(params);
    264
    164k
    #ifdef HAVE_CUDA // For CUDA, we align to 128-bytes.
    265
    164k
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    266
    13.1k
        return ((data_size + 127) & -128);
    267
    151k
      else
    268
    #elif defined(HAVE_MPS) // For MPS, we have to align to PAGE_SIZE.
    269
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    270
        return ((data_size + PAGE_SIZE - 1) & -PAGE_SIZE);
    271
      else
    272
    #endif
    273
    151k
      return ((data_size + 63) & -64);
    274
    164k
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: compare.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: compression.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: concat.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: index.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: loss.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: nms.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: pad.tests.c:ccv_nnc_tensor_data_size

    palettize.tests.c:ccv_nnc_tensor_data_size

    Line
    Count
    Source
    262
    1
    {
    263
    1
      ssize_t data_size = ccv_nnc_tensor_data_size_without_padding(params);
    264
    1
    #ifdef HAVE_CUDA // For CUDA, we align to 128-bytes.
    265
    1
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    266
    0
        return ((data_size + 127) & -128);
    267
    1
      else
    268
    #elif defined(HAVE_MPS) // For MPS, we have to align to PAGE_SIZE.
    269
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    270
        return ((data_size + PAGE_SIZE - 1) & -PAGE_SIZE);
    271
      else
    272
    #endif
    273
    1
      return ((data_size + 63) & -64);
    274
    1
    }
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: partition.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: random.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: sort.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: swish.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_data_size

    tensor.tests.c:ccv_nnc_tensor_data_size

    Line
    Count
    Source
    262
    1
    {
    263
    1
      ssize_t data_size = ccv_nnc_tensor_data_size_without_padding(params);
    264
    1
    #ifdef HAVE_CUDA // For CUDA, we align to 128-bytes.
    265
    1
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    266
    0
        return ((data_size + 127) & -128);
    267
    1
      else
    268
    #elif defined(HAVE_MPS) // For MPS, we have to align to PAGE_SIZE.
    269
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    270
        return ((data_size + PAGE_SIZE - 1) & -PAGE_SIZE);
    271
      else
    272
    #endif
    273
    1
      return ((data_size + 63) & -64);
    274
    1
    }
    Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: attention.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: complex.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: micro.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_data_size

    tensor.bind.tests.c:ccv_nnc_tensor_data_size

    Line
    Count
    Source
    262
    2
    {
    263
    2
      ssize_t data_size = ccv_nnc_tensor_data_size_without_padding(params);
    264
    2
    #ifdef HAVE_CUDA // For CUDA, we align to 128-bytes.
    265
    2
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    266
    0
        return ((data_size + 127) & -128);
    267
    2
      else
    268
    #elif defined(HAVE_MPS) // For MPS, we have to align to PAGE_SIZE.
    269
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    270
        return ((data_size + PAGE_SIZE - 1) & -PAGE_SIZE);
    271
      else
    272
    #endif
    273
    2
      return ((data_size + 63) & -64);
    274
    2
    }
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_data_size

    ccv_nnc_tensor.c:ccv_nnc_tensor_data_size

    Line
    Count
    Source
    262
    48.8k
    {
    263
    48.8k
      ssize_t data_size = ccv_nnc_tensor_data_size_without_padding(params);
    264
    48.8k
    #ifdef HAVE_CUDA // For CUDA, we align to 128-bytes.
    265
    48.8k
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    266
    3.92k
        return ((data_size + 127) & -128);
    267
    44.9k
      else
    268
    #elif defined(HAVE_MPS) // For MPS, we have to align to PAGE_SIZE.
    269
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    270
        return ((data_size + PAGE_SIZE - 1) & -PAGE_SIZE);
    271
      else
    272
    #endif
    273
    44.9k
      return ((data_size + 63) & -64);
    274
    48.8k
    }

    ccv_nnc_tensor_io.c:ccv_nnc_tensor_data_size

    Line
    Count
    Source
    262
    40
    {
    263
    40
      ssize_t data_size = ccv_nnc_tensor_data_size_without_padding(params);
    264
    40
    #ifdef HAVE_CUDA // For CUDA, we align to 128-bytes.
    265
    40
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    266
    15
        return ((data_size + 127) & -128);
    267
    25
      else
    268
    #elif defined(HAVE_MPS) // For MPS, we have to align to PAGE_SIZE.
    269
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    270
        return ((data_size + PAGE_SIZE - 1) & -PAGE_SIZE);
    271
      else
    272
    #endif
    273
    25
      return ((data_size + 63) & -64);
    274
    40
    }
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_data_size

    ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_data_size

    Line
    Count
    Source
    262
    84.9k
    {
    263
    84.9k
      ssize_t data_size = ccv_nnc_tensor_data_size_without_padding(params);
    264
    84.9k
    #ifdef HAVE_CUDA // For CUDA, we align to 128-bytes.
    265
    84.9k
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    266
    8.73k
        return ((data_size + 127) & -128);
    267
    76.1k
      else
    268
    #elif defined(HAVE_MPS) // For MPS, we have to align to PAGE_SIZE.
    269
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    270
        return ((data_size + PAGE_SIZE - 1) & -PAGE_SIZE);
    271
      else
    272
    #endif
    273
    76.1k
      return ((data_size + 63) & -64);
    274
    84.9k
    }
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_data_size

    ccv_nnc_tensor_tape.c:ccv_nnc_tensor_data_size

    Line
    Count
    Source
    262
    22
    {
    263
    22
      ssize_t data_size = ccv_nnc_tensor_data_size_without_padding(params);
    264
    22
    #ifdef HAVE_CUDA // For CUDA, we align to 128-bytes.
    265
    22
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    266
    0
        return ((data_size + 127) & -128);
    267
    22
      else
    268
    #elif defined(HAVE_MPS) // For MPS, we have to align to PAGE_SIZE.
    269
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    270
        return ((data_size + PAGE_SIZE - 1) & -PAGE_SIZE);
    271
      else
    272
    #endif
    273
    22
      return ((data_size + 63) & -64);
    274
    22
    }
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_tensor_data_size

    ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_data_size

    Line
    Count
    Source
    262
    30.6k
    {
    263
    30.6k
      ssize_t data_size = ccv_nnc_tensor_data_size_without_padding(params);
    264
    30.6k
    #ifdef HAVE_CUDA // For CUDA, we align to 128-bytes.
    265
    30.6k
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    266
    457
        return ((data_size + 127) & -128);
    267
    30.2k
      else
    268
    #elif defined(HAVE_MPS) // For MPS, we have to align to PAGE_SIZE.
    269
      if (CCV_TENSOR_GET_MEMORY(params.type) == CCV_TENSOR_GPU_MEMORY)
    270
        return ((data_size + PAGE_SIZE - 1) & -PAGE_SIZE);
    271
      else
    272
    #endif
    273
    30.2k
      return ((data_size + 63) & -64);
    274
    30.6k
    }
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_cnnp_model_addons.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_cmul_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_min_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_max_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_mse_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_tensor_data_size
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_tensor_data_size
    275
    276
    static inline void ccv_nnc_tensor_view_get_dim(const ccv_nnc_tensor_view_t* const tv, int dim[CCV_NNC_MAX_DIM_ALLOC])
    277
    203k
    {
    278
    203k
      int x;
    279
    203k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    203k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    717k
      for (x = 0; x < offset; x++513k)
    282
    513k
        dim[x] = 1;
    283
    505k
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++301k)
    284
    301k
        dim[x] = tv->info.dim[x - offset];
    285
    203k
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    203k
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: compare.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: compression.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: concat.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: index.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: loss.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: nms.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: pad.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: palettize.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: partition.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: random.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: sort.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: swish.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: attention.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: complex.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: micro.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_cnnp_model_addons.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_tensor_view_get_dim

    ccv_nnc_adam_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    1.00k
    {
    278
    1.00k
      int x;
    279
    1.00k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    1.00k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    3.02k
      for (x = 0; x < offset; x++2.01k)
    282
    2.01k
        dim[x] = 1;
    283
    3.01k
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++2.00k)
    284
    2.00k
        dim[x] = tv->info.dim[x - offset];
    285
    1.00k
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    1.00k
    }

    ccv_nnc_adamw_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    1.00k
    {
    278
    1.00k
      int x;
    279
    1.00k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    1.00k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    3.02k
      for (x = 0; x < offset; x++2.01k)
    282
    2.01k
        dim[x] = 1;
    283
    3.01k
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++2.00k)
    284
    2.00k
        dim[x] = tv->info.dim[x - offset];
    285
    1.00k
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    1.00k
    }
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_view_get_dim

    ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    52.8k
    {
    278
    52.8k
      int x;
    279
    52.8k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    52.8k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    193k
      for (x = 0; x < offset; x++140k)
    282
    140k
        dim[x] = 1;
    283
    124k
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++71.2k)
    284
    71.2k
        dim[x] = tv->info.dim[x - offset];
    285
    52.8k
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    52.8k
    }

    ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    16.9k
    {
    278
    16.9k
      int x;
    279
    16.9k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    16.9k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    67.4k
      for (x = 0; x < offset; x++50.4k)
    282
    50.4k
        dim[x] = 1;
    283
    34.5k
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++17.5k)
    284
    17.5k
        dim[x] = tv->info.dim[x - offset];
    285
    16.9k
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    16.9k
    }

    ccv_nnc_cmul_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    41
    {
    278
    41
      int x;
    279
    41
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    41
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    115
      for (x = 0; x < offset; x++74)
    282
    74
        dim[x] = 1;
    283
    131
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++90)
    284
    90
        dim[x] = tv->info.dim[x - offset];
    285
    41
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    41
    }
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    ccv_nnc_min_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    9
    {
    278
    9
      int x;
    279
    9
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    9
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    20
      for (x = 0; x < offset; x++11)
    282
    11
        dim[x] = 1;
    283
    34
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++25)
    284
    25
        dim[x] = tv->info.dim[x - offset];
    285
    9
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    9
    }

    ccv_nnc_max_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    9
    {
    278
    9
      int x;
    279
    9
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    9
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    20
      for (x = 0; x < offset; x++11)
    282
    11
        dim[x] = 1;
    283
    34
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++25)
    284
    25
        dim[x] = tv->info.dim[x - offset];
    285
    9
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    9
    }
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    6
    {
    278
    6
      int x;
    279
    6
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    6
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    18
      for (x = 0; x < offset; x++12)
    282
    12
        dim[x] = 1;
    283
    18
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++12)
    284
    12
        dim[x] = tv->info.dim[x - offset];
    285
    6
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    6
    }

    ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    87.4k
    {
    278
    87.4k
      int x;
    279
    87.4k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    87.4k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    309k
      for (x = 0; x < offset; x++222k)
    282
    222k
        dim[x] = 1;
    283
    215k
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++127k)
    284
    127k
        dim[x] = tv->info.dim[x - offset];
    285
    87.4k
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    87.4k
    }
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    6
    {
    278
    6
      int x;
    279
    6
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    6
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    20
      for (x = 0; x < offset; x++14)
    282
    14
        dim[x] = 1;
    283
    16
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++10)
    284
    10
        dim[x] = tv->info.dim[x - offset];
    285
    6
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    6
    }

    ccv_nnc_lamb_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    3
    {
    278
    3
      int x;
    279
    3
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    3
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    12
      for (x = 0; x < offset; x++9)
    282
    9
        dim[x] = 1;
    283
    6
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++3)
    284
    3
        dim[x] = tv->info.dim[x - offset];
    285
    3
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    3
    }
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    24
    {
    278
    24
      int x;
    279
    24
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    24
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    72
      for (x = 0; x < offset; x++48)
    282
    48
        dim[x] = 1;
    283
    72
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++48)
    284
    48
        dim[x] = tv->info.dim[x - offset];
    285
    24
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    24
    }
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    ccv_nnc_mse_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    258
    {
    278
    258
      int x;
    279
    258
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    258
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    1.02k
      for (x = 0; x < offset; x++762)
    282
    762
        dim[x] = 1;
    283
    528
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++270)
    284
    270
        dim[x] = tv->info.dim[x - offset];
    285
    258
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    258
    }

    ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    7
    {
    278
    7
      int x;
    279
    7
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    7
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    21
      for (x = 0; x < offset; x++14)
    282
    14
        dim[x] = 1;
    283
    21
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++14)
    284
    14
        dim[x] = tv->info.dim[x - offset];
    285
    7
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    7
    }
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    54
    {
    278
    54
      int x;
    279
    54
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    54
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    135
      for (x = 0; x < offset; x++81)
    282
    81
        dim[x] = 1;
    283
    189
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++135)
    284
    135
        dim[x] = tv->info.dim[x - offset];
    285
    54
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    54
    }

    ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    45
    {
    278
    45
      int x;
    279
    45
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    45
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    45
      for (x = 0; x < offset; x++0)
    282
    0
        dim[x] = 1;
    283
    225
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++180)
    284
    180
        dim[x] = tv->info.dim[x - offset];
    285
    45
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    45
    }

    ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    73
    {
    278
    73
      int x;
    279
    73
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    73
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    90
      for (x = 0; x < offset; x++17)
    282
    17
        dim[x] = 1;
    283
    348
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++275)
    284
    275
        dim[x] = tv->info.dim[x - offset];
    285
    73
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    73
    }

    ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    40
    {
    278
    40
      int x;
    279
    40
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    40
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    40
      for (x = 0; x < offset; x++0)
    282
    0
        dim[x] = 1;
    283
    200
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++160)
    284
    160
        dim[x] = tv->info.dim[x - offset];
    285
    40
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    40
    }

    ccv_nnc_pad_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    40
    {
    278
    40
      int x;
    279
    40
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    40
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    100
      for (x = 0; x < offset; x++60)
    282
    60
        dim[x] = 1;
    283
    140
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++100)
    284
    100
        dim[x] = tv->info.dim[x - offset];
    285
    40
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    40
    }
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    24.1k
    {
    278
    24.1k
      int x;
    279
    24.1k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    24.1k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    72.3k
      for (x = 0; x < offset; x++48.1k)
    282
    48.1k
        dim[x] = 1;
    283
    72.8k
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++48.6k)
    284
    48.6k
        dim[x] = tv->info.dim[x - offset];
    285
    24.1k
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    24.1k
    }

    ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    12
    {
    278
    12
      int x;
    279
    12
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    12
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    39
      for (x = 0; x < offset; x++27)
    282
    27
        dim[x] = 1;
    283
    33
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++21)
    284
    21
        dim[x] = tv->info.dim[x - offset];
    285
    12
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    12
    }

    ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    10
    {
    278
    10
      int x;
    279
    10
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    10
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    35
      for (x = 0; x < offset; x++25)
    282
    25
        dim[x] = 1;
    283
    25
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++15)
    284
    15
        dim[x] = tv->info.dim[x - offset];
    285
    10
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    10
    }

    ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    6
    {
    278
    6
      int x;
    279
    6
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    6
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    19
      for (x = 0; x < offset; x++13)
    282
    13
        dim[x] = 1;
    283
    17
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++11)
    284
    11
        dim[x] = tv->info.dim[x - offset];
    285
    6
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    6
    }

    ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    32
    {
    278
    32
      int x;
    279
    32
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    32
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    108
      for (x = 0; x < offset; x++76)
    282
    76
        dim[x] = 1;
    283
    84
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++52)
    284
    52
        dim[x] = tv->info.dim[x - offset];
    285
    32
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    32
    }
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    1.00k
    {
    278
    1.00k
      int x;
    279
    1.00k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    1.00k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    3.01k
      for (x = 0; x < offset; x++2.00k)
    282
    2.00k
        dim[x] = 1;
    283
    3.00k
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++2.00k)
    284
    2.00k
        dim[x] = tv->info.dim[x - offset];
    285
    1.00k
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    1.00k
    }
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    48
    {
    278
    48
      int x;
    279
    48
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    48
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    51
      for (x = 0; x < offset; x++3)
    282
    3
        dim[x] = 1;
    283
    237
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++189)
    284
    189
        dim[x] = tv->info.dim[x - offset];
    285
    48
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    48
    }
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    18.3k
    {
    278
    18.3k
      int x;
    279
    18.3k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    18.3k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    62.8k
      for (x = 0; x < offset; x++44.4k)
    282
    44.4k
        dim[x] = 1;
    283
    47.5k
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++29.1k)
    284
    29.1k
        dim[x] = tv->info.dim[x - offset];
    285
    18.3k
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    18.3k
    }
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    28
    {
    278
    28
      int x;
    279
    28
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    28
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    84
      for (x = 0; x < offset; x++56)
    282
    56
        dim[x] = 1;
    283
    84
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++56)
    284
    56
        dim[x] = tv->info.dim[x - offset];
    285
    28
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    28
    }
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    ccv_nnc_upsample_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    38
    {
    278
    38
      int x;
    279
    38
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    38
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    76
      for (x = 0; x < offset; x++38)
    282
    38
        dim[x] = 1;
    283
    152
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++114)
    284
    114
        dim[x] = tv->info.dim[x - offset];
    285
    38
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    38
    }

    ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_view_get_dim

    Line
    Count
    Source
    277
    30
    {
    278
    30
      int x;
    279
    30
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    280
    30
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    281
    74
      for (x = 0; x < offset; x++44)
    282
    44
        dim[x] = 1;
    283
    106
      for (x = offset; x < ccv_max(CCV_NNC_MAX_DIM + 2, nd); x++76)
    284
    76
        dim[x] = tv->info.dim[x - offset];
    285
    30
      dim[ccv_max(CCV_NNC_MAX_DIM + 2, nd)] = 0;
    286
    30
    }
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_tensor_view_get_dim
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_tensor_view_get_dim
    287
    288
    static inline CCV_WARN_UNUSED(int) ccv_nnc_is_tensor_stride_packed(const int stride[CCV_NNC_MAX_DIM_ALLOC], const int dim[CCV_NNC_MAX_DIM_ALLOC])
    289
    5.82k
    {
    290
    5.82k
      const int nd = ccv_nnc_tensor_nd(stride);
    291
    5.82k
      int i;
    292
    5.82k
      int cstride = 1;
    293
    12.9k
      for (i = nd - 1; i >= 0; i--7.08k)
    294
    7.14k
      {
    295
    7.14k
        if (stride[i] != cstride)
    296
    60
          return 0;
    297
    7.08k
        cstride *= dim[i];
    298
    7.08k
      }
    299
    5.76k
      return 1;
    300
    5.82k
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: compare.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: compression.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: concat.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: cublas.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: index.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: loss.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: nms.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: pad.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: palettize.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: partition.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: random.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: sort.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: swish.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: tensor.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: transform.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: attention.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: backward.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: complex.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: custom.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: forward.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: graph.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: micro.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: numa.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: rand.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: tape.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: while.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_is_tensor_stride_packed

    ccv_nnc_symbolic_graph_compile.c:ccv_nnc_is_tensor_stride_packed

    Line
    Count
    Source
    289
    2.66k
    {
    290
    2.66k
      const int nd = ccv_nnc_tensor_nd(stride);
    291
    2.66k
      int i;
    292
    2.66k
      int cstride = 1;
    293
    6.41k
      for (i = nd - 1; i >= 0; i--3.75k)
    294
    3.77k
      {
    295
    3.77k
        if (stride[i] != cstride)
    296
    24
          return 0;
    297
    3.75k
        cstride *= dim[i];
    298
    3.75k
      }
    299
    2.63k
      return 1;
    300
    2.66k
    }

    ccv_nnc_symbolic_graph_backward.c:ccv_nnc_is_tensor_stride_packed

    Line
    Count
    Source
    289
    2.14k
    {
    290
    2.14k
      const int nd = ccv_nnc_tensor_nd(stride);
    291
    2.14k
      int i;
    292
    2.14k
      int cstride = 1;
    293
    4.45k
      for (i = nd - 1; i >= 0; i--2.31k)
    294
    2.34k
      {
    295
    2.34k
        if (stride[i] != cstride)
    296
    27
          return 0;
    297
    2.31k
        cstride *= dim[i];
    298
    2.31k
      }
    299
    2.11k
      return 1;
    300
    2.14k
    }
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_is_tensor_stride_packed

    ccv_nnc_dynamic_graph.c:ccv_nnc_is_tensor_stride_packed

    Line
    Count
    Source
    289
    1.01k
    {
    290
    1.01k
      const int nd = ccv_nnc_tensor_nd(stride);
    291
    1.01k
      int i;
    292
    1.01k
      int cstride = 1;
    293
    2.02k
      for (i = nd - 1; i >= 0; i--1.01k)
    294
    1.01k
      {
    295
    1.01k
        if (stride[i] != cstride)
    296
    6
          return 0;
    297
    1.01k
        cstride *= dim[i];
    298
    1.01k
      }
    299
    1.00k
      return 1;
    300
    1.01k
    }
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_is_tensor_stride_packed

    ccv_cnnp_model_addons.c:ccv_nnc_is_tensor_stride_packed

    Line
    Count
    Source
    289
    5
    {
    290
    5
      const int nd = ccv_nnc_tensor_nd(stride);
    291
    5
      int i;
    292
    5
      int cstride = 1;
    293
    12
      for (i = nd - 1; i >= 0; i--7)
    294
    10
      {
    295
    10
        if (stride[i] != cstride)
    296
    3
          return 0;
    297
    7
        cstride *= dim[i];
    298
    7
      }
    299
    2
      return 1;
    300
    5
    }
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_add_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_mul_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_cmul_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_min_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_max_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_ew_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_mse_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_util_cpu_ref.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_is_tensor_stride_packed
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_is_tensor_stride_packed
    301
    302
    static inline CCV_WARN_UNUSED(int) ccv_nnc_tensor_view_check_dim(const ccv_nnc_tensor_view_t* const tv, const int dim[CCV_NNC_MAX_DIM_ALLOC])
    303
    419k
    {
    304
    419k
      int x;
    305
    419k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    419k
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    1.48M
      for (x = 0; x < offset; x++1.06M)
    308
    1.06M
        if (dim[x] != 1)
    309
    121
          return 0;
    310
    1.03M
      for (x = offset; 419kx < CCV_NNC_MAX_DIM + 2; x++610k)
    311
    611k
        if (dim[x] != tv->info.dim[x - offset])
    312
    60
          return 0;
    313
    419k
      return 1;
    314
    419k
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: compare.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: compression.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: concat.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: index.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: loss.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: nms.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: pad.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: palettize.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: partition.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: random.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: sort.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: swish.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: attention.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: complex.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: micro.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_cnnp_model_addons.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_tensor_view_check_dim

    ccv_nnc_adam_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    6.04k
    {
    304
    6.04k
      int x;
    305
    6.04k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    6.04k
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    18.1k
      for (x = 0; x < offset; x++12.1k)
    308
    12.1k
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    18.0k
      for (x = offset; 6.04kx < CCV_NNC_MAX_DIM + 2; x++12.0k)
    311
    12.0k
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    6.04k
      return 1;
    314
    6.04k
    }

    ccv_nnc_adamw_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    6.04k
    {
    304
    6.04k
      int x;
    305
    6.04k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    6.04k
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    18.1k
      for (x = 0; x < offset; x++12.1k)
    308
    12.1k
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    18.0k
      for (x = offset; 6.04kx < CCV_NNC_MAX_DIM + 2; x++12.0k)
    311
    12.0k
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    6.04k
      return 1;
    314
    6.04k
    }
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_view_check_dim

    ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    58.1k
    {
    304
    58.1k
      int x;
    305
    58.1k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    58.1k
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    213k
      for (x = 0; x < offset; x++155k)
    308
    155k
        if (dim[x] != 1)
    309
    106
          return 0;
    310
    134k
      for (x = offset; 57.9kx < CCV_NNC_MAX_DIM + 2; x++76.2k)
    311
    76.2k
        if (dim[x] != tv->info.dim[x - offset])
    312
    27
          return 0;
    313
    57.9k
      return 1;
    314
    57.9k
    }

    ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    33.6k
    {
    304
    33.6k
      int x;
    305
    33.6k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    33.6k
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    133k
      for (x = 0; x < offset; x++100k)
    308
    100k
        if (dim[x] != 1)
    309
    9
          return 0;
    310
    67.5k
      for (x = offset; 33.5kx < CCV_NNC_MAX_DIM + 2; x++33.9k)
    311
    33.9k
        if (dim[x] != tv->info.dim[x - offset])
    312
    30
          return 0;
    313
    33.5k
      return 1;
    314
    33.5k
    }

    ccv_nnc_cmul_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    46
    {
    304
    46
      int x;
    305
    46
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    46
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    131
      for (x = 0; x < offset; x++85)
    308
    85
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    137
      for (x = offset; 46x < CCV_NNC_MAX_DIM + 2; x++91)
    311
    94
        if (dim[x] != tv->info.dim[x - offset])
    312
    3
          return 0;
    313
    43
      return 1;
    314
    46
    }
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    ccv_nnc_min_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    26
    {
    304
    26
      int x;
    305
    26
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    26
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    58
      for (x = 0; x < offset; x++32)
    308
    32
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    98
      for (x = offset; 26x < CCV_NNC_MAX_DIM + 2; x++72)
    311
    72
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    26
      return 1;
    314
    26
    }

    ccv_nnc_max_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    26
    {
    304
    26
      int x;
    305
    26
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    26
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    58
      for (x = 0; x < offset; x++32)
    308
    32
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    98
      for (x = offset; 26x < CCV_NNC_MAX_DIM + 2; x++72)
    311
    72
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    26
      return 1;
    314
    26
    }
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    6
    {
    304
    6
      int x;
    305
    6
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    6
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    18
      for (x = 0; x < offset; x++12)
    308
    12
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    18
      for (x = offset; 6x < CCV_NNC_MAX_DIM + 2; x++12)
    311
    12
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    6
      return 1;
    314
    6
    }

    ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    234k
    {
    304
    234k
      int x;
    305
    234k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    234k
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    828k
      for (x = 0; x < offset; x++593k)
    308
    593k
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    581k
      for (x = offset; 234kx < CCV_NNC_MAX_DIM + 2; x++346k)
    311
    346k
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    234k
      return 1;
    314
    234k
    }
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    ccv_nnc_lamb_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    18
    {
    304
    18
      int x;
    305
    18
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    18
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    72
      for (x = 0; x < offset; x++54)
    308
    54
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    36
      for (x = offset; 18x < CCV_NNC_MAX_DIM + 2; x++18)
    311
    18
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    18
      return 1;
    314
    18
    }
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    34
    {
    304
    34
      int x;
    305
    34
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    34
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    102
      for (x = 0; x < offset; x++68)
    308
    68
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    102
      for (x = offset; 34x < CCV_NNC_MAX_DIM + 2; x++68)
    311
    68
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    34
      return 1;
    314
    34
    }
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    ccv_nnc_mse_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    389
    {
    304
    389
      int x;
    305
    389
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    389
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    1.53k
      for (x = 0; x < offset; x++1.14k)
    308
    1.14k
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    798
      for (x = offset; 389x < CCV_NNC_MAX_DIM + 2; x++409)
    311
    409
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    389
      return 1;
    314
    389
    }

    ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    10
    {
    304
    10
      int x;
    305
    10
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    10
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    30
      for (x = 0; x < offset; x++20)
    308
    20
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    30
      for (x = offset; 10x < CCV_NNC_MAX_DIM + 2; x++20)
    311
    20
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    10
      return 1;
    314
    10
    }
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    162
    {
    304
    162
      int x;
    305
    162
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    162
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    546
      for (x = 0; x < offset; x++384)
    308
    384
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    426
      for (x = offset; 162x < CCV_NNC_MAX_DIM + 2; x++264)
    311
    264
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    162
      return 1;
    314
    162
    }

    ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    40
    {
    304
    40
      int x;
    305
    40
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    40
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    40
      for (x = 0; x < offset; x++0)
    308
    0
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    200
      for (x = offset; 40x < CCV_NNC_MAX_DIM + 2; x++160)
    311
    160
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    40
      return 1;
    314
    40
    }

    ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    63
    {
    304
    63
      int x;
    305
    63
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    63
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    78
      for (x = 0; x < offset; x++15)
    308
    15
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    300
      for (x = offset; 63x < CCV_NNC_MAX_DIM + 2; x++237)
    311
    237
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    63
      return 1;
    314
    63
    }

    ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    24
    {
    304
    24
      int x;
    305
    24
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    24
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    24
      for (x = 0; x < offset; x++0)
    308
    0
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    120
      for (x = offset; 24x < CCV_NNC_MAX_DIM + 2; x++96)
    311
    96
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    24
      return 1;
    314
    24
    }
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    2
    {
    304
    2
      int x;
    305
    2
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    2
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    8
      for (x = 0; x < offset; x++6)
    308
    6
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    4
      for (x = offset; 2x < CCV_NNC_MAX_DIM + 2; x++2)
    311
    2
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    2
      return 1;
    314
    2
    }
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    6.01k
    {
    304
    6.01k
      int x;
    305
    6.01k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    6.01k
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    18.0k
      for (x = 0; x < offset; x++12.0k)
    308
    12.0k
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    18.0k
      for (x = offset; 6.01kx < CCV_NNC_MAX_DIM + 2; x++12.0k)
    311
    12.0k
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    6.01k
      return 1;
    314
    6.01k
    }
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    73.5k
    {
    304
    73.5k
      int x;
    305
    73.5k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    73.5k
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    251k
      for (x = 0; x < offset; x++177k)
    308
    177k
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    190k
      for (x = offset; 73.5kx < CCV_NNC_MAX_DIM + 2; x++116k)
    311
    116k
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    73.5k
      return 1;
    314
    73.5k
    }
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    56
    {
    304
    56
      int x;
    305
    56
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    56
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    168
      for (x = 0; x < offset; x++112)
    308
    112
        if (dim[x] != 1)
    309
    0
          return 0;
    310
    168
      for (x = offset; 56x < CCV_NNC_MAX_DIM + 2; x++112)
    311
    112
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    56
      return 1;
    314
    56
    }
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_view_check_dim

    Line
    Count
    Source
    303
    30
    {
    304
    30
      int x;
    305
    30
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    306
    30
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    307
    68
      for (x = 0; x < offset; x++38)
    308
    44
        if (dim[x] != 1)
    309
    6
          return 0;
    310
    88
      for (x = offset; 24x < CCV_NNC_MAX_DIM + 2; x++64)
    311
    64
        if (dim[x] != tv->info.dim[x - offset])
    312
    0
          return 0;
    313
    24
      return 1;
    314
    24
    }
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_tensor_view_check_dim
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_tensor_view_check_dim
    315
    316
    static inline void ccv_nnc_tensor_view_get_broadcast_dim(const ccv_nnc_tensor_view_t* const tv, int dim[CCV_NNC_MAX_DIM_ALLOC])
    317
    28.6k
    {
    318
    28.6k
      int x;
    319
    28.6k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    320
    28.6k
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    321
    110k
      for (x = 0; x < offset; x++81.4k)
    322
    81.4k
        dim[x] = ccv_max(1, dim[x]);
    323
    61.9k
      for (x = offset; x < CCV_NNC_MAX_DIM + 2; x++33.2k)
    324
    33.2k
        dim[x] = ccv_max(dim[x], tv->info.dim[x - offset]);
    325
    28.6k
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: compare.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: compression.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: concat.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: index.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: loss.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: nms.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: pad.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: palettize.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: partition.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: random.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: sort.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: swish.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: attention.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: complex.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: micro.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_model_addons.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_view_get_broadcast_dim

    ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim

    Line
    Count
    Source
    317
    11.9k
    {
    318
    11.9k
      int x;
    319
    11.9k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    320
    11.9k
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    321
    43.2k
      for (x = 0; x < offset; x++31.3k)
    322
    31.3k
        dim[x] = ccv_max(1, dim[x]);
    323
    28.3k
      for (x = offset; x < CCV_NNC_MAX_DIM + 2; x++16.4k)
    324
    16.4k
        dim[x] = ccv_max(dim[x], tv->info.dim[x - offset]);
    325
    11.9k
    }

    ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim

    Line
    Count
    Source
    317
    16.7k
    {
    318
    16.7k
      int x;
    319
    16.7k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    320
    16.7k
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    321
    66.7k
      for (x = 0; x < offset; x++50.0k)
    322
    50.0k
        dim[x] = ccv_max(1, dim[x]);
    323
    33.4k
      for (x = offset; x < CCV_NNC_MAX_DIM + 2; x++16.7k)
    324
    16.7k
        dim[x] = ccv_max(dim[x], tv->info.dim[x - offset]);
    325
    16.7k
    }

    ccv_nnc_cmul_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim

    Line
    Count
    Source
    317
    17
    {
    318
    17
      int x;
    319
    17
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    320
    17
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    321
    49
      for (x = 0; x < offset; x++32)
    322
    32
        dim[x] = ccv_max(1, dim[x]);
    323
    53
      for (x = offset; x < CCV_NNC_MAX_DIM + 2; x++36)
    324
    36
        dim[x] = ccv_max(dim[x], tv->info.dim[x - offset]);
    325
    17
    }
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_min_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_max_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_mse_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim

    ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim

    Line
    Count
    Source
    317
    6
    {
    318
    6
      int x;
    319
    6
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    320
    6
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    321
    18
      for (x = 0; x < offset; x++12)
    322
    12
        dim[x] = ccv_max(1, dim[x]);
    323
    18
      for (x = offset; x < CCV_NNC_MAX_DIM + 2; x++12)
    324
    12
        dim[x] = ccv_max(dim[x], tv->info.dim[x - offset]);
    325
    6
    }
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_tensor_view_get_broadcast_dim
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_tensor_view_get_broadcast_dim
    326
    327
    static inline CCV_WARN_UNUSED(int) ccv_nnc_tensor_view_check_broadcast_dim(const ccv_nnc_tensor_view_t* const tv, int dim[CCV_NNC_MAX_DIM_ALLOC])
    328
    50.9k
    {
    329
    50.9k
      int x;
    330
    50.9k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    331
    50.9k
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    332
    117k
      for (x = offset; x < CCV_NNC_MAX_DIM + 2; x++66.4k)
    333
    66.4k
        if (dim[x] != tv->info.dim[x - offset] && tv->info.dim[x - offset] != 112.1k)
    334
    0
          return 0;
    335
    50.9k
      return 1;
    336
    50.9k
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: compare.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: compression.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: concat.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: index.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: loss.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: nms.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: pad.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: palettize.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: partition.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: random.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: sort.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: swish.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: attention.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: complex.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: micro.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_model_addons.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_view_check_broadcast_dim

    ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim

    Line
    Count
    Source
    328
    23.8k
    {
    329
    23.8k
      int x;
    330
    23.8k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    331
    23.8k
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    332
    56.8k
      for (x = offset; x < CCV_NNC_MAX_DIM + 2; x++32.9k)
    333
    32.9k
        if (dim[x] != tv->info.dim[x - offset] && tv->info.dim[x - offset] != 126)
    334
    0
          return 0;
    335
    23.8k
      return 1;
    336
    23.8k
    }

    ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim

    Line
    Count
    Source
    328
    20.9k
    {
    329
    20.9k
      int x;
    330
    20.9k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    331
    20.9k
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    332
    42.0k
      for (x = offset; x < CCV_NNC_MAX_DIM + 2; x++21.0k)
    333
    21.0k
        if (dim[x] != tv->info.dim[x - offset] && tv->info.dim[x - offset] != 136)
    334
    0
          return 0;
    335
    20.9k
      return 1;
    336
    20.9k
    }

    ccv_nnc_cmul_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim

    Line
    Count
    Source
    328
    24
    {
    329
    24
      int x;
    330
    24
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    331
    24
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    332
    78
      for (x = offset; x < CCV_NNC_MAX_DIM + 2; x++54)
    333
    54
        if (dim[x] != tv->info.dim[x - offset] && tv->info.dim[x - offset] != 14)
    334
    0
          return 0;
    335
    24
      return 1;
    336
    24
    }
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_min_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_max_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim

    ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim

    Line
    Count
    Source
    328
    3
    {
    329
    3
      int x;
    330
    3
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    331
    3
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    332
    7
      for (x = offset; x < CCV_NNC_MAX_DIM + 2; x++4)
    333
    4
        if (dim[x] != tv->info.dim[x - offset] && tv->info.dim[x - offset] != 12)
    334
    0
          return 0;
    335
    3
      return 1;
    336
    3
    }
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_mse_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim

    ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim

    Line
    Count
    Source
    328
    6.08k
    {
    329
    6.08k
      int x;
    330
    6.08k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    331
    6.08k
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    332
    18.3k
      for (x = offset; x < CCV_NNC_MAX_DIM + 2; x++12.2k)
    333
    12.2k
        if (dim[x] != tv->info.dim[x - offset] && tv->info.dim[x - offset] != 112.1k)
    334
    0
          return 0;
    335
    6.08k
      return 1;
    336
    6.08k
    }

    ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim

    Line
    Count
    Source
    328
    5
    {
    329
    5
      int x;
    330
    5
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    331
    5
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    332
    13
      for (x = offset; x < CCV_NNC_MAX_DIM + 2; x++8)
    333
    8
        if (dim[x] != tv->info.dim[x - offset] && tv->info.dim[x - offset] != 12)
    334
    0
          return 0;
    335
    5
      return 1;
    336
    5
    }

    ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim

    Line
    Count
    Source
    328
    5
    {
    329
    5
      int x;
    330
    5
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    331
    5
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    332
    12
      for (x = offset; x < CCV_NNC_MAX_DIM + 2; x++7)
    333
    7
        if (dim[x] != tv->info.dim[x - offset] && tv->info.dim[x - offset] != 14)
    334
    0
          return 0;
    335
    5
      return 1;
    336
    5
    }

    ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim

    Line
    Count
    Source
    328
    3
    {
    329
    3
      int x;
    330
    3
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    331
    3
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    332
    8
      for (x = offset; x < CCV_NNC_MAX_DIM + 2; x++5)
    333
    5
        if (dim[x] != tv->info.dim[x - offset] && tv->info.dim[x - offset] != 12)
    334
    0
          return 0;
    335
    3
      return 1;
    336
    3
    }

    ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim

    Line
    Count
    Source
    328
    19
    {
    329
    19
      int x;
    330
    19
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    331
    19
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    332
    47
      for (x = offset; x < CCV_NNC_MAX_DIM + 2; x++28)
    333
    28
        if (dim[x] != tv->info.dim[x - offset] && tv->info.dim[x - offset] != 14)
    334
    0
          return 0;
    335
    19
      return 1;
    336
    19
    }
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim

    ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim

    Line
    Count
    Source
    328
    12
    {
    329
    12
      int x;
    330
    12
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    331
    12
      const int offset = CCV_NNC_MAX_DIM + 2 - nd;
    332
    42
      for (x = offset; x < CCV_NNC_MAX_DIM + 2; x++30)
    333
    30
        if (dim[x] != tv->info.dim[x - offset] && tv->info.dim[x - offset] != 10)
    334
    0
          return 0;
    335
    12
      return 1;
    336
    12
    }
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_tensor_view_check_broadcast_dim
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_tensor_view_check_broadcast_dim
    337
    338
    static inline void ccv_nnc_tensor_view_get_stride(const ccv_nnc_tensor_view_t* const tv, int stride[CCV_NNC_MAX_DIM_ALLOC])
    339
    284k
    {
    340
    284k
      int x;
    341
    284k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    284k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    284k
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    284k
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    48
      {
    346
    146
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++98)
    347
    98
          stride[x] = tv->stride[x - offset];
    348
    142
        for (x = 0; x < offset; x++94)
    349
    94
          stride[x] = stride[offset];
    350
    284k
      } else {
    351
    284k
        int cstride = 1;
    352
    771k
        for (x = ccv_max284k(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--487k)
    353
    487k
        {
    354
    487k
          stride[x] = cstride;
    355
    487k
          cstride *= tv->info.dim[x - offset];
    356
    487k
        }
    357
    932k
        for (x = 0; x < offset; x++648k)
    358
    648k
          stride[x] = cstride;
    359
    284k
      }
    360
    284k
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: compare.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: compression.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: concat.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: index.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: loss.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: nms.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: pad.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: palettize.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: partition.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: random.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: sort.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: swish.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: attention.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: complex.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: micro.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_cnnp_model_addons.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_tensor_view_get_stride

    ccv_nnc_adam_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    7.04k
    {
    340
    7.04k
      int x;
    341
    7.04k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    7.04k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    7.04k
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    7.04k
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    7.04k
      } else {
    351
    7.04k
        int cstride = 1;
    352
    21.0k
        for (x = ccv_max7.04k(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--14.0k)
    353
    14.0k
        {
    354
    14.0k
          stride[x] = cstride;
    355
    14.0k
          cstride *= tv->info.dim[x - offset];
    356
    14.0k
        }
    357
    21.1k
        for (x = 0; x < offset; x++14.1k)
    358
    14.1k
          stride[x] = cstride;
    359
    7.04k
      }
    360
    7.04k
    }

    ccv_nnc_adamw_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    7.04k
    {
    340
    7.04k
      int x;
    341
    7.04k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    7.04k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    7.04k
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    7.04k
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    7.04k
      } else {
    351
    7.04k
        int cstride = 1;
    352
    21.0k
        for (x = ccv_max7.04k(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--14.0k)
    353
    14.0k
        {
    354
    14.0k
          stride[x] = cstride;
    355
    14.0k
          cstride *= tv->info.dim[x - offset];
    356
    14.0k
        }
    357
    21.1k
        for (x = 0; x < offset; x++14.1k)
    358
    14.1k
          stride[x] = cstride;
    359
    7.04k
      }
    360
    7.04k
    }
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_view_get_stride

    ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    12.2k
    {
    340
    12.2k
      int x;
    341
    12.2k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    12.2k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    12.2k
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    12.2k
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    12.2k
      } else {
    351
    12.2k
        int cstride = 1;
    352
    29.4k
        for (x = ccv_max12.2k(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--17.1k)
    353
    17.1k
        {
    354
    17.1k
          stride[x] = cstride;
    355
    17.1k
          cstride *= tv->info.dim[x - offset];
    356
    17.1k
        }
    357
    43.9k
        for (x = 0; x < offset; x++31.7k)
    358
    31.7k
          stride[x] = cstride;
    359
    12.2k
      }
    360
    12.2k
    }

    ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    141
    {
    340
    141
      int x;
    341
    141
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    141
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    141
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    141
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    2
      {
    346
    4
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++2)
    347
    2
          stride[x] = tv->stride[x - offset];
    348
    8
        for (x = 0; x < offset; x++6)
    349
    6
          stride[x] = stride[offset];
    350
    139
      } else {
    351
    139
        int cstride = 1;
    352
    547
        for (x = ccv_max139(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--408)
    353
    408
        {
    354
    408
          stride[x] = cstride;
    355
    408
          cstride *= tv->info.dim[x - offset];
    356
    408
        }
    357
    287
        for (x = 0; x < offset; x++148)
    358
    148
          stride[x] = cstride;
    359
    139
      }
    360
    141
    }

    ccv_nnc_cmul_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    9
    {
    340
    9
      int x;
    341
    9
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    9
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    9
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    9
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    9
      } else {
    351
    9
        int cstride = 1;
    352
    45
        for (x = ccv_max9(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--36)
    353
    36
        {
    354
    36
          stride[x] = cstride;
    355
    36
          cstride *= tv->info.dim[x - offset];
    356
    36
        }
    357
    9
        for (x = 0; x < offset; x++0)
    358
    0
          stride[x] = cstride;
    359
    9
      }
    360
    9
    }
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    ccv_nnc_min_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    12
    {
    340
    12
      int x;
    341
    12
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    12
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    12
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    12
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    6
      {
    346
    24
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++18)
    347
    18
          stride[x] = tv->stride[x - offset];
    348
    12
        for (x = 0; x < offset; x++6)
    349
    6
          stride[x] = stride[offset];
    350
    6
      } else {
    351
    6
        int cstride = 1;
    352
    24
        for (x = ccv_max6(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--18)
    353
    18
        {
    354
    18
          stride[x] = cstride;
    355
    18
          cstride *= tv->info.dim[x - offset];
    356
    18
        }
    357
    12
        for (x = 0; x < offset; x++6)
    358
    6
          stride[x] = cstride;
    359
    6
      }
    360
    12
    }

    ccv_nnc_max_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    12
    {
    340
    12
      int x;
    341
    12
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    12
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    12
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    12
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    6
      {
    346
    24
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++18)
    347
    18
          stride[x] = tv->stride[x - offset];
    348
    12
        for (x = 0; x < offset; x++6)
    349
    6
          stride[x] = stride[offset];
    350
    6
      } else {
    351
    6
        int cstride = 1;
    352
    24
        for (x = ccv_max6(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--18)
    353
    18
        {
    354
    18
          stride[x] = cstride;
    355
    18
          cstride *= tv->info.dim[x - offset];
    356
    18
        }
    357
    12
        for (x = 0; x < offset; x++6)
    358
    6
          stride[x] = cstride;
    359
    6
      }
    360
    12
    }

    ccv_nnc_lssc_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    24
    {
    340
    24
      int x;
    341
    24
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    24
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    24
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    24
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    24
      } else {
    351
    24
        int cstride = 1;
    352
    112
        for (x = ccv_max24(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--88)
    353
    88
        {
    354
    88
          stride[x] = cstride;
    355
    88
          cstride *= tv->info.dim[x - offset];
    356
    88
        }
    357
    32
        for (x = 0; x < offset; x++8)
    358
    8
          stride[x] = cstride;
    359
    24
      }
    360
    24
    }

    ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    4.68k
    {
    340
    4.68k
      int x;
    341
    4.68k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    4.68k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    4.68k
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    4.68k
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    4.68k
      } else {
    351
    4.68k
        int cstride = 1;
    352
    22.1k
        for (x = ccv_max4.68k(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--17.4k)
    353
    17.4k
        {
    354
    17.4k
          stride[x] = cstride;
    355
    17.4k
          cstride *= tv->info.dim[x - offset];
    356
    17.4k
        }
    357
    6.00k
        for (x = 0; x < offset; x++1.32k)
    358
    1.32k
          stride[x] = cstride;
    359
    4.68k
      }
    360
    4.68k
    }
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_view_get_stride

    ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    20
    {
    340
    20
      int x;
    341
    20
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    20
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    20
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    20
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    20
      } else {
    351
    20
        int cstride = 1;
    352
    88
        for (x = ccv_max20(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--68)
    353
    68
        {
    354
    68
          stride[x] = cstride;
    355
    68
          cstride *= tv->info.dim[x - offset];
    356
    68
        }
    357
    32
        for (x = 0; x < offset; x++12)
    358
    12
          stride[x] = cstride;
    359
    20
      }
    360
    20
    }
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    120k
    {
    340
    120k
      int x;
    341
    120k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    120k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    120k
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    120k
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    17
      {
    346
    34
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++17)
    347
    17
          stride[x] = tv->stride[x - offset];
    348
    68
        for (x = 0; x < offset; x++51)
    349
    51
          stride[x] = stride[offset];
    350
    120k
      } else {
    351
    120k
        int cstride = 1;
    352
    304k
        for (x = ccv_max120k(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--183k)
    353
    183k
        {
    354
    183k
          stride[x] = cstride;
    355
    183k
          cstride *= tv->info.dim[x - offset];
    356
    183k
        }
    357
    418k
        for (x = 0; x < offset; x++298k)
    358
    298k
          stride[x] = cstride;
    359
    120k
      }
    360
    120k
    }
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    6
    {
    340
    6
      int x;
    341
    6
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    6
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    6
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    6
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    6
      } else {
    351
    6
        int cstride = 1;
    352
    16
        for (x = ccv_max6(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--10)
    353
    10
        {
    354
    10
          stride[x] = cstride;
    355
    10
          cstride *= tv->info.dim[x - offset];
    356
    10
        }
    357
    20
        for (x = 0; x < offset; x++14)
    358
    14
          stride[x] = cstride;
    359
    6
      }
    360
    6
    }

    ccv_nnc_lamb_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    21
    {
    340
    21
      int x;
    341
    21
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    21
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    21
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    21
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    21
      } else {
    351
    21
        int cstride = 1;
    352
    42
        for (x = ccv_max21(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--21)
    353
    21
        {
    354
    21
          stride[x] = cstride;
    355
    21
          cstride *= tv->info.dim[x - offset];
    356
    21
        }
    357
    84
        for (x = 0; x < offset; x++63)
    358
    63
          stride[x] = cstride;
    359
    21
      }
    360
    21
    }
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    78
    {
    340
    78
      int x;
    341
    78
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    78
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    78
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    78
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    78
      } else {
    351
    78
        int cstride = 1;
    352
    218
        for (x = ccv_max78(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--140)
    353
    140
        {
    354
    140
          stride[x] = cstride;
    355
    140
          cstride *= tv->info.dim[x - offset];
    356
    140
        }
    357
    250
        for (x = 0; x < offset; x++172)
    358
    172
          stride[x] = cstride;
    359
    78
      }
    360
    78
    }
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    ccv_nnc_mse_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    905
    {
    340
    905
      int x;
    341
    905
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    905
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    905
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    905
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    905
      } else {
    351
    905
        int cstride = 1;
    352
    1.84k
        for (x = ccv_max905(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--937)
    353
    937
        {
    354
    937
          stride[x] = cstride;
    355
    937
          cstride *= tv->info.dim[x - offset];
    356
    937
        }
    357
    3.58k
        for (x = 0; x < offset; x++2.68k)
    358
    2.68k
          stride[x] = cstride;
    359
    905
      }
    360
    905
    }

    ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    26
    {
    340
    26
      int x;
    341
    26
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    26
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    26
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    26
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    26
      } else {
    351
    26
        int cstride = 1;
    352
    72
        for (x = ccv_max26(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--46)
    353
    46
        {
    354
    46
          stride[x] = cstride;
    355
    46
          cstride *= tv->info.dim[x - offset];
    356
    46
        }
    357
    84
        for (x = 0; x < offset; x++58)
    358
    58
          stride[x] = cstride;
    359
    26
      }
    360
    26
    }
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    165
    {
    340
    165
      int x;
    341
    165
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    165
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    165
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    165
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    165
      } else {
    351
    165
        int cstride = 1;
    352
    513
        for (x = ccv_max165(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--348)
    353
    348
        {
    354
    348
          stride[x] = cstride;
    355
    348
          cstride *= tv->info.dim[x - offset];
    356
    348
        }
    357
    477
        for (x = 0; x < offset; x++312)
    358
    312
          stride[x] = cstride;
    359
    165
      }
    360
    165
    }

    ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    85
    {
    340
    85
      int x;
    341
    85
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    85
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    85
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    85
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    85
      } else {
    351
    85
        int cstride = 1;
    352
    425
        for (x = ccv_max85(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--340)
    353
    340
        {
    354
    340
          stride[x] = cstride;
    355
    340
          cstride *= tv->info.dim[x - offset];
    356
    340
        }
    357
    85
        for (x = 0; x < offset; x++0)
    358
    0
          stride[x] = cstride;
    359
    85
      }
    360
    85
    }

    ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    136
    {
    340
    136
      int x;
    341
    136
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    136
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    136
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    136
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    136
      } else {
    351
    136
        int cstride = 1;
    352
    648
        for (x = ccv_max136(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--512)
    353
    512
        {
    354
    512
          stride[x] = cstride;
    355
    512
          cstride *= tv->info.dim[x - offset];
    356
    512
        }
    357
    168
        for (x = 0; x < offset; x++32)
    358
    32
          stride[x] = cstride;
    359
    136
      }
    360
    136
    }

    ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    64
    {
    340
    64
      int x;
    341
    64
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    64
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    64
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    64
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    64
      } else {
    351
    64
        int cstride = 1;
    352
    320
        for (x = ccv_max64(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--256)
    353
    256
        {
    354
    256
          stride[x] = cstride;
    355
    256
          cstride *= tv->info.dim[x - offset];
    356
    256
        }
    357
    64
        for (x = 0; x < offset; x++0)
    358
    0
          stride[x] = cstride;
    359
    64
      }
    360
    64
    }

    ccv_nnc_pad_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    40
    {
    340
    40
      int x;
    341
    40
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    40
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    40
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    40
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    40
      } else {
    351
    40
        int cstride = 1;
    352
    140
        for (x = ccv_max40(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--100)
    353
    100
        {
    354
    100
          stride[x] = cstride;
    355
    100
          cstride *= tv->info.dim[x - offset];
    356
    100
        }
    357
    100
        for (x = 0; x < offset; x++60)
    358
    60
          stride[x] = cstride;
    359
    40
      }
    360
    40
    }
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    2.12k
    {
    340
    2.12k
      int x;
    341
    2.12k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    2.12k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    2.12k
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    2.12k
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    2.12k
      } else {
    351
    2.12k
        int cstride = 1;
    352
    10.5k
        for (x = ccv_max2.12k(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--8.46k)
    353
    8.46k
        {
    354
    8.46k
          stride[x] = cstride;
    355
    8.46k
          cstride *= tv->info.dim[x - offset];
    356
    8.46k
        }
    357
    2.17k
        for (x = 0; x < offset; x++46)
    358
    46
          stride[x] = cstride;
    359
    2.12k
      }
    360
    2.12k
    }

    ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    2.73k
    {
    340
    2.73k
      int x;
    341
    2.73k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    2.73k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    2.73k
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    2.73k
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    2.73k
      } else {
    351
    2.73k
        int cstride = 1;
    352
    13.6k
        for (x = ccv_max2.73k(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--10.9k)
    353
    10.9k
        {
    354
    10.9k
          stride[x] = cstride;
    355
    10.9k
          cstride *= tv->info.dim[x - offset];
    356
    10.9k
        }
    357
    2.77k
        for (x = 0; x < offset; x++41)
    358
    41
          stride[x] = cstride;
    359
    2.73k
      }
    360
    2.73k
    }
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    24.1k
    {
    340
    24.1k
      int x;
    341
    24.1k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    24.1k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    24.1k
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    24.1k
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    24.1k
      } else {
    351
    24.1k
        int cstride = 1;
    352
    72.8k
        for (x = ccv_max24.1k(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--48.6k)
    353
    48.6k
        {
    354
    48.6k
          stride[x] = cstride;
    355
    48.6k
          cstride *= tv->info.dim[x - offset];
    356
    48.6k
        }
    357
    72.3k
        for (x = 0; x < offset; x++48.1k)
    358
    48.1k
          stride[x] = cstride;
    359
    24.1k
      }
    360
    24.1k
    }

    ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    12
    {
    340
    12
      int x;
    341
    12
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    12
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    12
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    12
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    12
      } else {
    351
    12
        int cstride = 1;
    352
    33
        for (x = ccv_max12(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--21)
    353
    21
        {
    354
    21
          stride[x] = cstride;
    355
    21
          cstride *= tv->info.dim[x - offset];
    356
    21
        }
    357
    39
        for (x = 0; x < offset; x++27)
    358
    27
          stride[x] = cstride;
    359
    12
      }
    360
    12
    }

    ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    12
    {
    340
    12
      int x;
    341
    12
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    12
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    12
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    12
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    12
      } else {
    351
    12
        int cstride = 1;
    352
    29
        for (x = ccv_max12(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--17)
    353
    17
        {
    354
    17
          stride[x] = cstride;
    355
    17
          cstride *= tv->info.dim[x - offset];
    356
    17
        }
    357
    43
        for (x = 0; x < offset; x++31)
    358
    31
          stride[x] = cstride;
    359
    12
      }
    360
    12
    }

    ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    6
    {
    340
    6
      int x;
    341
    6
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    6
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    6
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    6
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    6
      } else {
    351
    6
        int cstride = 1;
    352
    17
        for (x = ccv_max6(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--11)
    353
    11
        {
    354
    11
          stride[x] = cstride;
    355
    11
          cstride *= tv->info.dim[x - offset];
    356
    11
        }
    357
    19
        for (x = 0; x < offset; x++13)
    358
    13
          stride[x] = cstride;
    359
    6
      }
    360
    6
    }

    ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    32
    {
    340
    32
      int x;
    341
    32
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    32
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    32
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    32
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    32
      } else {
    351
    32
        int cstride = 1;
    352
    84
        for (x = ccv_max32(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--52)
    353
    52
        {
    354
    52
          stride[x] = cstride;
    355
    52
          cstride *= tv->info.dim[x - offset];
    356
    52
        }
    357
    108
        for (x = 0; x < offset; x++76)
    358
    76
          stride[x] = cstride;
    359
    32
      }
    360
    32
    }
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    7.02k
    {
    340
    7.02k
      int x;
    341
    7.02k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    7.02k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    7.02k
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    7.02k
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    7.02k
      } else {
    351
    7.02k
        int cstride = 1;
    352
    21.0k
        for (x = ccv_max7.02k(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--14.0k)
    353
    14.0k
        {
    354
    14.0k
          stride[x] = cstride;
    355
    14.0k
          cstride *= tv->info.dim[x - offset];
    356
    14.0k
        }
    357
    21.0k
        for (x = 0; x < offset; x++14.0k)
    358
    14.0k
          stride[x] = cstride;
    359
    7.02k
      }
    360
    7.02k
    }

    ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    39
    {
    340
    39
      int x;
    341
    39
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    39
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    39
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    39
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    39
      } else {
    351
    39
        int cstride = 1;
    352
    145
        for (x = ccv_max39(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--106)
    353
    106
        {
    354
    106
          stride[x] = cstride;
    355
    106
          cstride *= tv->info.dim[x - offset];
    356
    106
        }
    357
    89
        for (x = 0; x < offset; x++50)
    358
    50
          stride[x] = cstride;
    359
    39
      }
    360
    39
    }

    ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    48
    {
    340
    48
      int x;
    341
    48
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    48
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    48
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    48
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    48
      } else {
    351
    48
        int cstride = 1;
    352
    237
        for (x = ccv_max48(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--189)
    353
    189
        {
    354
    189
          stride[x] = cstride;
    355
    189
          cstride *= tv->info.dim[x - offset];
    356
    189
        }
    357
    51
        for (x = 0; x < offset; x++3)
    358
    3
          stride[x] = cstride;
    359
    48
      }
    360
    48
    }
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    91.9k
    {
    340
    91.9k
      int x;
    341
    91.9k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    91.9k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    91.9k
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    91.9k
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    91.9k
      } else {
    351
    91.9k
        int cstride = 1;
    352
    237k
        for (x = ccv_max91.9k(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--145k)
    353
    145k
        {
    354
    145k
          stride[x] = cstride;
    355
    145k
          cstride *= tv->info.dim[x - offset];
    356
    145k
        }
    357
    314k
        for (x = 0; x < offset; x++222k)
    358
    222k
          stride[x] = cstride;
    359
    91.9k
      }
    360
    91.9k
    }
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    96
    {
    340
    96
      int x;
    341
    96
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    96
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    96
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    96
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    96
      } else {
    351
    96
        int cstride = 1;
    352
    280
        for (x = ccv_max96(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--184)
    353
    184
        {
    354
    184
          stride[x] = cstride;
    355
    184
          cstride *= tv->info.dim[x - offset];
    356
    184
        }
    357
    296
        for (x = 0; x < offset; x++200)
    358
    200
          stride[x] = cstride;
    359
    96
      }
    360
    96
    }
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    ccv_nnc_upsample_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    38
    {
    340
    38
      int x;
    341
    38
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    38
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    38
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    38
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    38
      } else {
    351
    38
        int cstride = 1;
    352
    152
        for (x = ccv_max38(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--114)
    353
    114
        {
    354
    114
          stride[x] = cstride;
    355
    114
          cstride *= tv->info.dim[x - offset];
    356
    114
        }
    357
    76
        for (x = 0; x < offset; x++38)
    358
    38
          stride[x] = cstride;
    359
    38
      }
    360
    38
    }

    ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    82
    {
    340
    82
      int x;
    341
    82
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    82
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    82
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    82
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    17
      {
    346
    60
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++43)
    347
    43
          stride[x] = tv->stride[x - offset];
    348
    42
        for (x = 0; x < offset; x++25)
    349
    25
          stride[x] = stride[offset];
    350
    65
      } else {
    351
    65
        int cstride = 1;
    352
    258
        for (x = ccv_max65(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--193)
    353
    193
        {
    354
    193
          stride[x] = cstride;
    355
    193
          cstride *= tv->info.dim[x - offset];
    356
    193
        }
    357
    132
        for (x = 0; x < offset; x++67)
    358
    67
          stride[x] = cstride;
    359
    65
      }
    360
    82
    }
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_tensor_view_get_stride

    _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    190
    {
    340
    190
      int x;
    341
    190
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    190
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    190
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    190
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    190
      } else {
    351
    190
        int cstride = 1;
    352
    760
        for (x = ccv_max190(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--570)
    353
    570
        {
    354
    570
          stride[x] = cstride;
    355
    570
          cstride *= tv->info.dim[x - offset];
    356
    570
        }
    357
    380
        for (x = 0; x < offset; x++190)
    358
    190
          stride[x] = cstride;
    359
    190
      }
    360
    190
    }
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_view_get_stride

    _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_view_get_stride

    Line
    Count
    Source
    339
    2.23k
    {
    340
    2.23k
      int x;
    341
    2.23k
      const int nd = ccv_nnc_tensor_nd(tv->info.dim);
    342
    2.23k
      const int offset = ccv_max(CCV_NNC_MAX_DIM + 2 - nd, 0);
    343
    2.23k
      stride[ccv_max(nd, CCV_NNC_MAX_DIM + 2)] = 0;
    344
    2.23k
      if (CCV_IS_TENSOR_VIEW(tv))
    345
    0
      {
    346
    0
        for (x = offset; x < ccv_max(nd, CCV_NNC_MAX_DIM + 2); x++)
    347
    0
          stride[x] = tv->stride[x - offset];
    348
    0
        for (x = 0; x < offset; x++)
    349
    0
          stride[x] = stride[offset];
    350
    2.23k
      } else {
    351
    2.23k
        int cstride = 1;
    352
    10.9k
        for (x = ccv_max2.23k(CCV_NNC_MAX_DIM + 1, nd - 1); x >= offset; x--8.67k)
    353
    8.67k
        {
    354
    8.67k
          stride[x] = cstride;
    355
    8.67k
          cstride *= tv->info.dim[x - offset];
    356
    8.67k
        }
    357
    2.50k
        for (x = 0; x < offset; x++266)
    358
    266
          stride[x] = cstride;
    359
    2.23k
      }
    360
    2.23k
    }
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_tensor_view_get_stride
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_tensor_view_get_stride
    361
    362
    static inline int ccv_nnc_tensor_get_n(const ccv_nnc_tensor_param_t params)
    363
    4.48k
    {
    364
    4.48k
      switch (params.format)
    365
    4.48k
      {
    366
    290
        case CCV_TENSOR_FORMAT_NHWC:
    367
    4.48k
        case CCV_TENSOR_FORMAT_NCHW:
    368
    4.48k
          if (ccv_nnc_tensor_nd(params.dim) == CCV_NNC_MAX_DIM + 1)
    369
    75
            return 1;
    370
    4.40k
          else
    371
    4.40k
            return params.dim[0];
    372
    0
        case CCV_TENSOR_FORMAT_CHWN:
    373
    0
          return params.dim[CCV_NNC_MAX_DIM + 1];
    374
    4.48k
      }
    375
    0
      return 0;
    376
    4.48k
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: compare.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: compression.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: concat.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: index.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: loss.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: nms.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: pad.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: palettize.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: partition.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: random.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: sort.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: swish.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: attention.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: complex.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: micro.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_get_n

    ccv_cnnp_model_addons.c:ccv_nnc_tensor_get_n

    Line
    Count
    Source
    363
    46
    {
    364
    46
      switch (params.format)
    365
    46
      {
    366
    16
        case CCV_TENSOR_FORMAT_NHWC:
    367
    46
        case CCV_TENSOR_FORMAT_NCHW:
    368
    46
          if (ccv_nnc_tensor_nd(params.dim) == CCV_NNC_MAX_DIM + 1)
    369
    0
            return 1;
    370
    46
          else
    371
    46
            return params.dim[0];
    372
    0
        case CCV_TENSOR_FORMAT_CHWN:
    373
    0
          return params.dim[CCV_NNC_MAX_DIM + 1];
    374
    46
      }
    375
    0
      return 0;
    376
    46
    }
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_cmul_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_min_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_max_cpu_ref.c:ccv_nnc_tensor_get_n

    ccv_nnc_lssc_cpu_ref.c:ccv_nnc_tensor_get_n

    Line
    Count
    Source
    363
    24
    {
    364
    24
      switch (params.format)
    365
    24
      {
    366
    0
        case CCV_TENSOR_FORMAT_NHWC:
    367
    24
        case CCV_TENSOR_FORMAT_NCHW:
    368
    24
          if (ccv_nnc_tensor_nd(params.dim) == CCV_NNC_MAX_DIM + 1)
    369
    8
            return 1;
    370
    16
          else
    371
    16
            return params.dim[0];
    372
    0
        case CCV_TENSOR_FORMAT_CHWN:
    373
    0
          return params.dim[CCV_NNC_MAX_DIM + 1];
    374
    24
      }
    375
    0
      return 0;
    376
    24
    }
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_mse_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_tensor_get_n

    ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_tensor_get_n

    Line
    Count
    Source
    363
    26
    {
    364
    26
      switch (params.format)
    365
    26
      {
    366
    26
        case CCV_TENSOR_FORMAT_NHWC:
    367
    26
        case CCV_TENSOR_FORMAT_NCHW:
    368
    26
          if (ccv_nnc_tensor_nd(params.dim) == CCV_NNC_MAX_DIM + 1)
    369
    14
            return 1;
    370
    12
          else
    371
    12
            return params.dim[0];
    372
    0
        case CCV_TENSOR_FORMAT_CHWN:
    373
    0
          return params.dim[CCV_NNC_MAX_DIM + 1];
    374
    26
      }
    375
    0
      return 0;
    376
    26
    }
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_get_n

    ccv_nnc_convolution.c:ccv_nnc_tensor_get_n

    Line
    Count
    Source
    363
    4.38k
    {
    364
    4.38k
      switch (params.format)
    365
    4.38k
      {
    366
    248
        case CCV_TENSOR_FORMAT_NHWC:
    367
    4.38k
        case CCV_TENSOR_FORMAT_NCHW:
    368
    4.38k
          if (ccv_nnc_tensor_nd(params.dim) == CCV_NNC_MAX_DIM + 1)
    369
    53
            return 1;
    370
    4.33k
          else
    371
    4.33k
            return params.dim[0];
    372
    0
        case CCV_TENSOR_FORMAT_CHWN:
    373
    0
          return params.dim[CCV_NNC_MAX_DIM + 1];
    374
    4.38k
      }
    375
    0
      return 0;
    376
    4.38k
    }
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_tensor_get_n
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_tensor_get_n
    377
    378
    static inline int ccv_nnc_tensor_get_c(const ccv_nnc_tensor_param_t params)
    379
    184k
    {
    380
    184k
      const int nd = ccv_nnc_tensor_nd(params.dim);
    381
    184k
      switch (params.format)
    382
    184k
      {
    383
    183k
        case CCV_TENSOR_FORMAT_NHWC:
    384
    183k
          return params.dim[nd - 1];
    385
    528
        case CCV_TENSOR_FORMAT_NCHW:
    386
    528
          if (nd == CCV_NNC_MAX_DIM + 1)
    387
    8
            return params.dim[0];
    388
    520
          else
    389
    520
            return params.dim[nd <= 1 ? 00 : 1];
    390
    0
        case CCV_TENSOR_FORMAT_CHWN:
    391
    0
          return params.dim[0];
    392
    184k
      }
    393
    0
      return 0;
    394
    184k
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: compare.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: compression.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: concat.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: index.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: loss.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: nms.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: pad.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: palettize.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: partition.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: random.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: sort.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: swish.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: attention.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: complex.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: micro.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_get_c

    ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_get_c

    Line
    Count
    Source
    379
    183k
    {
    380
    183k
      const int nd = ccv_nnc_tensor_nd(params.dim);
    381
    183k
      switch (params.format)
    382
    183k
      {
    383
    183k
        case CCV_TENSOR_FORMAT_NHWC:
    384
    183k
          return params.dim[nd - 1];
    385
    0
        case CCV_TENSOR_FORMAT_NCHW:
    386
    0
          if (nd == CCV_NNC_MAX_DIM + 1)
    387
    0
            return params.dim[0];
    388
    0
          else
    389
    0
            return params.dim[nd <= 1 ? 0 : 1];
    390
    0
        case CCV_TENSOR_FORMAT_CHWN:
    391
    0
          return params.dim[0];
    392
    183k
      }
    393
    0
      return 0;
    394
    183k
    }
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_get_c

    ccv_cnnp_model_addons.c:ccv_nnc_tensor_get_c

    Line
    Count
    Source
    379
    75
    {
    380
    75
      const int nd = ccv_nnc_tensor_nd(params.dim);
    381
    75
      switch (params.format)
    382
    75
      {
    383
    0
        case CCV_TENSOR_FORMAT_NHWC:
    384
    0
          return params.dim[nd - 1];
    385
    75
        case CCV_TENSOR_FORMAT_NCHW:
    386
    75
          if (nd == CCV_NNC_MAX_DIM + 1)
    387
    0
            return params.dim[0];
    388
    75
          else
    389
    75
            return params.dim[nd <= 1 ? 00 : 1];
    390
    0
        case CCV_TENSOR_FORMAT_CHWN:
    391
    0
          return params.dim[0];
    392
    75
      }
    393
    0
      return 0;
    394
    75
    }
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_cmul_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_min_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_max_cpu_ref.c:ccv_nnc_tensor_get_c

    ccv_nnc_lssc_cpu_ref.c:ccv_nnc_tensor_get_c

    Line
    Count
    Source
    379
    24
    {
    380
    24
      const int nd = ccv_nnc_tensor_nd(params.dim);
    381
    24
      switch (params.format)
    382
    24
      {
    383
    0
        case CCV_TENSOR_FORMAT_NHWC:
    384
    0
          return params.dim[nd - 1];
    385
    24
        case CCV_TENSOR_FORMAT_NCHW:
    386
    24
          if (nd == CCV_NNC_MAX_DIM + 1)
    387
    8
            return params.dim[0];
    388
    16
          else
    389
    16
            return params.dim[nd <= 1 ? 00 : 1];
    390
    0
        case CCV_TENSOR_FORMAT_CHWN:
    391
    0
          return params.dim[0];
    392
    24
      }
    393
    0
      return 0;
    394
    24
    }
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_get_c

    ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_get_c

    Line
    Count
    Source
    379
    2
    {
    380
    2
      const int nd = ccv_nnc_tensor_nd(params.dim);
    381
    2
      switch (params.format)
    382
    2
      {
    383
    2
        case CCV_TENSOR_FORMAT_NHWC:
    384
    2
          return params.dim[nd - 1];
    385
    0
        case CCV_TENSOR_FORMAT_NCHW:
    386
    0
          if (nd == CCV_NNC_MAX_DIM + 1)
    387
    0
            return params.dim[0];
    388
    0
          else
    389
    0
            return params.dim[nd <= 1 ? 0 : 1];
    390
    0
        case CCV_TENSOR_FORMAT_CHWN:
    391
    0
          return params.dim[0];
    392
    2
      }
    393
    0
      return 0;
    394
    2
    }
    Unexecuted instantiation: ccv_nnc_mse_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_get_c

    ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_get_c

    Line
    Count
    Source
    379
    4
    {
    380
    4
      const int nd = ccv_nnc_tensor_nd(params.dim);
    381
    4
      switch (params.format)
    382
    4
      {
    383
    4
        case CCV_TENSOR_FORMAT_NHWC:
    384
    4
          return params.dim[nd - 1];
    385
    0
        case CCV_TENSOR_FORMAT_NCHW:
    386
    0
          if (nd == CCV_NNC_MAX_DIM + 1)
    387
    0
            return params.dim[0];
    388
    0
          else
    389
    0
            return params.dim[nd <= 1 ? 0 : 1];
    390
    0
        case CCV_TENSOR_FORMAT_CHWN:
    391
    0
          return params.dim[0];
    392
    4
      }
    393
    0
      return 0;
    394
    4
    }
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_tensor_get_c

    ccv_nnc_binary_crossentropy.c:ccv_nnc_tensor_get_c

    Line
    Count
    Source
    379
    6
    {
    380
    6
      const int nd = ccv_nnc_tensor_nd(params.dim);
    381
    6
      switch (params.format)
    382
    6
      {
    383
    6
        case CCV_TENSOR_FORMAT_NHWC:
    384
    6
          return params.dim[nd - 1];
    385
    0
        case CCV_TENSOR_FORMAT_NCHW:
    386
    0
          if (nd == CCV_NNC_MAX_DIM + 1)
    387
    0
            return params.dim[0];
    388
    0
          else
    389
    0
            return params.dim[nd <= 1 ? 0 : 1];
    390
    0
        case CCV_TENSOR_FORMAT_CHWN:
    391
    0
          return params.dim[0];
    392
    6
      }
    393
    0
      return 0;
    394
    6
    }

    ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_get_c

    Line
    Count
    Source
    379
    13
    {
    380
    13
      const int nd = ccv_nnc_tensor_nd(params.dim);
    381
    13
      switch (params.format)
    382
    13
      {
    383
    8
        case CCV_TENSOR_FORMAT_NHWC:
    384
    8
          return params.dim[nd - 1];
    385
    5
        case CCV_TENSOR_FORMAT_NCHW:
    386
    5
          if (nd == CCV_NNC_MAX_DIM + 1)
    387
    0
            return params.dim[0];
    388
    5
          else
    389
    5
            return params.dim[nd <= 1 ? 00 : 1];
    390
    0
        case CCV_TENSOR_FORMAT_CHWN:
    391
    0
          return params.dim[0];
    392
    13
      }
    393
    0
      return 0;
    394
    13
    }

    ccv_nnc_mse.c:ccv_nnc_tensor_get_c

    Line
    Count
    Source
    379
    9
    {
    380
    9
      const int nd = ccv_nnc_tensor_nd(params.dim);
    381
    9
      switch (params.format)
    382
    9
      {
    383
    9
        case CCV_TENSOR_FORMAT_NHWC:
    384
    9
          return params.dim[nd - 1];
    385
    0
        case CCV_TENSOR_FORMAT_NCHW:
    386
    0
          if (nd == CCV_NNC_MAX_DIM + 1)
    387
    0
            return params.dim[0];
    388
    0
          else
    389
    0
            return params.dim[nd <= 1 ? 0 : 1];
    390
    0
        case CCV_TENSOR_FORMAT_CHWN:
    391
    0
          return params.dim[0];
    392
    9
      }
    393
    0
      return 0;
    394
    9
    }

    ccv_nnc_smooth_l1.c:ccv_nnc_tensor_get_c

    Line
    Count
    Source
    379
    2
    {
    380
    2
      const int nd = ccv_nnc_tensor_nd(params.dim);
    381
    2
      switch (params.format)
    382
    2
      {
    383
    2
        case CCV_TENSOR_FORMAT_NHWC:
    384
    2
          return params.dim[nd - 1];
    385
    0
        case CCV_TENSOR_FORMAT_NCHW:
    386
    0
          if (nd == CCV_NNC_MAX_DIM + 1)
    387
    0
            return params.dim[0];
    388
    0
          else
    389
    0
            return params.dim[nd <= 1 ? 0 : 1];
    390
    0
        case CCV_TENSOR_FORMAT_CHWN:
    391
    0
          return params.dim[0];
    392
    2
      }
    393
    0
      return 0;
    394
    2
    }
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_tensor_get_c

    ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_tensor_get_c

    Line
    Count
    Source
    379
    18
    {
    380
    18
      const int nd = ccv_nnc_tensor_nd(params.dim);
    381
    18
      switch (params.format)
    382
    18
      {
    383
    6
        case CCV_TENSOR_FORMAT_NHWC:
    384
    6
          return params.dim[nd - 1];
    385
    12
        case CCV_TENSOR_FORMAT_NCHW:
    386
    12
          if (nd == CCV_NNC_MAX_DIM + 1)
    387
    0
            return params.dim[0];
    388
    12
          else
    389
    12
            return params.dim[nd <= 1 ? 00 : 1];
    390
    0
        case CCV_TENSOR_FORMAT_CHWN:
    391
    0
          return params.dim[0];
    392
    18
      }
    393
    0
      return 0;
    394
    18
    }

    ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_get_c

    Line
    Count
    Source
    379
    420
    {
    380
    420
      const int nd = ccv_nnc_tensor_nd(params.dim);
    381
    420
      switch (params.format)
    382
    420
      {
    383
    8
        case CCV_TENSOR_FORMAT_NHWC:
    384
    8
          return params.dim[nd - 1];
    385
    412
        case CCV_TENSOR_FORMAT_NCHW:
    386
    412
          if (nd == CCV_NNC_MAX_DIM + 1)
    387
    0
            return params.dim[0];
    388
    412
          else
    389
    412
            return params.dim[nd <= 1 ? 00 : 1];
    390
    0
        case CCV_TENSOR_FORMAT_CHWN:
    391
    0
          return params.dim[0];
    392
    420
      }
    393
    0
      return 0;
    394
    420
    }
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_tensor_get_c
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_tensor_get_c
    395
    396
    static inline void ccv_nnc_tensor_set_n(ccv_nnc_tensor_param_t* const params, const int n)
    397
    2.30k
    {
    398
    2.30k
      switch (params->format)
    399
    2.30k
      {
    400
    139
        case CCV_TENSOR_FORMAT_NHWC:
    401
    2.30k
        case CCV_TENSOR_FORMAT_NCHW:
    402
    2.30k
          params->dim[0] = n;
    403
    2.30k
          break;
    404
    0
        case CCV_TENSOR_FORMAT_CHWN:
    405
    0
          params->dim[CCV_NNC_MAX_DIM + 1] = n;
    406
    0
          break;
    407
    2.30k
      }
    408
    2.30k
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: compare.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: compression.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: concat.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: index.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: loss.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: nms.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: pad.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: palettize.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: partition.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: random.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: sort.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: swish.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: attention.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: complex.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: micro.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_set_n

    ccv_cnnp_model_addons.c:ccv_nnc_tensor_set_n

    Line
    Count
    Source
    397
    114
    {
    398
    114
      switch (params->format)
    399
    114
      {
    400
    15
        case CCV_TENSOR_FORMAT_NHWC:
    401
    114
        case CCV_TENSOR_FORMAT_NCHW:
    402
    114
          params->dim[0] = n;
    403
    114
          break;
    404
    0
        case CCV_TENSOR_FORMAT_CHWN:
    405
    0
          params->dim[CCV_NNC_MAX_DIM + 1] = n;
    406
    0
          break;
    407
    114
      }
    408
    114
    }
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_cmul_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_min_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_max_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_mse_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_set_n

    ccv_nnc_convolution.c:ccv_nnc_tensor_set_n

    Line
    Count
    Source
    397
    2.19k
    {
    398
    2.19k
      switch (params->format)
    399
    2.19k
      {
    400
    124
        case CCV_TENSOR_FORMAT_NHWC:
    401
    2.19k
        case CCV_TENSOR_FORMAT_NCHW:
    402
    2.19k
          params->dim[0] = n;
    403
    2.19k
          break;
    404
    0
        case CCV_TENSOR_FORMAT_CHWN:
    405
    0
          params->dim[CCV_NNC_MAX_DIM + 1] = n;
    406
    0
          break;
    407
    2.19k
      }
    408
    2.19k
    }
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_tensor_set_n
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_tensor_set_n
    409
    410
    static inline void ccv_nnc_tensor_set_c(ccv_nnc_tensor_param_t* const params, const int nd, const int c)
    411
    2.75k
    {
    412
    2.75k
      switch (params->format)
    413
    2.75k
      {
    414
    172
        case CCV_TENSOR_FORMAT_NHWC:
    415
    172
          params->dim[nd - 1] = c;
    416
    172
          break;
    417
    2.58k
        case CCV_TENSOR_FORMAT_NCHW:
    418
    2.58k
          if (nd == CCV_NNC_MAX_DIM + 1)
    419
    0
            params->dim[0] = c;
    420
    2.58k
          else
    421
    2.58k
            params->dim[nd <= 1 ? 00 : 1] = c;
    422
    2.58k
          break;
    423
    0
        case CCV_TENSOR_FORMAT_CHWN:
    424
    0
          params->dim[0] = c;
    425
    0
          break;
    426
    2.75k
      }
    427
    2.75k
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: compare.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: compression.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: concat.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: index.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: loss.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: nms.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: pad.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: palettize.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: partition.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: random.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: sort.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: swish.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: attention.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: complex.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: micro.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_set_c

    ccv_cnnp_model_addons.c:ccv_nnc_tensor_set_c

    Line
    Count
    Source
    411
    114
    {
    412
    114
      switch (params->format)
    413
    114
      {
    414
    15
        case CCV_TENSOR_FORMAT_NHWC:
    415
    15
          params->dim[nd - 1] = c;
    416
    15
          break;
    417
    99
        case CCV_TENSOR_FORMAT_NCHW:
    418
    99
          if (nd == CCV_NNC_MAX_DIM + 1)
    419
    0
            params->dim[0] = c;
    420
    99
          else
    421
    99
            params->dim[nd <= 1 ? 00 : 1] = c;
    422
    99
          break;
    423
    0
        case CCV_TENSOR_FORMAT_CHWN:
    424
    0
          params->dim[0] = c;
    425
    0
          break;
    426
    114
      }
    427
    114
    }
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_cmul_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_min_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_max_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_mse_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_set_c

    ccv_nnc_convolution.c:ccv_nnc_tensor_set_c

    Line
    Count
    Source
    411
    2.19k
    {
    412
    2.19k
      switch (params->format)
    413
    2.19k
      {
    414
    124
        case CCV_TENSOR_FORMAT_NHWC:
    415
    124
          params->dim[nd - 1] = c;
    416
    124
          break;
    417
    2.06k
        case CCV_TENSOR_FORMAT_NCHW:
    418
    2.06k
          if (nd == CCV_NNC_MAX_DIM + 1)
    419
    0
            params->dim[0] = c;
    420
    2.06k
          else
    421
    2.06k
            params->dim[nd <= 1 ? 00 : 1] = c;
    422
    2.06k
          break;
    423
    0
        case CCV_TENSOR_FORMAT_CHWN:
    424
    0
          params->dim[0] = c;
    425
    0
          break;
    426
    2.19k
      }
    427
    2.19k
    }
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_tensor_set_c

    ccv_nnc_binary_crossentropy.c:ccv_nnc_tensor_set_c

    Line
    Count
    Source
    411
    6
    {
    412
    6
      switch (params->format)
    413
    6
      {
    414
    6
        case CCV_TENSOR_FORMAT_NHWC:
    415
    6
          params->dim[nd - 1] = c;
    416
    6
          break;
    417
    0
        case CCV_TENSOR_FORMAT_NCHW:
    418
    0
          if (nd == CCV_NNC_MAX_DIM + 1)
    419
    0
            params->dim[0] = c;
    420
    0
          else
    421
    0
            params->dim[nd <= 1 ? 0 : 1] = c;
    422
    0
          break;
    423
    0
        case CCV_TENSOR_FORMAT_CHWN:
    424
    0
          params->dim[0] = c;
    425
    0
          break;
    426
    6
      }
    427
    6
    }

    ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_set_c

    Line
    Count
    Source
    411
    9
    {
    412
    9
      switch (params->format)
    413
    9
      {
    414
    5
        case CCV_TENSOR_FORMAT_NHWC:
    415
    5
          params->dim[nd - 1] = c;
    416
    5
          break;
    417
    4
        case CCV_TENSOR_FORMAT_NCHW:
    418
    4
          if (nd == CCV_NNC_MAX_DIM + 1)
    419
    0
            params->dim[0] = c;
    420
    4
          else
    421
    4
            params->dim[nd <= 1 ? 00 : 1] = c;
    422
    4
          break;
    423
    0
        case CCV_TENSOR_FORMAT_CHWN:
    424
    0
          params->dim[0] = c;
    425
    0
          break;
    426
    9
      }
    427
    9
    }

    ccv_nnc_mse.c:ccv_nnc_tensor_set_c

    Line
    Count
    Source
    411
    9
    {
    412
    9
      switch (params->format)
    413
    9
      {
    414
    9
        case CCV_TENSOR_FORMAT_NHWC:
    415
    9
          params->dim[nd - 1] = c;
    416
    9
          break;
    417
    0
        case CCV_TENSOR_FORMAT_NCHW:
    418
    0
          if (nd == CCV_NNC_MAX_DIM + 1)
    419
    0
            params->dim[0] = c;
    420
    0
          else
    421
    0
            params->dim[nd <= 1 ? 0 : 1] = c;
    422
    0
          break;
    423
    0
        case CCV_TENSOR_FORMAT_CHWN:
    424
    0
          params->dim[0] = c;
    425
    0
          break;
    426
    9
      }
    427
    9
    }

    ccv_nnc_smooth_l1.c:ccv_nnc_tensor_set_c

    Line
    Count
    Source
    411
    2
    {
    412
    2
      switch (params->format)
    413
    2
      {
    414
    2
        case CCV_TENSOR_FORMAT_NHWC:
    415
    2
          params->dim[nd - 1] = c;
    416
    2
          break;
    417
    0
        case CCV_TENSOR_FORMAT_NCHW:
    418
    0
          if (nd == CCV_NNC_MAX_DIM + 1)
    419
    0
            params->dim[0] = c;
    420
    0
          else
    421
    0
            params->dim[nd <= 1 ? 0 : 1] = c;
    422
    0
          break;
    423
    0
        case CCV_TENSOR_FORMAT_CHWN:
    424
    0
          params->dim[0] = c;
    425
    0
          break;
    426
    2
      }
    427
    2
    }
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_tensor_set_c

    ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_tensor_set_c

    Line
    Count
    Source
    411
    6
    {
    412
    6
      switch (params->format)
    413
    6
      {
    414
    6
        case CCV_TENSOR_FORMAT_NHWC:
    415
    6
          params->dim[nd - 1] = c;
    416
    6
          break;
    417
    0
        case CCV_TENSOR_FORMAT_NCHW:
    418
    0
          if (nd == CCV_NNC_MAX_DIM + 1)
    419
    0
            params->dim[0] = c;
    420
    0
          else
    421
    0
            params->dim[nd <= 1 ? 0 : 1] = c;
    422
    0
          break;
    423
    0
        case CCV_TENSOR_FORMAT_CHWN:
    424
    0
          params->dim[0] = c;
    425
    0
          break;
    426
    6
      }
    427
    6
    }

    ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_set_c

    Line
    Count
    Source
    411
    417
    {
    412
    417
      switch (params->format)
    413
    417
      {
    414
    5
        case CCV_TENSOR_FORMAT_NHWC:
    415
    5
          params->dim[nd - 1] = c;
    416
    5
          break;
    417
    412
        case CCV_TENSOR_FORMAT_NCHW:
    418
    412
          if (nd == CCV_NNC_MAX_DIM + 1)
    419
    0
            params->dim[0] = c;
    420
    412
          else
    421
    412
            params->dim[nd <= 1 ? 00 : 1] = c;
    422
    412
          break;
    423
    0
        case CCV_TENSOR_FORMAT_CHWN:
    424
    0
          params->dim[0] = c;
    425
    0
          break;
    426
    417
      }
    427
    417
    }
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_tensor_set_c
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_tensor_set_c
    428
    429
    static inline int ccv_nnc_is_matrix_transpose(const ccv_nnc_tensor_param_t params, const int transpose[2])
    430
    12.3k
    {
    431
    12.3k
      const int nd = ccv_nnc_tensor_nd(params.dim);
    432
    12.3k
      assert(nd >= 1);
    433
    12.3k
      if (transpose[0] != transpose[1])
    434
    4.16k
      {
    435
    4.16k
        assert(nd > 1);
    436
    4.16k
        assert(((transpose[0] == ((nd == 2) ? 0 : nd - 2)) && (transpose[1] == ((nd == 2) ? 1 : nd - 1))) ||
    437
    4.16k
          ((transpose[1] == ((nd == 2) ? 0 : nd - 2)) && (transpose[0] == ((nd == 2) ? 1 : nd - 1))));
    438
    4.16k
        return 1;
    439
    4.16k
      }
    440
    8.20k
      return 0;
    441
    12.3k
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: compare.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: compression.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: concat.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: cublas.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: index.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: loss.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: nms.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: pad.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: palettize.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: partition.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: random.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: sort.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: swish.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: tensor.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: transform.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: attention.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: backward.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: complex.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: custom.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: forward.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: graph.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: micro.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: numa.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: rand.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: tape.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: while.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_cnnp_model_addons.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_add_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_mul_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_cmul_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_min_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_max_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_ew_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_mse_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_util_cpu_ref.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_is_matrix_transpose

    _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_is_matrix_transpose

    Line
    Count
    Source
    430
    12.3k
    {
    431
    12.3k
      const int nd = ccv_nnc_tensor_nd(params.dim);
    432
    12.3k
      assert(nd >= 1);
    433
    12.3k
      if (transpose[0] != transpose[1])
    434
    4.16k
      {
    435
    4.16k
        assert(nd > 1);
    436
    4.16k
        assert(((transpose[0] == ((nd == 2) ? 0 : nd - 2)) && (transpose[1] == ((nd == 2) ? 1 : nd - 1))) ||
    437
    4.16k
          ((transpose[1] == ((nd == 2) ? 0 : nd - 2)) && (transpose[0] == ((nd == 2) ? 1 : nd - 1))));
    438
    4.16k
        return 1;
    439
    4.16k
      }
    440
    8.20k
      return 0;
    441
    12.3k
    }
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_is_matrix_transpose
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_is_matrix_transpose
    442
    443
    // Assuming this is batched matrix. Getting relevant parameters.
    444
    static inline void ccv_nnc_tensor_get_matrix_params(const ccv_nnc_tensor_param_t params, const int* const stride, const int* const dim, const int transpose[2], int* const batch_size_ref, int* const rows_ref, int* const cols_ref, int* const batch_inc_ref, int* const rows_inc_ref, int* const cols_inc_ref)
    445
    179k
    {
    446
    179k
      const int nd = ccv_nnc_tensor_nd(params.dim);
    447
    179k
      assert(nd >= 1);
    448
    179k
      *batch_size_ref = nd < 3 ? 1178k : params.dim[nd - 3]933;
    449
    179k
      *batch_inc_ref = nd < 3 ? 0178k : stride933 ? stride[nd - 3]24 : dim[nd - 2] * dim[nd - 1]909;
    450
    179k
      int rows = nd == 1 ? 163.0k : (116knd == 2116k ? params.dim[0]115k : params.dim[nd - 2]933);
    451
    179k
      int rows_inc = stride ? (73nd >= 273 ? stride[nd - 2]51 : stride[0] * dim[0]22) : dim[nd - 1]179k;
    452
    179k
      int cols = params.dim[nd - 1];
    453
    179k
      int cols_inc = 1;
    454
    179k
      if (transpose[0] != transpose[1])
    455
    59.9k
      {
    456
    59.9k
        assert(nd > 1);
    457
    59.9k
        assert(((transpose[0] == ((nd == 2) ? 0 : nd - 2)) && (transpose[1] == ((nd == 2) ? 1 : nd - 1))) ||
    458
    59.9k
          ((transpose[1] == ((nd == 2) ? 0 : nd - 2)) && (transpose[0] == ((nd == 2) ? 1 : nd - 1))));
    459
    59.9k
        int t;
    460
    59.9k
        CCV_SWAP(rows, cols, t);
    461
    59.9k
        CCV_SWAP(rows_inc, cols_inc, t);
    462
    59.9k
      }
    463
    179k
      *rows_ref = rows;
    464
    179k
      *cols_ref = cols;
    465
    179k
      *rows_inc_ref = rows_inc;
    466
    179k
      *cols_inc_ref = cols_inc;
    467
    179k
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: compare.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: compression.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: concat.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: index.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: loss.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: nms.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: pad.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: palettize.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: partition.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: random.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: sort.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: swish.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: attention.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: complex.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: micro.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_cnnp_model_addons.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_tensor_get_matrix_params

    ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_get_matrix_params

    Line
    Count
    Source
    445
    113k
    {
    446
    113k
      const int nd = ccv_nnc_tensor_nd(params.dim);
    447
    113k
      assert(nd >= 1);
    448
    113k
      *batch_size_ref = nd < 3 ? 1113k : params.dim[nd - 3]129;
    449
    113k
      *batch_inc_ref = nd < 3 ? 0113k : stride129 ? stride[nd - 3]16 : dim[nd - 2] * dim[nd - 1]113;
    450
    113k
      int rows = nd == 1 ? 138.0k : (75.7knd == 275.7k ? params.dim[0]75.5k : params.dim[nd - 2]129);
    451
    113k
      int rows_inc = stride ? (56nd >= 256 ? stride[nd - 2]43 : stride[0] * dim[0]13) : dim[nd - 1]113k;
    452
    113k
      int cols = params.dim[nd - 1];
    453
    113k
      int cols_inc = 1;
    454
    113k
      if (transpose[0] != transpose[1])
    455
    32.2k
      {
    456
    32.2k
        assert(nd > 1);
    457
    32.2k
        assert(((transpose[0] == ((nd == 2) ? 0 : nd - 2)) && (transpose[1] == ((nd == 2) ? 1 : nd - 1))) ||
    458
    32.2k
          ((transpose[1] == ((nd == 2) ? 0 : nd - 2)) && (transpose[0] == ((nd == 2) ? 1 : nd - 1))));
    459
    32.2k
        int t;
    460
    32.2k
        CCV_SWAP(rows, cols, t);
    461
    32.2k
        CCV_SWAP(rows_inc, cols_inc, t);
    462
    32.2k
      }
    463
    113k
      *rows_ref = rows;
    464
    113k
      *cols_ref = cols;
    465
    113k
      *rows_inc_ref = rows_inc;
    466
    113k
      *cols_inc_ref = cols_inc;
    467
    113k
    }
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_cmul_cpu_ref.c:ccv_nnc_tensor_get_matrix_params

    ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_tensor_get_matrix_params

    Line
    Count
    Source
    445
    34
    {
    446
    34
      const int nd = ccv_nnc_tensor_nd(params.dim);
    447
    34
      assert(nd >= 1);
    448
    34
      *batch_size_ref = nd < 3 ? 124 : params.dim[nd - 3]10;
    449
    34
      *batch_inc_ref = nd < 3 ? 024 : stride10 ? stride[nd - 3]0 : dim[nd - 2] * dim[nd - 1]10;
    450
    34
      int rows = nd == 1 ? 10 : (nd == 2 ? params.dim[0]24 : params.dim[nd - 2]10);
    451
    34
      int rows_inc = stride ? (0nd >= 20 ? stride[nd - 2]0 : stride[0] * dim[0]0) : dim[nd - 1];
    452
    34
      int cols = params.dim[nd - 1];
    453
    34
      int cols_inc = 1;
    454
    34
      if (transpose[0] != transpose[1])
    455
    10
      {
    456
    10
        assert(nd > 1);
    457
    10
        assert(((transpose[0] == ((nd == 2) ? 0 : nd - 2)) && (transpose[1] == ((nd == 2) ? 1 : nd - 1))) ||
    458
    10
          ((transpose[1] == ((nd == 2) ? 0 : nd - 2)) && (transpose[0] == ((nd == 2) ? 1 : nd - 1))));
    459
    10
        int t;
    460
    10
        CCV_SWAP(rows, cols, t);
    461
    10
        CCV_SWAP(rows_inc, cols_inc, t);
    462
    10
      }
    463
    34
      *rows_ref = rows;
    464
    34
      *cols_ref = cols;
    465
    34
      *rows_inc_ref = rows_inc;
    466
    34
      *cols_inc_ref = cols_inc;
    467
    34
    }
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_min_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_max_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_mse_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_get_matrix_params

    ccv_nnc_blas.c:ccv_nnc_tensor_get_matrix_params

    Line
    Count
    Source
    445
    47.4k
    {
    446
    47.4k
      const int nd = ccv_nnc_tensor_nd(params.dim);
    447
    47.4k
      assert(nd >= 1);
    448
    47.4k
      *batch_size_ref = nd < 3 ? 146.7k : params.dim[nd - 3]749;
    449
    47.4k
      *batch_inc_ref = nd < 3 ? 046.7k : stride749 ? stride[nd - 3]0 : dim[nd - 2] * dim[nd - 1]749;
    450
    47.4k
      int rows = nd == 1 ? 117.0k : (30.3knd == 230.3k ? params.dim[0]29.6k : params.dim[nd - 2]749);
    451
    47.4k
      int rows_inc = stride ? (0nd >= 20 ? stride[nd - 2]0 : stride[0] * dim[0]0) : dim[nd - 1];
    452
    47.4k
      int cols = params.dim[nd - 1];
    453
    47.4k
      int cols_inc = 1;
    454
    47.4k
      if (transpose[0] != transpose[1])
    455
    23.5k
      {
    456
    23.5k
        assert(nd > 1);
    457
    23.5k
        assert(((transpose[0] == ((nd == 2) ? 0 : nd - 2)) && (transpose[1] == ((nd == 2) ? 1 : nd - 1))) ||
    458
    23.5k
          ((transpose[1] == ((nd == 2) ? 0 : nd - 2)) && (transpose[0] == ((nd == 2) ? 1 : nd - 1))));
    459
    23.5k
        int t;
    460
    23.5k
        CCV_SWAP(rows, cols, t);
    461
    23.5k
        CCV_SWAP(rows_inc, cols_inc, t);
    462
    23.5k
      }
    463
    47.4k
      *rows_ref = rows;
    464
    47.4k
      *cols_ref = cols;
    465
    47.4k
      *rows_inc_ref = rows_inc;
    466
    47.4k
      *cols_inc_ref = cols_inc;
    467
    47.4k
    }
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_get_matrix_params

    _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_get_matrix_params

    Line
    Count
    Source
    445
    18.0k
    {
    446
    18.0k
      const int nd = ccv_nnc_tensor_nd(params.dim);
    447
    18.0k
      assert(nd >= 1);
    448
    18.0k
      *batch_size_ref = nd < 3 ? 118.0k : params.dim[nd - 3]45;
    449
    18.0k
      *batch_inc_ref = nd < 3 ? 018.0k : stride45 ? stride[nd - 3]8 : dim[nd - 2] * dim[nd - 1]37;
    450
    18.0k
      int rows = nd == 1 ? 17.85k : (10.2knd == 210.2k ? params.dim[0]10.1k : params.dim[nd - 2]45);
    451
    18.0k
      int rows_inc = stride ? (17nd >= 217 ? stride[nd - 2]8 : stride[0] * dim[0]9) : dim[nd - 1]18.0k;
    452
    18.0k
      int cols = params.dim[nd - 1];
    453
    18.0k
      int cols_inc = 1;
    454
    18.0k
      if (transpose[0] != transpose[1])
    455
    4.16k
      {
    456
    4.16k
        assert(nd > 1);
    457
    4.16k
        assert(((transpose[0] == ((nd == 2) ? 0 : nd - 2)) && (transpose[1] == ((nd == 2) ? 1 : nd - 1))) ||
    458
    4.16k
          ((transpose[1] == ((nd == 2) ? 0 : nd - 2)) && (transpose[0] == ((nd == 2) ? 1 : nd - 1))));
    459
    4.16k
        int t;
    460
    4.16k
        CCV_SWAP(rows, cols, t);
    461
    4.16k
        CCV_SWAP(rows_inc, cols_inc, t);
    462
    4.16k
      }
    463
    18.0k
      *rows_ref = rows;
    464
    18.0k
      *cols_ref = cols;
    465
    18.0k
      *rows_inc_ref = rows_inc;
    466
    18.0k
      *cols_inc_ref = cols_inc;
    467
    18.0k
    }
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_tensor_get_matrix_params
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_tensor_get_matrix_params
    468
    469
    static inline CCV_WARN_UNUSED(ccv_nnc_tensor_view_t) ccv_nnc_get_tensor_view(const ccv_nnc_tensor_t* const tensor)
    470
    0
    {
    471
    0
      if (CCV_IS_TENSOR_VIEW(tensor))
    472
    0
        return (ccv_nnc_tensor_view_t)*(const ccv_nnc_tensor_view_t*)tensor;
    473
    0
      ccv_nnc_tensor_view_t tv = {0};
    474
    0
      memcpy(&tv, tensor, sizeof(ccv_nnc_tensor_t));
    475
    0
      return tv;
    476
    0
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: compare.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: compression.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: concat.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: cublas.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: index.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: loss.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: nms.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: pad.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: palettize.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: partition.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: random.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: sort.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: swish.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: tensor.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: transform.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: attention.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: backward.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: complex.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: custom.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: forward.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: graph.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: micro.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: numa.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: rand.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: tape.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: while.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_cnnp_model_addons.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_add_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_mul_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_cmul_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_min_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_max_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_ew_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_mse_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_util_cpu_ref.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_get_tensor_view
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_get_tensor_view
    477
    478
    static inline void ccv_nnc_tensor_view_alignment(ccv_nnc_tensor_view_t** const tvs, const int tv_size)
    479
    0
    {
    480
    0
      int i, j;
    481
    0
      int max_nd = 0;
    482
    0
      for (i = 0; i < tv_size; i++)
    483
    0
        max_nd = ccv_max(ccv_nnc_tensor_nd(tvs[i]->info.dim), max_nd);
    484
    0
      for (i = 0; i < tv_size; i++)
    485
    0
      {
    486
    0
        const int nd = ccv_nnc_tensor_nd(tvs[i]->info.dim);
    487
    0
        for (j = max_nd - 1; j >= max_nd - nd; j--)
    488
    0
          tvs[i]->info.dim[j] = tvs[i]->info.dim[j - max_nd + nd];
    489
    0
        for (j = 0; j < max_nd - nd; j++)
    490
    0
          tvs[i]->info.dim[j] = 1;
    491
    0
        if (!CCV_IS_TENSOR_VIEW(tvs[i]))
    492
    0
          continue;
    493
    0
        for (j = max_nd - 1; j >= max_nd - nd; j--)
    494
    0
          tvs[i]->stride[j] = tvs[i]->stride[j - max_nd + nd];
    495
    0
        for (j = 0; j < max_nd - nd; j++)
    496
    0
          tvs[i]->stride[j] = tvs[i]->stride[max_nd - nd];
    497
    0
      }
    498
    0
    }
    Unexecuted instantiation: adam.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: compare.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: compression.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: concat.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: datatype.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: gelu.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: imdb.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: index.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: lamb.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: leaky_relu.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: loss.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: lstm.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: mpsblas.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: mpsdnn.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: nms.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: pad.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: palettize.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: partition.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: random.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: rmsprop.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: roi_align.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: scatter_add.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: sgd.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: smooth_l1.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: sort.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: swish.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: unique_consecutive.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: upsample.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: attention.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: cblas.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: complex.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: gemm.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: group.norm.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: histogram.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: layer.norm.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: micro.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: rmsnorm.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_tensor_io.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_micro.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_micro_core.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_micro_interpret.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_micro_simplify.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_compression.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_symbolic_graph_memory_reduction.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_xpu_alloc.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_dynamic_graph_alloc.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_dynamic_graph_apply_gradients.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_dynamic_graph_evaluate.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_cnnp_dataframe_csv.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_cnnp_model_addons.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_cnnp_model_gradient_checkpointing.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_symbolic_graph_chain_decomposition.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_adam_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_adamw_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_cmul_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_segmented_gemm_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_rotate_half_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_min_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_max_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_lssc_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_conv_transpose_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_gelu_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_grid_sample_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_histogram_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_index_select_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_reduce_isnan_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_lamb_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_leaky_relu_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_mse_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_smooth_l1_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_nms_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_layer_norm_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_group_norm_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_rmsnorm_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_pad_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_partition_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_rand_normal_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_reduce_mean_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_reduce_min_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_reduce_norm2_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_argmax_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_argmin_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_rmsprop_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_roi_align_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_scaled_dot_product_attention_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_scatter_add_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_sigmoid_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_sort_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_swish_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_tanh_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_unique_consecutive_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_upsample_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_blas.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_rotate_half.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_cmp.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_histogram.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_binary_crossentropy.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_mse.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_smooth_l1.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_nms.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_pad.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_lstm.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_roi_align.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_sigmoid.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_sigmoid_binary_crossentropy.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_tanh.c:ccv_nnc_tensor_view_alignment
    Unexecuted instantiation: ccv_nnc_upsample.c:ccv_nnc_tensor_view_alignment
    499
    500
    501
    18
    #define TRANSPOSE(_X, _Y) ((int[]){(_X),(_Y)})
    502
    14
    #define NO_TRANSPOSE TRANSPOSE(0, 0)
    503
    2.24k
    #define CMD_GEMM_X(_0, _TA, _TB, ...) ((ccv_nnc_cmd_param_t){.size={.dim={1,1,1}},.blas={.a={1,1},.transpose_a={_TA[0],_TA[1]},.transpose_b={_TB[0],_TB[1]},}}) // We default to alpha = 1 and beta = 1
    504
    2.24k
    #define CMD_GEMM(...) CMD_GEMM_X(_0, ##__VA_ARGS__, NO_TRANSPOSE, NO_TRANSPOSE)
    505
    4.59k
    #define CMD_GENERIC_X_0() ((ccv_nnc_cmd_param_t){.size={.dim={1,1,1}}})
    506
    #define CMD_GENERIC_X_F(...) ("This should not be used, you should have either 0 parameter or 3 parameters for CMD_GENERIC")
    507
    #define CMD_GENERIC_X_3(...) ((ccv_nnc_cmd_param_t){.size={.dim={__VA_ARGS__}}})
    508
    4.59k
    #define CMD_GENERIC_X_SEL(_0, _1, _2, _3, _FX, ...) _FX
    509
    // Using ## so that if it is empty, we omit one comma.
    510
    4.59k
    #define CMD_GENERIC(...) CMD_GENERIC_X_SEL(CMD_GENERIC_X_F, ##__VA_ARGS__, CMD_GENERIC_X_3, CMD_GENERIC_X_F, CMD_GENERIC_X_F, CMD_GENERIC_X_0)(__VA_ARGS__)
    511
    2.08k
    #define CMD_REDUCE(...) ((ccv_nnc_cmd_param_t){.size={.dim={1,1,1}},.reduce={.count=LIST_COUNT(__VA_ARGS__),.axis={__VA_ARGS__}}})
    512
    /**
    513
     * @defgroup available_commands Available Commands
    514
     * @{
    515
     */
    516
    2.37k
    #define CMD_NOOP() ccv_nnc_cmd(CCV_NNC_NOOP, 0, ccv_nnc_cmd_auto, 0)
    517
    1
    #define CMD_CUSTOM_FORWARD(f) ccv_nnc_cmd(CCV_NNC_CUSTOM_FORWARD, f, ccv_nnc_cmd_auto, 0)
    518
    /** @} */
    519
    520
    int ccv_nnc_is_no_hint(const ccv_nnc_hint_t hint);
    521
    int ccv_nnc_is_cmd_auto(const ccv_nnc_cmd_param_t params);
    522
    int ccv_nnc_is_tensor_auto(const ccv_nnc_tensor_param_t params);
    523
    524
    /**
    525
     * @addtogroup convenience_api
    526
     * @{
    527
     */
    528
    /**
    529
     * Offsets all zero.
    530
     */
    531
    extern const int ccv_nnc_no_ofs[CCV_NNC_MAX_DIM_ALLOC];
    532
    /**
    533
     * No hint available.
    534
     */
    535
    extern const ccv_nnc_hint_t ccv_nnc_no_hint;
    536
    /**
    537
     * The default symbolic graph compile parameters.
    538
     */
    539
    extern const ccv_nnc_symbolic_graph_compile_param_t ccv_nnc_default_compile_params;
    540
    /**
    541
     * Derive the command parameters automatically if possible.
    542
     */
    543
    extern const ccv_nnc_cmd_param_t ccv_nnc_cmd_auto;
    544
    /**
    545
     * Derive the tensor parameters automatically if possible.
    546
     */
    547
    extern const ccv_nnc_tensor_param_t ccv_nnc_tensor_auto;
    548
    /** @} */
    549
    550
    // Generated command flags for easy creation of ccv_nnc_cmd_t objects.
    551
    #include "cmd/ccv_nnc_cmd_easy.h"
    552
    553
    #endif