Metadata-Version: 2.4
Name: zengrad-pytorch
Version: 0.1.1
Summary: ZenGrad Optimizer - Pytorch
Home-page: https://github.com/Rishichaitanya-Nalluri/zengrad-pytorch/blob/main/LICENSE
Author: Rishi Chaitanya
Author-email: rishichaitanya888@gmail.com
License: Apache-2.0
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: torch>=1.6.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

## Implementation

```python
import torch
import torch.nn as nn
from zengrad_pytorch import ZenGrad  # Custom optimizer

# Define the model
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.fc = nn.Linear(10, 2)

    def forward(self, x):
        return self.fc(x)

# Instantiate the model
model = SimpleModel()

# Define loss function
criterion = nn.CrossEntropyLoss()

# Instantiate optimizer
optimizer = ZenGrad(
    model.parameters(),
    lr=0.01,
    weight_decay=1e-4,
    momentum=0.9,
    epsilon=1e-8,
) # <---- In This Way      

# Model summary (optional)
print(model)
```

## License

ZenGrad_TensorFlow is released under the [Apache License 2.0](https://github.com/Rishichaitanya-Nalluri/zengrad-pytorch/blob/main/LICENSE).
