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>
21#include <binsparse/read_tensor.h>
2+ #include <binsparse/tensor.h>
33#include <binsparse/write_tensor.h>
44
55int main (int argc , char * * argv ) {
66 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" );
89 return 1 ;
910 }
1011 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) {
123123
124124static inline void bsp_destroy_tensor_t (bsp_tensor_t tensor ) {
125125 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 );
128130}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ extern "C" {
1212
1313// TODO: make cJSON optional.
1414
15- #include <binsparse/tensor.h>
15+ #include <binsparse/tensor.h>
1616#include <cJSON/cJSON.h>
1717
1818#ifdef BSP_USE_HDF5
You can’t perform that action at this time.
0 commit comments