mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-04 18:57:44 +00:00
fix: fix model input shape bug and costeer_model bug (#821)
* fix model input shape bug and costeer_model bug * fix a bug
This commit is contained in:
@@ -16,8 +16,8 @@ if MODEL_TYPE == "Tabular":
|
||||
m = model_cls(num_features=input_shape[1])
|
||||
data = torch.full(input_shape, INPUT_VALUE)
|
||||
elif MODEL_TYPE == "TimeSeries":
|
||||
input_shape = (BATCH_SIZE, NUM_FEATURES, NUM_TIMESTEPS)
|
||||
m = model_cls(num_features=input_shape[1], num_timesteps=input_shape[2])
|
||||
input_shape = (BATCH_SIZE, NUM_TIMESTEPS, NUM_FEATURES)
|
||||
m = model_cls(num_features=input_shape[2], num_timesteps=input_shape[1])
|
||||
data = torch.full(input_shape, INPUT_VALUE)
|
||||
elif MODEL_TYPE == "Graph":
|
||||
node_feature = torch.randn(BATCH_SIZE, NUM_FEATURES)
|
||||
|
||||
Reference in New Issue
Block a user