gpt-4-0613· OpenAI
Arena Human Preference 55K
a1, b1 = torch.split(ab1, 14400, dim=1), the size of a1 and b1 are torch.Size([256,…
- User
a1, b1 = torch.split(ab1, 14400, dim=1), the size of a1 and b1 are torch.Size([256, 14400]). how to change a1 and b1 to obtain a size of 256, 128, 15, 15
- Assistant
You can use the
view()function in PyTorch to reshape the tensors a1 and b1 to have size [256, 128, 15, 15]. Here is how you can do it:pythona1 = a1.view(256, 128, 15, 15) b1 = b1.view(256, 128, 15, 15)The
view()function returns a new tensor with the same data but different size. In this case, it reshapes the tensor to have dimensions 256, 128, 15, 15.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.