#include "network.h"
#include "cost_layer.h"
#include "utils.h"
#include "blas.h"
#include "parser.h"
Go to the source code of this file.
Classes | |
struct | float_pair |
Functions | |
float_pair | get_rnn_data (unsigned char *text, size_t *offsets, int characters, size_t len, int batch, int steps) |
float_pair | get_rnn_token_data (int *tokens, size_t *offsets, int characters, size_t len, int batch, int steps) |
void | print_symbol (int n, char **tokens) |
int * | read_tokenized_data (char *filename, size_t *read) |
char ** | read_tokens (char *filename, size_t *read) |
void | reset_rnn_state (network net, int b) |
void | run_char_rnn (int argc, char **argv) |
void | test_char_rnn (char *cfgfile, char *weightfile, int num, char *seed, float temp, int rseed, char *token_file) |
void | test_tactic_rnn (char *cfgfile, char *weightfile, int num, float temp, int rseed, char *token_file) |
void | train_char_rnn (char *cfgfile, char *weightfile, char *filename, int clear, int tokenized) |
void | valid_char_rnn (char *cfgfile, char *weightfile, char *seed) |
void | valid_tactic_rnn (char *cfgfile, char *weightfile, char *seed) |
void | vec_char_rnn (char *cfgfile, char *weightfile, char *seed) |
float_pair get_rnn_data | ( | unsigned char * | text, |
size_t * | offsets, | ||
int | characters, | ||
size_t | len, | ||
int | batch, | ||
int | steps | ||
) |
float_pair get_rnn_token_data | ( | int * | tokens, |
size_t * | offsets, | ||
int | characters, | ||
size_t | len, | ||
int | batch, | ||
int | steps | ||
) |
void print_symbol | ( | int | n, |
char ** | tokens | ||
) |
int* read_tokenized_data | ( | char * | filename, |
size_t * | read | ||
) |
char** read_tokens | ( | char * | filename, |
size_t * | read | ||
) |
void reset_rnn_state | ( | network | net, |
int | b | ||
) |
void run_char_rnn | ( | int | argc, |
char ** | argv | ||
) |
void test_char_rnn | ( | char * | cfgfile, |
char * | weightfile, | ||
int | num, | ||
char * | seed, | ||
float | temp, | ||
int | rseed, | ||
char * | token_file | ||
) |
void test_tactic_rnn | ( | char * | cfgfile, |
char * | weightfile, | ||
int | num, | ||
float | temp, | ||
int | rseed, | ||
char * | token_file | ||
) |
void train_char_rnn | ( | char * | cfgfile, |
char * | weightfile, | ||
char * | filename, | ||
int | clear, | ||
int | tokenized | ||
) |
void valid_char_rnn | ( | char * | cfgfile, |
char * | weightfile, | ||
char * | seed | ||
) |
void valid_tactic_rnn | ( | char * | cfgfile, |
char * | weightfile, | ||
char * | seed | ||
) |
void vec_char_rnn | ( | char * | cfgfile, |
char * | weightfile, | ||
char * | seed | ||
) |