File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
- #include <binsparse/tensor.h>
2
1
#include <binsparse/read_tensor.h>
2
+ #include <binsparse/tensor.h>
3
3
#include <binsparse/write_tensor.h>
4
4
5
5
int main (int argc , char * * argv ) {
6
6
if (argc < 3 ) {
7
- fprintf (stderr , "usage: ./tensor_test [file_name.h5] [output_file_name.h5]\n" );
7
+ fprintf (stderr ,
8
+ "usage: ./tensor_test [file_name.h5] [output_file_name.h5]\n" );
8
9
return 1 ;
9
10
}
10
11
char * file_name = argv [1 ];
Original file line number Diff line number Diff line change @@ -123,6 +123,8 @@ static bsp_array_t bsp_get_tensor_values(bsp_tensor_t tensor) {
123
123
124
124
static inline void bsp_destroy_tensor_t (bsp_tensor_t tensor ) {
125
125
bsp_destroy_level_t (tensor .level );
126
- if (tensor .dims != NULL ) free (tensor .dims );
127
- if (tensor .transpose != NULL ) free (tensor .transpose );
126
+ if (tensor .dims != NULL )
127
+ free (tensor .dims );
128
+ if (tensor .transpose != NULL )
129
+ free (tensor .transpose );
128
130
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ extern "C" {
12
12
13
13
// TODO: make cJSON optional.
14
14
15
- #include <binsparse/tensor.h>
15
+ #include <binsparse/tensor.h>
16
16
#include <cJSON/cJSON.h>
17
17
18
18
#ifdef BSP_USE_HDF5
You can’t perform that action at this time.
0 commit comments