Creates a dataset that uses a custom thread pool to compute input_dataset.

num_threads An int. The number of threads in the thread pool.
display_name A string. A human-readable name for the threads that may be visible in some visualizations. threadpool.
max_intra_op_parallelism An optional int. Defaults to 1. The maximum degree of parallelism to use within operations that execute on this threadpool.
container An optional string. Defaults to "".
shared_name An optional string. Defaults to "".
name A name for the operation (optional).

A Tensor of type resource.