Coverage Report

Created: 2019-07-03 22:50

/home/liu/buildslave/linux-x64-runtests/build/lib/nnc/ccv_nnc_easy.h
Line
Count
Source (jump to first uncovered line)
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 <nnc/ccv_nnc.h>
15
16
/**
17
 * Convenience API
18
 *
19
 * This header provides convenience APIs for nnc usage. Being convenience API,
20
 * it is optimized for shorthand coding, and may collide the naming space with
21
 * others.
22
 *
23
 */
24
// c99 only, make sure your compiler supports that.
25
26
2
#define NOOP_GRAPH_WHILE_EXPR (ccv_nnc_graph_while_f)(1)
27
1
#define NOOP_GRAPH_CASE_OF_EXPR (ccv_nnc_graph_case_of_f)(1)
28
29
// 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.
30
// This works better for cases such as LIST_COUNT(1, 2, 3,) where previous macro will get 4 and this one will have correctly
31
// computed result.
32
1.27M
#define LIST_COUNT_01(_0,_1,_2,...) _2
33
1.27M
#define LIST_COUNT_E(...) LIST_COUNT_01(_0,##__VA_ARGS__,1,0)
34
19.8k
#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)
35
19.8k
#define LIST_COUNT(...) LIST_COUNT_N(_0,##__VA_ARGS__,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,)
36
37
9.24k
#define TENSOR_LIST_X(...) (ccv_nnc_tensor_t* []){__VA_ARGS__}
38
39
5
#define TENSOR_PARAM_LIST_X(...) (ccv_nnc_tensor_param_t []){__VA_ARGS__}
40
41
1.12k
#define TENSOR_SYMBOL_LIST_X(...) (ccv_nnc_tensor_symbol_t []){__VA_ARGS__}
42
43
8.10k
#define TENSOR_VARIABLE_LIST_X(...) (ccv_nnc_tensor_variable_t []){__VA_ARGS__}
44
45
#define KV_X(_x, _y, ...) {(_x), (_y)}
46
#define KV(...) KV_X(__VA_ARGS__, 0)
47
42
#define TENSOR_BIND_MAP_X(...) (ccv_nnc_tensor_bind_t []){__VA_ARGS__}
48
49
108
#define TENSOR_SYMBOL_MAP_X(...) (ccv_nnc_tensor_symbol_map_t []){__VA_ARGS__}
50
51
59
#define GRAPH_EXEC_LIST_X(...) (ccv_nnc_graph_exec_t []){__VA_ARGS__}
52
53
108
#define GRAPH_EXEC_SYMBOL_LIST_X(...) (ccv_nnc_graph_exec_symbol_t []){__VA_ARGS__}
54
55
27
#define SYMBOLIC_GRAPH_PASSES_X(...) (int []){__VA_ARGS__}
56
57
6
#define MODEL_LIST_X(...)(ccv_cnnp_model_t* []){__VA_ARGS__}
58
59
80
#define MODEL_IO_LIST_X(...)(ccv_cnnp_model_io_t []){__VA_ARGS__}
60
61
16
#define MODEL_CMD_TENSOR_MAP_X(...)(ccv_cnnp_tensor_param_t []){__VA_ARGS__}
62
63
8
#define MODEL_CMD_TENSOR_LIST_X(...)(int []){__VA_ARGS__}
64
65
68
#define COLUMN_ID_LIST_X(...)(int []){__VA_ARGS__}
66
67
/**
68
 * @defgroup convenience_api Convenience API
69
 * @{
70
 */
71
/**
72
 * Pass a list of tensors to NNC functions that accepts (tensor array, tensor array size).
73
 * This method effectively gives two parameters as one.
74
 */
75
9.24k
#define TENSOR_LIST(...) TENSOR_LIST_X(__VA_ARGS__), LIST_COUNT(__VA_ARGS__)
76
/**
77
 * Pass a list of tensor parameters to NNC functions that accepts (parameter array, parameter array size).
78
 * This method effectively gives two parameters as one.
79
 */
80
5
#define TENSOR_PARAM_LIST(...) TENSOR_PARAM_LIST_X(__VA_ARGS__), LIST_COUNT(__VA_ARGS__)
81
/**
82
 * This represents a tensor symbol that is empty (tensor = nil)
83
 */
84
14.8k
#define NO_TENSOR_SYMBOL (ccv_nnc_tensor_symbol_t){.d = CCV_NNC_NO_TENSOR_SYMBOL}
85
/**
86
 * This represents a graph exec symbol that is empty (exec = nil)
87
 */
88
0
#define NO_GRAPH_EXEC_SYMBOL (ccv_nnc_graph_exec_symbol_t){.d = CCV_NNC_NO_GRAPH_EXEC_SYMBOL}
89
/**
90
 * Pass a list of tensor symbols to NNC functions that accepts (tensor symbol array, tensor symbol array size).
91
 * This method effectively gives two parameters as one.
92
 */
93
1.12k
#define TENSOR_SYMBOL_LIST(...) TENSOR_SYMBOL_LIST_X(__VA_ARGS__), LIST_COUNT(__VA_ARGS__)
94
/**
95
 * Pass a list of tensor variables to NNC functions that accepts (tensor variable array, tensor variable array size).
96
 * This method effectively gives two parameters as one.
97
 */
98
8.10k
#define TENSOR_VARIABLE_LIST(...) TENSOR_VARIABLE_LIST_X(__VA_ARGS__), LIST_COUNT(__VA_ARGS__)
99
/**
100
 * Pass a list of tensor bindings to NNC functions that accepts (tensor binding array, tensor binding array size).
101
 * This method effectively gives two parameters as one. Since tensor binding requires two: symbol and a tensor,
102
 * you should use this like: TENSOR_BIND_MAP(KV(symbol1, tensor1), KV(symbol2, tensor2)).
103
 */
104
21
#define TENSOR_BIND_MAP(...) TENSOR_BIND_MAP_X(__VA_ARGS__), (sizeof(TENSOR_BIND_MAP_X(__VA_ARGS__)) / sizeof(ccv_nnc_tensor_bind_t))
105
/**
106
 * Pass a list of tensor symbol pairs to NNC functions that accepts (tensor symbol pair array, tensor symbol pair array size).
107
 * This method effectively gives two parameters as one. Since tensor symbol pair requires two: source symbol and destination symbol,
108
 * you should use this like: TENSOR_SYMBOL_MAP(KV(symbol1, symbol2), KV(symbol3, symbol4)).
109
 */
110
54
#define TENSOR_SYMBOL_MAP(...) TENSOR_SYMBOL_MAP_X(__VA_ARGS__), (sizeof(TENSOR_SYMBOL_MAP_X(__VA_ARGS__)) / sizeof(ccv_nnc_tensor_symbol_map_t))
111
/**
112
 * Pass a list of execution nodes to NNC functions that accepts (execution node array, execution node array size).
113
 * This method effectively gives two parameters as one.
114
 */
115
59
#define GRAPH_EXEC_LIST(...) GRAPH_EXEC_LIST_X(__VA_ARGS__), LIST_COUNT(__VA_ARGS__)
116
/**
117
 * Pass a list of execution node symbols to NNC functions that accepts (execution node symbol array, execution node symbol array size).
118
 * This method effectively gives two parameters as one.
119
 */
120
108
#define GRAPH_EXEC_SYMBOL_LIST(...) GRAPH_EXEC_SYMBOL_LIST_X(__VA_ARGS__), LIST_COUNT(__VA_ARGS__)
121
/**
122
 * Pass both default sources and default sources size to function that accepts (sources, source size).
123
 * @param x A given symbolic graph.
124
 */
125
156
#define SYMBOLIC_GRAPH_SOURCES(x) ccv_nnc_symbolic_graph_sources(x), ccv_nnc_symbolic_graph_source_size(x)
126
/**
127
 * Pass both default destinations and default destinations size to function that accepts (destinations, destination size).
128
 * @param x A given symbolic graph.
129
 */
130
151
#define SYMBOLIC_GRAPH_DESTINATIONS(x) ccv_nnc_symbolic_graph_destinations(x), ccv_nnc_symbolic_graph_destination_size(x)
131
/**
132
 * Pass a list of simplification passes to NNC functions that accepts (pass array, pass array size).
133
 * This method effectively gives two parameters as one.
134
 */
135
27
#define SYMBOLIC_GRAPH_PASSES(...) SYMBOLIC_GRAPH_PASSES_X(__VA_ARGS__), LIST_COUNT(__VA_ARGS__)
136
/**
137
 * Pass a list of CNNP models to NNC functions that accepts (model array, model array size).
138
 * This method effectively gives two parameters as one.
139
 */
140
6
#define MODEL_LIST(...) MODEL_LIST_X(__VA_ARGS__), LIST_COUNT(__VA_ARGS__)
141
/**
142
 * Pass a list of CNNP model IOs to NNC functions that accepts (model IO array, model IO array size).
143
 * This method effectively gives two parameters as one.
144
 */
145
80
#define MODEL_IO_LIST(...) MODEL_IO_LIST_X(__VA_ARGS__), LIST_COUNT(__VA_ARGS__)
146
/**
147
 * Pass a list of CNNP tensor params to ccv_cnnp_cmd_exec which accepts (tensor params array, tensor params array size).
148
 * This method effectively gives two parameters as one.
149
 */
150
8
#define MODEL_CMD_TENSOR_MAP(...) MODEL_CMD_TENSOR_MAP_X(__VA_ARGS__), (sizeof(MODEL_CMD_TENSOR_MAP_X(__VA_ARGS__)) / sizeof(ccv_cnnp_tensor_param_t))
151
/**
152
 * Pass a list of CNNP tensor type to ccv_cnnp_cmd_exec which accepts (tensor type array, tensor type array size).
153
 * This method effectively gives two parameters as one.
154
 */
155
8
#define MODEL_CMD_TENSOR_LIST(...) MODEL_CMD_TENSOR_LIST_X(__VA_ARGS__), LIST_COUNT(__VA_ARGS__)
156
/**
157
 * Pass a list of dataframe column ids to iteration function that accepts (column id array, column id array size).
158
 * This method effectively gives two parameters as one.
159
 */
160
68
#define COLUMN_ID_LIST(...) COLUMN_ID_LIST_X(__VA_ARGS__), LIST_COUNT(__VA_ARGS__)
161
162
8.16k
#define TRAVERSE_FULL 0,0,0,0
163
164
// We will support NUMA allocation on CPU in the future. Currently, this is not very meaningful (except enforce no memory reuse between tensors).
165
3.32k
#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__36
}})
166
96
#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__}})
167
#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__}})
168
3.32k
#define CPU_TENSOR_NHWC(dt, ...) CPU_NUMA_TENSOR_NHWC(ANY, dt, __VA_ARGS__)
169
96
#define CPU_TENSOR_NCHW(dt, ...) CPU_NUMA_TENSOR_NCHW(ANY, dt, __VA_ARGS__)
170
#define CPU_TENSOR_CHWN(dt, ...) CPU_NUMA_TENSOR_CHWN(ANY, dt, __VA_ARGS__)
171
// This way, we can do error check on the device type :)
172
297
#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__}})
173
84
#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__}})
174
#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__}})
175
/** @} */
176
177
99
#define DIM_ALLOC(...) (int [CCV_NNC_MAX_DIM_ALLOC]){__VA_ARGS__}
178
179
359
#define ESCAPE_X(...) __VA_ARGS__
180
5
#define HINT_X_1(_stride_) ((ccv_nnc_hint_t){.stride={.dim={ESCAPE_X _stride_}}, .border={.begin={0},.end={0}}})
181
118
#define HINT_X_2(_stride_, _border_) ((ccv_nnc_hint_t){.stride={.dim={ESCAPE_X _stride_}}, .border={.begin={ESCAPE_X _border_},.end={ESCAPE_X _border_}}})
182
#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_}}})
183
123
#define HINT_X_SEL(_1, _2, _3, _FX, ...) _FX
184
/**
185
 * @ingroup convenience_api
186
 * Simpler method to create hint.
187
 * HINT(stride), HINT(stride, border), HINT(stride, border begin, border end)
188
 */
189
123
#define HINT(...) HINT_X_SEL(__VA_ARGS__, HINT_X_3, 
HINT_X_2118
,
HINT_X_15
)(__VA_ARGS__)
190
191
static inline size_t ccv_nnc_dimension_count(const int dim[CCV_NNC_MAX_DIM_ALLOC])
192
7.53M
{
193
7.53M
  if (dim[0] == 0)
194
0
    return 0;
195
7.53M
  int i;
196
7.53M
  size_t count = 1;
197
28.5M
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && 
dim[i] > 028.2M
;
i++21.0M
)
198
21.0M
    count *= dim[i];
199
7.53M
  return count;
200
7.53M
}
Unexecuted instantiation: while.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: case_of.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: backward.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: simplify.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: rand.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: dropout.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: winograd.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: tape.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: broadcast.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: tensor.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: numa.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: forward.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: autograd.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: custom.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: dataframe.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: gradient.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: transform.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: graph.io.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: minimize.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: while.backward.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: graph.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: parallel.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: reduce.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: cudnn.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: cublas.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: nccl.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: schedule.tests.c:ccv_nnc_dimension_count
graph.vgg.d.tests.c:ccv_nnc_dimension_count
Line
Count
Source
192
4
{
193
4
  if (dim[0] == 0)
194
0
    return 0;
195
4
  int i;
196
4
  size_t count = 1;
197
12
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++8
)
198
8
    count *= dim[i];
199
4
  return count;
200
4
}
symbolic.graph.vgg.d.tests.c:ccv_nnc_dimension_count
Line
Count
Source
192
5
{
193
5
  if (dim[0] == 0)
194
0
    return 0;
195
5
  int i;
196
5
  size_t count = 1;
197
16
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++11
)
198
11
    count *= dim[i];
199
5
  return count;
200
5
}
Unexecuted instantiation: cifar.tests.c:ccv_nnc_dimension_count
Unexecuted instantiation: dense.net.tests.c:ccv_nnc_dimension_count
ccv_nnc_cmd.c:ccv_nnc_dimension_count
Line
Count
Source
192
446
{
193
446
  if (dim[0] == 0)
194
0
    return 0;
195
446
  int i;
196
446
  size_t count = 1;
197
1.31k
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++872
)
198
872
    count *= dim[i];
199
446
  return count;
200
446
}
ccv_nnc_tensor.c:ccv_nnc_dimension_count
Line
Count
Source
192
20.9k
{
193
20.9k
  if (dim[0] == 0)
194
0
    return 0;
195
20.9k
  int i;
196
20.9k
  size_t count = 1;
197
68.5k
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && 
dim[i] > 068.4k
;
i++47.6k
)
198
47.6k
    count *= dim[i];
199
20.9k
  return count;
200
20.9k
}
Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_dimension_count
ccv_nnc_graph.c:ccv_nnc_dimension_count
Line
Count
Source
192
3.34k
{
193
3.34k
  if (dim[0] == 0)
194
0
    return 0;
195
3.34k
  int i;
196
3.34k
  size_t count = 1;
197
9.85k
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++6.51k
)
198
6.51k
    count *= dim[i];
199
3.34k
  return count;
200
3.34k
}
ccv_nnc_symbolic_graph.c:ccv_nnc_dimension_count
Line
Count
Source
192
344
{
193
344
  if (dim[0] == 0)
194
0
    return 0;
195
344
  int i;
196
344
  size_t count = 1;
197
1.12k
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++778
)
198
778
    count *= dim[i];
199
344
  return count;
200
344
}
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
192
18.0k
{
193
18.0k
  if (dim[0] == 0)
194
0
    return 0;
195
18.0k
  int i;
196
18.0k
  size_t count = 1;
197
54.7k
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++36.7k
)
198
36.7k
    count *= dim[i];
199
18.0k
  return count;
200
18.0k
}
Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_dimension_count
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
192
22
{
193
22
  if (dim[0] == 0)
194
0
    return 0;
195
22
  int i;
196
22
  size_t count = 1;
197
44
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++22
)
198
22
    count *= dim[i];
199
22
  return count;
200
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_graph_run.c:ccv_nnc_dimension_count
Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_dimension_count
Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_dimension_count
Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.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
192
3.89M
{
193
3.89M
  if (dim[0] == 0)
194
0
    return 0;
195
3.89M
  int i;
196
3.89M
  size_t count = 1;
197
14.1M
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && 
dim[i] > 013.7M
;
i++10.2M
)
198
10.2M
    count *= dim[i];
199
3.89M
  return count;
200
3.89M
}
Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_dimension_count
ccv_cnnp_model_io.c:ccv_nnc_dimension_count
Line
Count
Source
192
20
{
193
20
  if (dim[0] == 0)
194
0
    return 0;
195
20
  int i;
196
20
  size_t count = 1;
197
62
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++42
)
198
42
    count *= dim[i];
199
20
  return count;
200
20
}
ccv_cnnp_model_core.c:ccv_nnc_dimension_count
Line
Count
Source
192
31
{
193
31
  if (dim[0] == 0)
194
0
    return 0;
195
31
  int i;
196
31
  size_t count = 1;
197
155
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++124
)
198
124
    count *= dim[i];
199
31
  return count;
200
31
}
ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_dimension_count
Line
Count
Source
192
6
{
193
6
  if (dim[0] == 0)
194
0
    return 0;
195
6
  int i;
196
6
  size_t count = 1;
197
18
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++12
)
198
12
    count *= dim[i];
199
6
  return count;
200
6
}
Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_dimension_count
Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_dimension_count
ccv_nnc_util_cpu_ref.c:ccv_nnc_dimension_count
Line
Count
Source
192
3.53M
{
193
3.53M
  if (dim[0] == 0)
194
0
    return 0;
195
3.53M
  int i;
196
3.53M
  size_t count = 1;
197
14.1M
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++10.5M
)
198
10.5M
    count *= dim[i];
199
3.53M
  return count;
200
3.53M
}
Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_dimension_count
ccv_nnc_relu_cpu_ref.c:ccv_nnc_dimension_count
Line
Count
Source
192
2.73k
{
193
2.73k
  if (dim[0] == 0)
194
0
    return 0;
195
2.73k
  int i;
196
2.73k
  size_t count = 1;
197
12.2k
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++9.54k
)
198
9.54k
    count *= dim[i];
199
2.73k
  return count;
200
2.73k
}
ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_dimension_count
Line
Count
Source
192
612
{
193
612
  if (dim[0] == 0)
194
0
    return 0;
195
612
  int i;
196
612
  size_t count = 1;
197
1.83k
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++1.22k
)
198
1.22k
    count *= dim[i];
199
612
  return count;
200
612
}
ccv_nnc_softmax_cpu_ref.c:ccv_nnc_dimension_count
Line
Count
Source
192
512
{
193
512
  if (dim[0] == 0)
194
0
    return 0;
195
512
  int i;
196
512
  size_t count = 1;
197
1.03k
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++527
)
198
527
    count *= dim[i];
199
512
  return count;
200
512
}
ccv_nnc_conv_cpu_ref.c:ccv_nnc_dimension_count
Line
Count
Source
192
2.21k
{
193
2.21k
  if (dim[0] == 0)
194
0
    return 0;
195
2.21k
  int i;
196
2.21k
  size_t count = 1;
197
7.73k
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++5.52k
)
198
5.52k
    count *= dim[i];
199
2.21k
  return count;
200
2.21k
}
Unexecuted instantiation: ccv_nnc_conv_cpu_opt.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
192
4.50k
{
193
4.50k
  if (dim[0] == 0)
194
0
    return 0;
195
4.50k
  int i;
196
4.50k
  size_t count = 1;
197
13.4k
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++8.96k
)
198
8.96k
    count *= dim[i];
199
4.50k
  return count;
200
4.50k
}
ccv_nnc_mul_cpu_ref.c:ccv_nnc_dimension_count
Line
Count
Source
192
35
{
193
35
  if (dim[0] == 0)
194
0
    return 0;
195
35
  int i;
196
35
  size_t count = 1;
197
76
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++41
)
198
41
    count *= dim[i];
199
35
  return count;
200
35
}
Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_dimension_count
ccv_nnc_ew_cpu_ref.c:ccv_nnc_dimension_count
Line
Count
Source
192
33.4k
{
193
33.4k
  if (dim[0] == 0)
194
0
    return 0;
195
33.4k
  int i;
196
33.4k
  size_t count = 1;
197
97.9k
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++64.4k
)
198
64.4k
    count *= dim[i];
199
33.4k
  return count;
200
33.4k
}
ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_dimension_count
Line
Count
Source
192
22
{
193
22
  if (dim[0] == 0)
194
0
    return 0;
195
22
  int i;
196
22
  size_t count = 1;
197
83
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++61
)
198
61
    count *= dim[i];
199
22
  return count;
200
22
}
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_dropout_cpu_ref.c:ccv_nnc_dimension_count
Line
Count
Source
192
3
{
193
3
  if (dim[0] == 0)
194
0
    return 0;
195
3
  int i;
196
3
  size_t count = 1;
197
9
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++6
)
198
6
    count *= dim[i];
199
3
  return count;
200
3
}
Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_dimension_count
Unexecuted instantiation: ccv_nnc_softmax_crossentropy.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_gemm_cpu_opt.c:ccv_nnc_dimension_count
_ccv_nnc_gemm_cpu_sys.c:ccv_nnc_dimension_count
Line
Count
Source
192
15.6k
{
193
15.6k
  if (dim[0] == 0)
194
0
    return 0;
195
15.6k
  int i;
196
15.6k
  size_t count = 1;
197
36.4k
  for (i = 0; i < CCV_NNC_MAX_DIM_ALLOC && dim[i] > 0; 
i++20.8k
)
198
20.8k
    count *= dim[i];
199
15.6k
  return count;
200
15.6k
}
Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_dimension_count
201
202
static inline size_t ccv_nnc_tensor_count(const ccv_nnc_tensor_param_t params)
203
7.55M
{
204
7.55M
  return ccv_nnc_dimension_count(params.dim);
205
7.55M
}
Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_count
graph.vgg.d.tests.c:ccv_nnc_tensor_count
Line
Count
Source
203
4
{
204
4
  return ccv_nnc_dimension_count(params.dim);
205
4
}
symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_count
Line
Count
Source
203
5
{
204
5
  return ccv_nnc_dimension_count(params.dim);
205
5
}
Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_count
Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_count
ccv_nnc_cmd.c:ccv_nnc_tensor_count
Line
Count
Source
203
446
{
204
446
  return ccv_nnc_dimension_count(params.dim);
205
446
}
ccv_nnc_tensor.c:ccv_nnc_tensor_count
Line
Count
Source
203
20.9k
{
204
20.9k
  return ccv_nnc_dimension_count(params.dim);
205
20.9k
}
Unexecuted instantiation: ccv_nnc_stream.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
203
172
{
204
172
  return ccv_nnc_dimension_count(params.dim);
205
172
}
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
203
18.0k
{
204
18.0k
  return ccv_nnc_dimension_count(params.dim);
205
18.0k
}
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
203
22
{
204
22
  return ccv_nnc_dimension_count(params.dim);
205
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_graph_run.c:ccv_nnc_tensor_count
Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_count
Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_count
Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.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
203
3.92M
{
204
3.92M
  return ccv_nnc_dimension_count(params.dim);
205
3.92M
}
Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_count
ccv_cnnp_model_io.c:ccv_nnc_tensor_count
Line
Count
Source
203
20
{
204
20
  return ccv_nnc_dimension_count(params.dim);
205
20
}
ccv_cnnp_model_core.c:ccv_nnc_tensor_count
Line
Count
Source
203
31
{
204
31
  return ccv_nnc_dimension_count(params.dim);
205
31
}
ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_count
Line
Count
Source
203
6
{
204
6
  return ccv_nnc_dimension_count(params.dim);
205
6
}
Unexecuted instantiation: ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_count
Unexecuted instantiation: ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_count
ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_count
Line
Count
Source
203
3.53M
{
204
3.53M
  return ccv_nnc_dimension_count(params.dim);
205
3.53M
}
Unexecuted instantiation: ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_count
ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_count
Line
Count
Source
203
2.73k
{
204
2.73k
  return ccv_nnc_dimension_count(params.dim);
205
2.73k
}
ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_count
Line
Count
Source
203
612
{
204
612
  return ccv_nnc_dimension_count(params.dim);
205
612
}
ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_count
Line
Count
Source
203
512
{
204
512
  return ccv_nnc_dimension_count(params.dim);
205
512
}
ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_count
Line
Count
Source
203
2.21k
{
204
2.21k
  return ccv_nnc_dimension_count(params.dim);
205
2.21k
}
Unexecuted instantiation: ccv_nnc_conv_cpu_opt.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
203
4.50k
{
204
4.50k
  return ccv_nnc_dimension_count(params.dim);
205
4.50k
}
ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_count
Line
Count
Source
203
35
{
204
35
  return ccv_nnc_dimension_count(params.dim);
205
35
}
Unexecuted instantiation: ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_count
ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_count
Line
Count
Source
203
33.4k
{
204
33.4k
  return ccv_nnc_dimension_count(params.dim);
205
33.4k
}
ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_count
Line
Count
Source
203
22
{
204
22
  return ccv_nnc_dimension_count(params.dim);
205
22
}
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_dropout_cpu_ref.c:ccv_nnc_tensor_count
Line
Count
Source
203
3
{
204
3
  return ccv_nnc_dimension_count(params.dim);
205
3
}
Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_count
Unexecuted instantiation: ccv_nnc_softmax_crossentropy.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_gemm_cpu_opt.c:ccv_nnc_tensor_count
_ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_count
Line
Count
Source
203
15.6k
{
204
15.6k
  return ccv_nnc_dimension_count(params.dim);
205
15.6k
}
Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_count
206
207
static inline size_t ccv_nnc_tensor_data_size(const ccv_nnc_tensor_param_t params)
208
34.8k
{
209
34.8k
  return (CCV_GET_DATA_TYPE_SIZE(params.datatype) * (ssize_t)ccv_nnc_tensor_count(params) + 15) & -16;
210
34.8k
}
Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: dense.net.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
208
16.7k
{
209
16.7k
  return (CCV_GET_DATA_TYPE_SIZE(params.datatype) * (ssize_t)ccv_nnc_tensor_count(params) + 15) & -16;
210
16.7k
}
Unexecuted instantiation: ccv_nnc_stream.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
208
18.0k
{
209
18.0k
  return (CCV_GET_DATA_TYPE_SIZE(params.datatype) * (ssize_t)ccv_nnc_tensor_count(params) + 15) & -16;
210
18.0k
}
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
208
22
{
209
22
  return (CCV_GET_DATA_TYPE_SIZE(params.datatype) * (ssize_t)ccv_nnc_tensor_count(params) + 15) & -16;
210
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_graph_run.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: ccv_nnc_dynamic_graph.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_minimize.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_model.c:ccv_nnc_tensor_data_size
ccv_cnnp_model_io.c:ccv_nnc_tensor_data_size
Line
Count
Source
208
20
{
209
20
  return (CCV_GET_DATA_TYPE_SIZE(params.datatype) * (ssize_t)ccv_nnc_tensor_count(params) + 15) & -16;
210
20
}
Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: ccv_nnc_categorical_crossentropy_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_max_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_sgd_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_softmax_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_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_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_batch_norm_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_rand_uniform_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_dropout_cpu_ref.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_data_size
Unexecuted instantiation: ccv_nnc_softmax_crossentropy.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_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_pool.c:ccv_nnc_tensor_data_size
211
212
static inline void ccv_nnc_tensor_view_get_dim(const ccv_nnc_tensor_view_t* const tv, int dim[CCV_NNC_MAX_DIM_ALLOC])
213
62.6k
{
214
62.6k
  int x;
215
62.6k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
216
62.6k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
217
192k
  for (x = 0; x < offset; 
x++129k
)
218
129k
    dim[x] = 1;
219
183k
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++120k
)
220
120k
    dim[x] = tv->info.dim[x - offset];
221
62.6k
}
Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: dense.net.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_stream.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_graph_run.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_backward.c:ccv_nnc_tensor_view_get_dim
Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.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_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_nnc_categorical_crossentropy_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
213
8.07k
{
214
8.07k
  int x;
215
8.07k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
216
8.07k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
217
24.1k
  for (x = 0; x < offset; 
x++16.1k
)
218
16.1k
    dim[x] = 1;
219
24.2k
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++16.1k
)
220
16.1k
    dim[x] = tv->info.dim[x - offset];
221
8.07k
}
ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_view_get_dim
Line
Count
Source
213
4
{
214
4
  int x;
215
4
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
216
4
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
217
16
  for (x = 0; x < offset; 
x++12
)
218
12
    dim[x] = 1;
219
8
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++4
)
220
4
    dim[x] = tv->info.dim[x - offset];
221
4
}
ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_view_get_dim
Line
Count
Source
213
5
{
214
5
  int x;
215
5
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
216
5
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
217
18
  for (x = 0; x < offset; 
x++13
)
218
13
    dim[x] = 1;
219
12
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++7
)
220
7
    dim[x] = tv->info.dim[x - offset];
221
5
}
ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_view_get_dim
Line
Count
Source
213
9.44k
{
214
9.44k
  int x;
215
9.44k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
216
9.44k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
217
30.2k
  for (x = 0; x < offset; 
x++20.8k
)
218
20.8k
    dim[x] = 1;
219
26.4k
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++16.9k
)
220
16.9k
    dim[x] = tv->info.dim[x - offset];
221
9.44k
}
Unexecuted instantiation: ccv_nnc_relu_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_softmax_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_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
213
17.9k
{
214
17.9k
  int x;
215
17.9k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
216
17.9k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
217
54.0k
  for (x = 0; x < offset; 
x++36.0k
)
218
36.0k
    dim[x] = 1;
219
53.8k
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++35.8k
)
220
35.8k
    dim[x] = tv->info.dim[x - offset];
221
17.9k
}
ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_view_get_dim
Line
Count
Source
213
68
{
214
68
  int x;
215
68
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
216
68
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
217
238
  for (x = 0; x < offset; 
x++170
)
218
170
    dim[x] = 1;
219
170
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++102
)
220
102
    dim[x] = tv->info.dim[x - offset];
221
68
}
ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_view_get_dim
Line
Count
Source
213
54
{
214
54
  int x;
215
54
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
216
54
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
217
135
  for (x = 0; x < offset; 
x++81
)
218
81
    dim[x] = 1;
219
189
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++135
)
220
135
    dim[x] = tv->info.dim[x - offset];
221
54
}
ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_view_get_dim
Line
Count
Source
213
27.0k
{
214
27.0k
  int x;
215
27.0k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
216
27.0k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
217
83.5k
  for (x = 0; x < offset; 
x++56.5k
)
218
56.5k
    dim[x] = 1;
219
78.5k
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++51.5k
)
220
51.5k
    dim[x] = tv->info.dim[x - offset];
221
27.0k
}
Unexecuted instantiation: ccv_nnc_rand_uniform_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
ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_view_get_dim
Line
Count
Source
213
3
{
214
3
  int x;
215
3
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
216
3
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
217
9
  for (x = 0; x < offset; 
x++6
)
218
6
    dim[x] = 1;
219
9
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++6
)
220
6
    dim[x] = tv->info.dim[x - offset];
221
3
}
Unexecuted instantiation: ccv_nnc_categorical_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_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_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_pool.c:ccv_nnc_tensor_view_get_dim
222
223
static inline CCV_WARN_UNUSED(int) ccv_nnc_tensor_view_check_dim(const ccv_nnc_tensor_view_t* const tv, int dim[CCV_NNC_MAX_DIM_ALLOC])
224
129k
{
225
129k
  int x;
226
129k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
227
129k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
228
403k
  for (x = 0; x < offset; 
x++273k
)
229
273k
    if (dim[x] != 1)
230
10
      return 0;
231
373k
  
for (x = offset; 129k
x < CCV_NNC_MAX_DIM + 2;
x++243k
)
232
243k
    if (dim[x] != tv->info.dim[x - offset])
233
12
      return 0;
234
129k
  
return 1129k
;
235
129k
}
Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: dense.net.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_stream.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_graph_run.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_backward.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.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_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_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_check_dim
Unexecuted instantiation: ccv_nnc_reduce_sum_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
224
2
{
225
2
  int x;
226
2
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
227
2
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
228
8
  for (x = 0; x < offset; 
x++6
)
229
6
    if (dim[x] != 1)
230
0
      return 0;
231
4
  
for (x = offset; 2
x < CCV_NNC_MAX_DIM + 2;
x++2
)
232
2
    if (dim[x] != tv->info.dim[x - offset])
233
0
      return 0;
234
2
  return 1;
235
2
}
ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_view_check_dim
Line
Count
Source
224
5
{
225
5
  int x;
226
5
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
227
5
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
228
17
  for (x = 0; x < offset; 
x++12
)
229
12
    if (dim[x] != 1)
230
0
      return 0;
231
13
  
for (x = offset; 5
x < CCV_NNC_MAX_DIM + 2;
x++8
)
232
8
    if (dim[x] != tv->info.dim[x - offset])
233
0
      return 0;
234
5
  return 1;
235
5
}
ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_view_check_dim
Line
Count
Source
224
37.7k
{
225
37.7k
  int x;
226
37.7k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
227
37.7k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
228
121k
  for (x = 0; x < offset; 
x++83.2k
)
229
83.2k
    if (dim[x] != 1)
230
0
      return 0;
231
105k
  
for (x = offset; 37.7k
x < CCV_NNC_MAX_DIM + 2;
x++67.8k
)
232
67.8k
    if (dim[x] != tv->info.dim[x - offset])
233
0
      return 0;
234
37.7k
  return 1;
235
37.7k
}
Unexecuted instantiation: ccv_nnc_relu_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_softmax_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_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
224
17.9k
{
225
17.9k
  int x;
226
17.9k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
227
17.9k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
228
54.0k
  for (x = 0; x < offset; 
x++36.0k
)
229
36.0k
    if (dim[x] != 1)
230
5
      return 0;
231
53.8k
  
for (x = offset; 17.9k
x < CCV_NNC_MAX_DIM + 2;
x++35.8k
)
232
35.8k
    if (dim[x] != tv->info.dim[x - offset])
233
9
      return 0;
234
17.9k
  
return 117.9k
;
235
17.9k
}
ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_view_check_dim
Line
Count
Source
224
60
{
225
60
  int x;
226
60
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
227
60
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
228
204
  for (x = 0; x < offset; 
x++144
)
229
149
    if (dim[x] != 1)
230
5
      return 0;
231
132
  
for (x = offset; 55
x < CCV_NNC_MAX_DIM + 2;
x++77
)
232
80
    if (dim[x] != tv->info.dim[x - offset])
233
3
      return 0;
234
55
  
return 152
;
235
55
}
ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_view_check_dim
Line
Count
Source
224
162
{
225
162
  int x;
226
162
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
227
162
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
228
546
  for (x = 0; x < offset; 
x++384
)
229
384
    if (dim[x] != 1)
230
0
      return 0;
231
426
  
for (x = offset; 162
x < CCV_NNC_MAX_DIM + 2;
x++264
)
232
264
    if (dim[x] != tv->info.dim[x - offset])
233
0
      return 0;
234
162
  return 1;
235
162
}
ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_view_check_dim
Line
Count
Source
224
73.4k
{
225
73.4k
  int x;
226
73.4k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
227
73.4k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
228
227k
  for (x = 0; x < offset; 
x++154k
)
229
154k
    if (dim[x] != 1)
230
0
      return 0;
231
213k
  
for (x = offset; 73.4k
x < CCV_NNC_MAX_DIM + 2;
x++139k
)
232
139k
    if (dim[x] != tv->info.dim[x - offset])
233
0
      return 0;
234
73.4k
  return 1;
235
73.4k
}
Unexecuted instantiation: ccv_nnc_rand_uniform_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
ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_view_check_dim
Line
Count
Source
224
3
{
225
3
  int x;
226
3
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
227
3
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
228
9
  for (x = 0; x < offset; 
x++6
)
229
6
    if (dim[x] != 1)
230
0
      return 0;
231
9
  
for (x = offset; 3
x < CCV_NNC_MAX_DIM + 2;
x++6
)
232
6
    if (dim[x] != tv->info.dim[x - offset])
233
0
      return 0;
234
3
  return 1;
235
3
}
Unexecuted instantiation: ccv_nnc_categorical_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_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_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_pool.c:ccv_nnc_tensor_view_check_dim
236
237
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])
238
4.51k
{
239
4.51k
  int x;
240
4.51k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
241
4.51k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
242
13.6k
  for (x = 0; x < offset; 
x++9.08k
)
243
9.08k
    dim[x] = ccv_max(1, dim[x]);
244
13.5k
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++8.99k
)
245
8.99k
    dim[x] = ccv_max(dim[x], tv->info.dim[x - offset]);
246
4.51k
}
Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: numa.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: forward.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: tensor.bind.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: dynamic.graph.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: schedule.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: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: dense.net.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_stream.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_graph_run.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_backward.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_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_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_nnc_categorical_crossentropy_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_max_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
Unexecuted instantiation: ccv_nnc_util_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_relu_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_softmax_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_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
238
4.50k
{
239
4.50k
  int x;
240
4.50k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
241
4.50k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
242
13.5k
  for (x = 0; x < offset; 
x++9.05k
)
243
9.05k
    dim[x] = ccv_max(1, dim[x]);
244
13.4k
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++8.98k
)
245
8.98k
    dim[x] = ccv_max(dim[x], tv->info.dim[x - offset]);
246
4.50k
}
ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_view_get_broadcast_dim
Line
Count
Source
238
10
{
239
10
  int x;
240
10
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
241
10
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
242
40
  for (x = 0; x < offset; 
x++30
)
243
30
    dim[x] = ccv_max(1, dim[x]);
244
20
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++10
)
245
10
    dim[x] = ccv_max(dim[x], tv->info.dim[x - offset]);
246
10
}
Unexecuted instantiation: ccv_nnc_batch_norm_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_rand_uniform_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_dropout_cpu_ref.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_softmax_crossentropy.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_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_pool.c:ccv_nnc_tensor_view_get_broadcast_dim
247
248
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])
249
11.0k
{
250
11.0k
  int x;
251
11.0k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
252
11.0k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
253
33.0k
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++22.0k
)
254
22.0k
    if (dim[x] != tv->info.dim[x - offset] && 
tv->info.dim[x - offset] != 14.01k
)
255
0
      return 0;
256
11.0k
  return 1;
257
11.0k
}
Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: numa.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: forward.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: tensor.bind.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: dynamic.graph.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: schedule.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: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_view_check_broadcast_dim
Unexecuted instantiation: dense.net.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_stream.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_graph_run.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_backward.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_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_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_nnc_categorical_crossentropy_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
249
2.03k
{
250
2.03k
  int x;
251
2.03k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
252
2.03k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
253
6.07k
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++4.04k
)
254
4.04k
    if (dim[x] != tv->info.dim[x - offset] && 
tv->info.dim[x - offset] != 14.00k
)
255
0
      return 0;
256
2.03k
  return 1;
257
2.03k
}
ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
Line
Count
Source
249
2
{
250
2
  int x;
251
2
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
252
2
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
253
4
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++2
)
254
2
    if (dim[x] != tv->info.dim[x - offset] && tv->info.dim[x - offset] != 1)
255
0
      return 0;
256
2
  return 1;
257
2
}
Unexecuted instantiation: ccv_nnc_util_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_relu_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_softmax_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_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
249
9.01k
{
250
9.01k
  int x;
251
9.01k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
252
9.01k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
253
26.9k
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++17.9k
)
254
17.9k
    if (dim[x] != tv->info.dim[x - offset] && 
tv->info.dim[x - offset] != 16
)
255
0
      return 0;
256
9.01k
  return 1;
257
9.01k
}
ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_view_check_broadcast_dim
Line
Count
Source
249
16
{
250
16
  int x;
251
16
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
252
16
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
253
40
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++24
)
254
24
    if (dim[x] != tv->info.dim[x - offset] && 
tv->info.dim[x - offset] != 12
)
255
0
      return 0;
256
16
  return 1;
257
16
}
Unexecuted instantiation: ccv_nnc_batch_norm_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_rand_uniform_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_dropout_cpu_ref.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_softmax_crossentropy.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_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_pool.c:ccv_nnc_tensor_view_check_broadcast_dim
258
259
static inline void ccv_nnc_tensor_view_get_inc(const ccv_nnc_tensor_view_t* const tv, int inc[CCV_NNC_MAX_DIM_ALLOC])
260
98.8k
{
261
98.8k
  int x;
262
98.8k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
263
98.8k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
264
306k
  for (x = 0; x < offset; 
x++207k
)
265
207k
    inc[x] = 1;
266
286k
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++187k
)
267
187k
    inc[x] = CCV_IS_TENSOR_VIEW(tv) ? 
tv->inc[x - offset]79
:
tv->info.dim[x - offset]187k
;
268
98.8k
}
Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: dense.net.tests.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_cmd.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_tensor.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_stream.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_graph.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_symbolic_graph.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_symbolic_graph_io.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_symbolic_graph_compile.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_symbolic_graph_backward.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_symbolic_graph_while.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_graph_while.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_tensor_tape.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_symbolic_graph_case_of.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_graph_case_of.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_symbolic_graph_minimize.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_symbolic_graph_parallel.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_symbolic_graph_simplify.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_graph_run.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_dynamic_graph.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_dynamic_graph_backward.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_dynamic_graph_minimize.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_cnnp_dataframe.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_cnnp_dataframe_core.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_cnnp_dataframe_addons.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_cnnp_model_core.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_categorical_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_get_inc
ccv_nnc_reduce_sum_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Line
Count
Source
260
8.07k
{
261
8.07k
  int x;
262
8.07k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
263
8.07k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
264
24.1k
  for (x = 0; x < offset; 
x++16.1k
)
265
16.1k
    inc[x] = 1;
266
24.2k
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++16.1k
)
267
16.1k
    inc[x] = CCV_IS_TENSOR_VIEW(tv) ? 
tv->inc[x - offset]0
: tv->info.dim[x - offset];
268
8.07k
}
ccv_nnc_reduce_max_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Line
Count
Source
260
6
{
261
6
  int x;
262
6
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
263
6
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
264
24
  for (x = 0; x < offset; 
x++18
)
265
18
    inc[x] = 1;
266
12
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++6
)
267
6
    inc[x] = CCV_IS_TENSOR_VIEW(tv) ? 
tv->inc[x - offset]0
: tv->info.dim[x - offset];
268
6
}
ccv_nnc_util_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Line
Count
Source
260
18
{
261
18
  int x;
262
18
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
263
18
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
264
51
  for (x = 0; x < offset; 
x++33
)
265
33
    inc[x] = 1;
266
57
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++39
)
267
39
    inc[x] = CCV_IS_TENSOR_VIEW(tv) ? 
tv->inc[x - offset]23
:
tv->info.dim[x - offset]16
;
268
18
}
ccv_nnc_sgd_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Line
Count
Source
260
47.2k
{
261
47.2k
  int x;
262
47.2k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
263
47.2k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
264
151k
  for (x = 0; x < offset; 
x++104k
)
265
104k
    inc[x] = 1;
266
132k
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++84.8k
)
267
84.8k
    inc[x] = CCV_IS_TENSOR_VIEW(tv) ? 
tv->inc[x - offset]0
: tv->info.dim[x - offset];
268
47.2k
}
Unexecuted instantiation: ccv_nnc_relu_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_conv_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_gemm_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_view_get_inc
ccv_nnc_add_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Line
Count
Source
260
4.47k
{
261
4.47k
  int x;
262
4.47k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
263
4.47k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
264
13.4k
  for (x = 0; x < offset; 
x++8.92k
)
265
8.92k
    inc[x] = 1;
266
13.4k
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++8.98k
)
267
8.98k
    inc[x] = CCV_IS_TENSOR_VIEW(tv) ? 
tv->inc[x - offset]0
: tv->info.dim[x - offset];
268
4.47k
}
ccv_nnc_mul_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Line
Count
Source
260
25
{
261
25
  int x;
262
25
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
263
25
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
264
75
  for (x = 0; x < offset; 
x++50
)
265
50
    inc[x] = 1;
266
75
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++50
)
267
50
    inc[x] = CCV_IS_TENSOR_VIEW(tv) ? 
tv->inc[x - offset]0
: tv->info.dim[x - offset];
268
25
}
ccv_nnc_batch_norm_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Line
Count
Source
260
165
{
261
165
  int x;
262
165
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
263
165
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
264
477
  for (x = 0; x < offset; 
x++312
)
265
312
    inc[x] = 1;
266
513
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++348
)
267
348
    inc[x] = CCV_IS_TENSOR_VIEW(tv) ? 
tv->inc[x - offset]0
: tv->info.dim[x - offset];
268
165
}
ccv_nnc_ew_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Line
Count
Source
260
38.8k
{
261
38.8k
  int x;
262
38.8k
  const int nd = ccv_nnc_tensor_nd(tv->info.dim);
263
38.8k
  const int offset = CCV_NNC_MAX_DIM + 2 - nd;
264
116k
  for (x = 0; x < offset; 
x++77.9k
)
265
77.9k
    inc[x] = 1;
266
116k
  for (x = offset; x < CCV_NNC_MAX_DIM + 2; 
x++77.5k
)
267
77.5k
    inc[x] = CCV_IS_TENSOR_VIEW(tv) ? 
tv->inc[x - offset]56
:
tv->info.dim[x - offset]77.5k
;
268
38.8k
}
Unexecuted instantiation: ccv_nnc_rand_uniform_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_max_pool_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_avg_pool_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_dropout_cpu_ref.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: _ccv_nnc_conv_cpu_4x4_3x3_winograd.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: _ccv_nnc_conv_cpu_fft.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: _ccv_nnc_conv_cpu_gemm.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: _ccv_nnc_conv_cpu_opt.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_convolution.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: _ccv_nnc_gemm_cpu_opt.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: _ccv_nnc_gemm_cpu_sys.c:ccv_nnc_tensor_view_get_inc
Unexecuted instantiation: ccv_nnc_pool.c:ccv_nnc_tensor_view_get_inc
269
270
static inline int ccv_nnc_tensor_get_n(const ccv_nnc_tensor_param_t params)
271
611
{
272
611
  switch (params.format)
273
611
  {
274
611
    case CCV_TENSOR_FORMAT_NHWC:
275
611
    case CCV_TENSOR_FORMAT_NCHW:
276
611
      if (ccv_nnc_tensor_nd(params.dim) == CCV_NNC_MAX_DIM + 1)
277
38
        return 1;
278
573
      else
279
573
        return params.dim[0];
280
0
    case CCV_TENSOR_FORMAT_CHWN:
281
0
      return params.dim[CCV_NNC_MAX_DIM + 1];
282
0
  }
283
0
  return 0;
284
0
}
Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: dense.net.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_stream.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_graph_run.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: ccv_nnc_dynamic_graph.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_minimize.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_model.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_get_n
ccv_cnnp_model_core.c:ccv_nnc_tensor_get_n
Line
Count
Source
271
31
{
272
31
  switch (params.format)
273
31
  {
274
31
    case CCV_TENSOR_FORMAT_NHWC:
275
31
    case CCV_TENSOR_FORMAT_NCHW:
276
31
      if (ccv_nnc_tensor_nd(params.dim) == CCV_NNC_MAX_DIM + 1)
277
0
        return 1;
278
31
      else
279
31
        return params.dim[0];
280
0
    case CCV_TENSOR_FORMAT_CHWN:
281
0
      return params.dim[CCV_NNC_MAX_DIM + 1];
282
0
  }
283
0
  return 0;
284
0
}
Unexecuted instantiation: ccv_nnc_categorical_crossentropy_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_max_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_sgd_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_softmax_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_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_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_batch_norm_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_rand_uniform_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_dropout_cpu_ref.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_get_n
Unexecuted instantiation: ccv_nnc_softmax_crossentropy.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
271
580
{
272
580
  switch (params.format)
273
580
  {
274
580
    case CCV_TENSOR_FORMAT_NHWC:
275
580
    case CCV_TENSOR_FORMAT_NCHW:
276
580
      if (ccv_nnc_tensor_nd(params.dim) == CCV_NNC_MAX_DIM + 1)
277
38
        return 1;
278
542
      else
279
542
        return params.dim[0];
280
0
    case CCV_TENSOR_FORMAT_CHWN:
281
0
      return params.dim[CCV_NNC_MAX_DIM + 1];
282
0
  }
283
0
  return 0;
284
0
}
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_pool.c:ccv_nnc_tensor_get_n
285
286
static inline int ccv_nnc_tensor_get_c(const ccv_nnc_tensor_param_t params)
287
3.22M
{
288
3.22M
  switch (params.format)
289
3.22M
  {
290
3.23M
    case CCV_TENSOR_FORMAT_NHWC:
291
3.23M
      return params.dim[ccv_nnc_tensor_nd(params.dim) - 1];
292
3.22M
    case CCV_TENSOR_FORMAT_NCHW:
293
70
      if (ccv_nnc_tensor_nd(params.dim) == CCV_NNC_MAX_DIM + 1)
294
0
        return params.dim[0];
295
70
      else
296
70
        return params.dim[1];
297
0
    case CCV_TENSOR_FORMAT_CHWN:
298
0
      return params.dim[0];
299
0
  }
300
0
  return 0;
301
0
}
Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: dense.net.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_stream.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_graph_run.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: ccv_nnc_dynamic_graph.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_minimize.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
287
3.22M
{
288
3.22M
  switch (params.format)
289
3.22M
  {
290
3.23M
    case CCV_TENSOR_FORMAT_NHWC:
291
3.23M
      return params.dim[ccv_nnc_tensor_nd(params.dim) - 1];
292
3.22M
    case CCV_TENSOR_FORMAT_NCHW:
293
0
      if (ccv_nnc_tensor_nd(params.dim) == CCV_NNC_MAX_DIM + 1)
294
0
        return params.dim[0];
295
0
      else
296
0
        return params.dim[1];
297
0
    case CCV_TENSOR_FORMAT_CHWN:
298
0
      return params.dim[0];
299
0
  }
300
0
  return 0;
301
0
}
Unexecuted instantiation: ccv_cnnp_model.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_get_c
ccv_cnnp_model_core.c:ccv_nnc_tensor_get_c
Line
Count
Source
287
88
{
288
88
  switch (params.format)
289
88
  {
290
88
    case CCV_TENSOR_FORMAT_NHWC:
291
32
      return params.dim[ccv_nnc_tensor_nd(params.dim) - 1];
292
88
    case CCV_TENSOR_FORMAT_NCHW:
293
56
      if (ccv_nnc_tensor_nd(params.dim) == CCV_NNC_MAX_DIM + 1)
294
0
        return params.dim[0];
295
56
      else
296
56
        return params.dim[1];
297
0
    case CCV_TENSOR_FORMAT_CHWN:
298
0
      return params.dim[0];
299
0
  }
300
0
  return 0;
301
0
}
Unexecuted instantiation: ccv_nnc_categorical_crossentropy_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_max_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_sgd_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_softmax_crossentropy_cpu_ref.c:ccv_nnc_tensor_get_c
Unexecuted instantiation: ccv_nnc_softmax_cpu_ref.c:ccv_nnc_tensor_get_c
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_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_batch_norm_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_rand_uniform_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_dropout_cpu_ref.c:ccv_nnc_tensor_get_c
ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_get_c
Line
Count
Source
287
2
{
288
2
  switch (params.format)
289
2
  {
290
2
    case CCV_TENSOR_FORMAT_NHWC:
291
0
      return params.dim[ccv_nnc_tensor_nd(params.dim) - 1];
292
2
    case CCV_TENSOR_FORMAT_NCHW:
293
2
      if (ccv_nnc_tensor_nd(params.dim) == CCV_NNC_MAX_DIM + 1)
294
0
        return params.dim[0];
295
2
      else
296
2
        return params.dim[1];
297
0
    case CCV_TENSOR_FORMAT_CHWN:
298
0
      return params.dim[0];
299
0
  }
300
0
  return 0;
301
0
}
ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_get_c
Line
Count
Source
287
12
{
288
12
  switch (params.format)
289
12
  {
290
12
    case CCV_TENSOR_FORMAT_NHWC:
291
0
      return params.dim[ccv_nnc_tensor_nd(params.dim) - 1];
292
12
    case CCV_TENSOR_FORMAT_NCHW:
293
12
      if (ccv_nnc_tensor_nd(params.dim) == CCV_NNC_MAX_DIM + 1)
294
0
        return params.dim[0];
295
12
      else
296
12
        return params.dim[1];
297
0
    case CCV_TENSOR_FORMAT_CHWN:
298
0
      return params.dim[0];
299
0
  }
300
0
  return 0;
301
0
}
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_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_pool.c:ccv_nnc_tensor_get_c
302
303
static inline void ccv_nnc_tensor_set_n(ccv_nnc_tensor_param_t* const params, const int n)
304
326
{
305
326
  switch (params->format)
306
326
  {
307
326
    case CCV_TENSOR_FORMAT_NHWC:
308
326
    case CCV_TENSOR_FORMAT_NCHW:
309
326
      params->dim[0] = n;
310
326
      break;
311
326
    case CCV_TENSOR_FORMAT_CHWN:
312
0
      params->dim[CCV_NNC_MAX_DIM + 1] = n;
313
0
      break;
314
326
  }
315
326
}
Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: dense.net.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_stream.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_graph_run.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: ccv_nnc_dynamic_graph.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_minimize.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_model.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_set_n
ccv_cnnp_model_core.c:ccv_nnc_tensor_set_n
Line
Count
Source
304
36
{
305
36
  switch (params->format)
306
36
  {
307
36
    case CCV_TENSOR_FORMAT_NHWC:
308
36
    case CCV_TENSOR_FORMAT_NCHW:
309
36
      params->dim[0] = n;
310
36
      break;
311
36
    case CCV_TENSOR_FORMAT_CHWN:
312
0
      params->dim[CCV_NNC_MAX_DIM + 1] = n;
313
0
      break;
314
36
  }
315
36
}
Unexecuted instantiation: ccv_nnc_categorical_crossentropy_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_max_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_sgd_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_softmax_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_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_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_batch_norm_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_rand_uniform_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_dropout_cpu_ref.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_set_n
Unexecuted instantiation: ccv_nnc_softmax_crossentropy.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
304
290
{
305
290
  switch (params->format)
306
290
  {
307
290
    case CCV_TENSOR_FORMAT_NHWC:
308
290
    case CCV_TENSOR_FORMAT_NCHW:
309
290
      params->dim[0] = n;
310
290
      break;
311
290
    case CCV_TENSOR_FORMAT_CHWN:
312
0
      params->dim[CCV_NNC_MAX_DIM + 1] = n;
313
0
      break;
314
290
  }
315
290
}
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_pool.c:ccv_nnc_tensor_set_n
316
317
static inline void ccv_nnc_tensor_set_c(ccv_nnc_tensor_param_t* const params, const int nd, const int c)
318
340
{
319
340
  switch (params->format)
320
340
  {
321
340
    case CCV_TENSOR_FORMAT_NHWC:
322
118
      params->dim[nd - 1] = c;
323
118
      break;
324
340
    case CCV_TENSOR_FORMAT_NCHW:
325
222
      if (nd == CCV_NNC_MAX_DIM + 1)
326
0
        params->dim[0] = c;
327
222
      else
328
222
        params->dim[1] = c;
329
222
      break;
330
340
    case CCV_TENSOR_FORMAT_CHWN:
331
0
      params->dim[0] = c;
332
0
      break;
333
340
  }
334
340
}
Unexecuted instantiation: while.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: case_of.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: crossentropy.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: backward.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: simplify.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: rand.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: dropout.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: winograd.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: tape.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: broadcast.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: tensor.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: dataframe.addons.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: numa.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: case_of.backward.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: forward.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: autograd.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: custom.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: dataframe.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: gradient.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: transform.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: graph.io.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: batch.norm.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: tensor.bind.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: symbolic.graph.compile.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: dynamic.graph.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: cnnp.core.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: minimize.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: while.backward.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: graph.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: parallel.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: autograd.vector.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: reduce.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: symbolic.graph.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: cudnn.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: cublas.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: nccl.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: schedule.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: graph.vgg.d.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: symbolic.graph.vgg.d.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: cifar.tests.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: dense.net.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_stream.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_graph_run.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: ccv_nnc_dynamic_graph.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_minimize.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_model.c:ccv_nnc_tensor_set_c
Unexecuted instantiation: ccv_cnnp_model_io.c:ccv_nnc_tensor_set_c
ccv_cnnp_model_core.c:ccv_nnc_tensor_set_c
Line
Count
Source
318
36
{
319
36
  switch (params->format)
320
36
  {
321
36
    case CCV_TENSOR_FORMAT_NHWC:
322
12
      params->dim[nd - 1] = c;
323
12
      break;
324
36
    case CCV_TENSOR_FORMAT_NCHW:
325
24
      if (nd == CCV_NNC_MAX_DIM + 1)
326
0
        params->dim[0] = c;
327
24
      else
328
24
        params->dim[1] = c;
329
24
      break;
330
36
    case CCV_TENSOR_FORMAT_CHWN:
331
0
      params->dim[0] = c;
332
0
      break;
333
36
  }
334
36
}
Unexecuted instantiation: ccv_nnc_categorical_crossentropy_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_max_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_sgd_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_softmax_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_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_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_batch_norm_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_rand_uniform_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_dropout_cpu_ref.c:ccv_nnc_tensor_set_c
ccv_nnc_categorical_crossentropy.c:ccv_nnc_tensor_set_c
Line
Count
Source
318
2
{
319
2
  switch (params->format)
320
2
  {
321
2
    case CCV_TENSOR_FORMAT_NHWC:
322
0
      params->dim[nd - 1] = c;
323
0
      break;
324
2
    case CCV_TENSOR_FORMAT_NCHW:
325
2
      if (nd == CCV_NNC_MAX_DIM + 1)
326
0
        params->dim[0] = c;
327
2
      else
328
2
        params->dim[1] = c;
329
2
      break;
330
2
    case CCV_TENSOR_FORMAT_CHWN:
331
0
      params->dim[0] = c;
332
0
      break;
333
2
  }
334
2
}
ccv_nnc_softmax_crossentropy.c:ccv_nnc_tensor_set_c
Line
Count
Source
318
12
{
319
12
  switch (params->format)
320
12
  {
321
12
    case CCV_TENSOR_FORMAT_NHWC:
322
0
      params->dim[nd - 1] = c;
323
0
      break;
324
12
    case CCV_TENSOR_FORMAT_NCHW:
325
12
      if (nd == CCV_NNC_MAX_DIM + 1)
326
0
        params->dim[0] = c;
327
12
      else
328
12
        params->dim[1] = c;
329
12
      break;
330
12
    case CCV_TENSOR_FORMAT_CHWN:
331
0
      params->dim[0] = c;
332
0
      break;
333
12
  }
334
12
}
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
318
290
{
319
290
  switch (params->format)
320
290
  {
321
290
    case CCV_TENSOR_FORMAT_NHWC:
322
106
      params->dim[nd - 1] = c;
323
106
      break;
324
290
    case CCV_TENSOR_FORMAT_NCHW:
325
184
      if (nd == CCV_NNC_MAX_DIM + 1)
326
0
        params->dim[0] = c;
327
184
      else
328
184
        params->dim[1] = c;
329
184
      break;
330
290
    case CCV_TENSOR_FORMAT_CHWN:
331
0
      params->dim[0] = c;
332
0
      break;
333
290
  }
334
290
}
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_pool.c:ccv_nnc_tensor_set_c
335
336
337
1.56k
#define CMD_BLAS(...) ((ccv_nnc_cmd_param_t){.size={.dim={1,1,1}},.blas={.a={__VA_ARGS__}}})
338
1.08k
#define CMD_GEMM(_count) ((ccv_nnc_cmd_param_t){.size={.dim={1,1,1}},.blas={.a={1,1},.count=_count}}) // We default to alpha = 1 and beta = 1
339
1.18k
#define CMD_GENERIC_X_0() ((ccv_nnc_cmd_param_t){.size={.dim={1,1,1}}})
340
#define CMD_GENERIC_X_F(...) ("This should not be used, you should have either 0 parameter or 3 parameters for CMD_GENERIC")
341
#define CMD_GENERIC_X_3(...) ((ccv_nnc_cmd_param_t){.size={.dim={__VA_ARGS__}}})
342
1.18k
#define CMD_GENERIC_X_SEL(_0, _1, _2, _3, _FX, ...) _FX
343
// Using ## so that if it is empty, we omit one comma.
344
1.18k
#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__)
345
1.00k
#define CMD_REDUCE(...) ((ccv_nnc_cmd_param_t){.size={.dim={1,1,1}},.reduce={.count=LIST_COUNT(__VA_ARGS__),.axis={__VA_ARGS__}}})
346
/**
347
 * @defgroup available_commands Available Commands
348
 * @{
349
 */
350
26
#define CMD_NOOP() ccv_nnc_cmd(CCV_NNC_NOOP, 0, ccv_nnc_cmd_auto, 0)
351
1
#define CMD_CUSTOM_FORWARD(f) ccv_nnc_cmd(CCV_NNC_CUSTOM_FORWARD, f, ccv_nnc_cmd_auto, 0)
352
/** @} */
353
354
int ccv_nnc_is_no_hint(const ccv_nnc_hint_t hint);
355
int ccv_nnc_is_cmd_auto(const ccv_nnc_cmd_param_t params);
356
int ccv_nnc_is_tensor_auto(const ccv_nnc_tensor_param_t params);
357
358
/**
359
 * @addtogroup convenience_api
360
 * @{
361
 */
362
/**
363
 * Offsets all zero.
364
 */
365
extern const int ccv_nnc_no_ofs[CCV_NNC_MAX_DIM_ALLOC];
366
/**
367
 * No hint available.
368
 */
369
extern const ccv_nnc_hint_t ccv_nnc_no_hint;
370
/**
371
 * Derive the command parameters automatically if possible.
372
 */
373
extern const ccv_nnc_cmd_param_t ccv_nnc_cmd_auto;
374
/**
375
 * Derive the tensor parameters automatically if possible.
376
 */
377
extern const ccv_nnc_tensor_param_t ccv_nnc_tensor_auto;
378
/** @} */
379
380
// Generated command flags for easy creation of ccv_nnc_cmd_t objects.
381
#include "cmd/ccv_nnc_cmd_easy.h"
382
383
#endif