View source: R/utils_test_that.R
| generate_tensors | R Documentation |
Functions generates a random test tensor that can be used for testing methods and functions based on 'PyTorch'. The tensors have the shape (Batch, Times,Features).
generate_tensors(times, features, seq_len, pad_value)
times |
|
features |
|
seq_len |
Numeric |
pad_value |
|
Returns an object of class Tensor from 'PyTorch'.
To request a R array please use generate_embeddings.
Other Utils TestThat Developers:
check_adjust_n_samples_on_CI(),
generate_args_for_tests(),
generate_embeddings(),
get_current_args_for_print(),
get_fixed_test_tensor(),
get_test_data_for_classifiers(),
monitor_test_time_on_CI(),
random_bool_on_CI()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.