Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jloveric committed Dec 19, 2023
1 parent 907e3fa commit b34f1f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/invariant_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def eval_step(self, batch, batch_idx, name):
logits = self(x_new)
loss = F.cross_entropy(logits, y)
preds = torch.argmax(logits, dim=1)
acc = accuracy(preds, y)
acc = accuracy(preds, y, task='multiclass',num_classes=10)

self.log(f"{name}_loss", loss, prog_bar=True)
self.log(f"{name}_acc", acc, prog_bar=True)
Expand Down
2 changes: 1 addition & 1 deletion examples/mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def eval_step(self, batch, batch_idx, name):
logits = self(x)
loss = F.cross_entropy(logits, y)
preds = torch.argmax(logits, dim=1)
acc = accuracy(preds, y)
acc = accuracy(preds, y, task='multiclass',num_classes=10)

# Calling self.log will surface up scalars for you in TensorBoard
self.log(f"{name}_loss", loss, prog_bar=True)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "high-order-layers-torch"
version = "2.2.4"
version = "2.2.5"
description = "High order layers in pytorch"
authors = ["jloverich <john.loverich@gmail.com>"]
license = "MIT"
Expand All @@ -10,11 +10,11 @@ readme = "README.md"
python = ">=3.9"
torch-optimizer = "^0.3.0"
hydra-core = "^1.2.0"
torchmetrics = "^0.10.2"
pytorch-lightning = "^2.0.0"
torch = ">=2.1.1"
torchvision = "^0.16.1"
lion-pytorch = "^0.1.2"
torchmetrics = "^1.2.1"

[tool.poetry.dev-dependencies]
coverage = "^6.3.3"
Expand Down

0 comments on commit b34f1f4

Please sign in to comment.