Spaces:
Runtime error
Runtime error
Upload model.py
Browse files167 unmodified lines168169170171172173174175176177167 unmodified linesprint(f"Created dynamic PyTorch model with sections: {list(model.sections.keys())}")first_section = next(iter(model.sections.keys()))first_layer = model.sections[first_section][0]input_features = first_layer[0].in_featuressample_input = torch.randn(1, input_features)output = model(sample_input)print(f"Sample output shape: {output.shape}")167 unmodified lines168169170171172173174175176177178179180181167 unmodified linesprint(f"Created dynamic PyTorch model with sections: {list(model.sections.keys())}")# Print the model architectureprint(model)first_section = next(iter(model.sections.keys()))first_layer = model.sections[first_section][0]input_features = first_layer[0].in_features# Ensure the input tensor size matches the expected input sizesample_input = torch.randn(1, input_features)output = model(sample_input)print(f"Sample output shape: {output.shape}")
model.py+4