pub struct IqnModel<F, M> where
    F: SubModel<Output = Tensor>,
    M: SubModel<Input = Tensor, Output = Tensor>,
    F::Config: DeserializeOwned + Serialize,
    M::Config: DeserializeOwned + Serialize
{ /* private fields */ }
Expand description

Constructs IQN output layer, which takes input features and percent points. It returns action-value quantiles.

Implementations

Constructs IqnModel.

Constructs IqnModel with the given configurations of sub models.

Returns the tensor of action-value quantiles.

  • The shape of psi(x) (feature vector) is [batch_size, feature_dim].
  • The shape of tau is [batch_size, n_percent_points].
  • The shape of the output is [batch_size, n_percent_points, self.out_dim].

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Trains the network given a loss.

Returns var_store.

Returns var_store as mutable reference.

Save parameters of the neural network.

Load parameters of the neural network.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.