LostTech.TensorFlow : API Documentation

Type GreedyEmbeddingHelper

Namespace tensorflow.contrib.seq2seq

Parent PythonObjectContainer

Interfaces Helper, IGreedyEmbeddingHelper

A helper for use during inference.

Uses the argmax of the output (treated as logits) and passes the result through an embedding layer to get the next input.

Properties

Public properties

Tensor batch_size get;

Batch size of tensor returned by `sample`.

Returns a scalar int32 tensor.

object batch_size_dyn get;

Batch size of tensor returned by `sample`.

Returns a scalar int32 tensor.

object PythonObject get;

DType sample_ids_dtype get;

DType of tensor returned by `sample`.

Returns a DType.

object sample_ids_dtype_dyn get;

DType of tensor returned by `sample`.

Returns a DType.

TensorShape sample_ids_shape get;

Shape of tensor returned by `sample`, excluding the batch dimension.

Returns a `TensorShape`.

object sample_ids_shape_dyn get;

Shape of tensor returned by `sample`, excluding the batch dimension.

Returns a `TensorShape`.