Kai (Kazuya Ito)

Results 33 issues of Kai (Kazuya Ito)

This file causes the error below so I deleted it: > django.db.utils.OperationalError: no such table: two_factor_phonedevice ## Description ## Motivation and Context ## How Has This Been Tested? ## Screenshots...

I added `include_self=False` to `get_descendants()` as the 2nd argument so that we can choose to include the node itself or not. *I switched from Django-mptt to Django-treebeard because Django-mptt is...

needs-tests

### 🐛 Describe the bug [torch.get_default_device()](https://pytorch.org/docs/stable/generated/torch.get_default_device.html) gets error while [torch.set_default_device()](https://pytorch.org/docs/stable/generated/torch.set_default_device.html) doesn't as shown below: ```python import torch torch.set_default_device(device='cuda:0') torch.get_default_device() # Error ``` > AttributeError: module 'torch' has no attribute 'get_default_device'...

### 🐛 Describe the bug [isin()](https://pytorch.org/docs/stable/generated/torch.isin.html): - A scalar(e.g. `3`, `4`, `5`, etc) with `elements` or `test_elements` argument doesn't work.

triaged
module: python frontend
topic: fuzzer

`%rm` doesn't work to remove a file on JupyterLab on Windows as shown below. *I installed [Git](https://git-scm.com/): ```python %rm file1 ``` > UsageError: Line magic function `%rm` not found.

bug
status:Needs Triage

# Bug report ### Bug description: Setting [Warning](https://docs.python.org/3/library/exceptions.html#Warning) to `category` argument of [warnings.filterwarnings()](https://docs.python.org/3/library/warnings.html#warnings.filterwarnings) works, then setting the `str` type value `"Hello World"` to `category` argument of `warnings.filterwarnings()` gets the error...

type-bug
stdlib
3.12
3.13
3.14

# Bug report ### Bug description: With [warnings.simplefilter("module")](https://docs.python.org/3/library/warnings.html#warnings.simplefilter) and [warnings.warn()](https://docs.python.org/3/library/warnings.html#warnings.warn), I ran `main.py` which runs `file1.py`(module) and `file2.py`(module) as shown below: *Memos: - [The doc](https://docs.python.org/3/library/warnings.html#the-warnings-filter) says `"module" print the first...

docs
easy

Running the command below downloads the datasets including `test_lmdb.zip`, `test_train_lmdb.zip` and `test_val_lmdb.zip` whose **Size on disk:** are 0 bytes then it is impossible to unzip them as shown below: ```...

### 🐛 Describe the bug Setting a 1D tensor to [ToImage()](https://pytorch.org/vision/main/generated/torchvision.transforms.v2.ToImage.html) gets the empty error message as shown below: ```python from torchvision.datasets import OxfordIIITPet import torch my_data = OxfordIIITPet( root="data"...

### 🐛 Describe the bug Setting the tensors and ndarrays of the 2, 3 and 4 channels of `int64` and `int32` to [ToPILImage()](https://pytorch.org/vision/main/generated/torchvision.transforms.v2.ToPILImage.html) with `None` for `mode` argument gets the...