zhoujing
zhoujing
MModular
Created by zhoujing on 4/11/2024 in #questions
pointer to pointer
I got stuck here too....
25 replies
MModular
Created by zhoujing on 4/11/2024 in #questions
pointer to pointer
I am downloading data now. I will try
25 replies
MModular
Created by zhoujing on 4/11/2024 in #questions
pointer to pointer
I got stuck in this place
typedef struct {
// hyperparameters
int B;
int T;
// input handling and its state
FILE* tokens_file;
long file_size;
long current_position;
// output memory
int* batch;
int* inputs;
int* targets;
// convenience variables
int num_batches;
} DataLoader;
typedef struct {
// hyperparameters
int B;
int T;
// input handling and its state
FILE* tokens_file;
long file_size;
long current_position;
// output memory
int* batch;
int* inputs;
int* targets;
// convenience variables
int num_batches;
} DataLoader;
the FILE pointer
25 replies
MModular
Created by zhoujing on 4/11/2024 in #questions
pointer to pointer
I tried a few hours, still a lot work to do🥺 haha
25 replies
MModular
Created by zhoujing on 4/11/2024 in #questions
pointer to pointer
okk,🫰
25 replies
MModular
Created by zhoujing on 4/11/2024 in #questions
pointer to pointer
wow, I am porting llm.c too, Thanks for your advice, I will have a try
25 replies
MModular
Created by zhoujing on 4/11/2024 in #questions
pointer to pointer
me too ,haha😆
25 replies
MModular
Created by zhoujing on 4/11/2024 in #questions
pointer to pointer
yes, I can now get acts->encoded as a pointer in mojo, but i don;t know how to point to the got DtypePointer[Dtype.float32] acts->encoded
25 replies
MModular
Created by zhoujing on 4/11/2024 in #questions
pointer to pointer
I mean a pointer to pointer like float**
25 replies
MModular
Created by zhoujing on 4/11/2024 in #questions
pointer to pointer
DTypePointer[DType.float64] is a pointer which points to float64, not a pointer
25 replies