Robert McMenemy

Results 3 issues of Robert McMenemy

Old data was being left behind using os.rename. By switching to shutil we can move the file and delete the old cache data so temp files are properly cleaned up.

Using the torch.cuda.device_of() function to determine if the input tensors are on the GPU or CPU, and then choosing the appropriate layer implementations for better performance. Uses the torch.no_grad() context...

``` // SPDX-License-Identifier: MIT pragma solidity ^0.8.11; import "https://raw.githubusercontent.com/chiru-labs/ERC721A/main/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract NFT is ERC721A, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIds;...