Skip to content

Commit

Permalink
Some lint fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
krivit committed May 31, 2024
1 parent 90ca2cd commit c835edc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MCRS_GAT.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import numpy as np
import torch.nn as nn
from torch import nn
import torch.nn.functional as F
import torch
from torch_geometric.nn import GATConv
Expand Down Expand Up @@ -431,7 +431,7 @@ def main(file_path, criteria, save_embeddings=False):
data, user_id_map, item_id_map = read_data(file_path)
print("Reading data finished.")

if save_embeddings and type(save_embeddings) != str:
if save_embeddings and not isinstance(save_embeddings, str):
save_embeddings = file_path + '.embed.pt'

if save_embeddings and os.path.isfile(save_embeddings):
Expand Down

0 comments on commit c835edc

Please sign in to comment.