View source: R/extract_features.R
input_fn_builder_EF | R Documentation |
input_fn
closure to be passed to TPUEstimatorCreates an input_fn
closure to be passed to TPUEstimator. The output
of this closure is the (modified) output of
tensorflow::tf$data$Dataset$from_tensor_slices
(an object of class
"tensorflow.python.data.ops.dataset_ops.BatchDataset"). This function is
similar to input_fn_builder
from run_classifier.R. (RBERT issue #28.)
input_fn_builder_EF(features, seq_length)
features |
A list of features (objects of class
|
seq_length |
Integer; the maximum length (number of tokens) of each example. (Examples should already be padded to this length by this point.) |
An input_fn
closure to be passed to TPUEstimator.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.