Struct border_tch_agent::iqn::IqnModel
source · [−]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.
pub fn build_with_submodel_configs(
config: IqnModelConfig<F::Config, M::Config>,
f_config: F::Config,
m_config: M::Config,
device: Device
) -> IqnModel<F, M>
pub fn build_with_submodel_configs(
config: IqnModelConfig<F::Config, M::Config>,
f_config: F::Config,
m_config: M::Config,
device: Device
) -> IqnModel<F, M>
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
tauis [batch_size, n_percent_points]. - The shape of the output is [batch_size, n_percent_points, self.out_dim].
Trait Implementations
Trains the network given a loss.
Returns var_store.
Returns var_store as mutable reference.
Auto Trait Implementations
impl<F, M> !RefUnwindSafe for IqnModel<F, M>
impl<F, M> !UnwindSafe for IqnModel<F, M>
Blanket Implementations
Mutably borrows from an owned value. Read more