Skip to content

Commit

Permalink
Update optimum/exporters/onnx/model_configs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil authored Oct 11, 2024
1 parent ace12de commit 46cc4aa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions optimum/exporters/onnx/model_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,6 @@ class DecisionTransformerOnnxConfig(GPT2OnnxConfig):

@property
def inputs(self) -> Dict[str, Dict[int, str]]:
DEFAULT_DUMMY_SHAPES['actions'] = self._normalized_config.config.act_dim
DEFAULT_DUMMY_SHAPES['states'] = self._normalized_config.config.state_dim
DEFAULT_DUMMY_SHAPES['returns'] = 1
DEFAULT_DUMMY_SHAPES['last_hidden_state'] = self._normalized_config.config.hidden_size

return {
'states': {0: 'batch_size', 1: 'sequence_length', 2: 'states'},
Expand Down

0 comments on commit 46cc4aa

Please sign in to comment.