class_docstr: This class tests all functions of CUDALongTensor as well as its integration with MPCTensor.
class_docstr_tok: ["This","class","tests","all","functions","of","CUDALongTensor","as","well","as","its","integration","with","MPCTensor","."]
docstr: Test torch.broadcast_tensor on CUDALongTensor
code: def test_torch_broadcast_tensor(self) -> None:
      """Test torch.broadcast_tensor on CUDALongTensor"""
      x = get_random_test_tensor(size=(1, 5), is_float=False)
      y = get_random_test_tensor(size=(5, 1), is_float=False)
  
      x_cuda = CUDALongTensor(x)
      y_cuda = CUDALongTensor(y)
  
      a, b = torch.broadcast_tensors(x, y)
      a_cuda, b_cuda = torch.broadcast_tensors(x_cuda, y_cuda)
  
      self.assertTrue(
          type(a_cuda) == CUDALongTensor,
          "result should be a CUDALongTensor",
      )
      self.assertTrue(
          type(b_cuda) == CUDALongTensor,
          "result should be a CUDALongTensor",
      )
      self._check_int(
          a,
          a_cuda.cpu(),
          "torch.broadcast_tensor failed for CUDALongTensor",
      )
      self._check_int(
          b,
          b_cuda.cpu(),
          "torch.broadcast_tensor failed for CUDALongTensor",
      )
  
imports: import collections
  import itertools
  import logging
  import unittest
  import crypten
  import torch
  import torch.nn
  import torch.nn.functional
  from crypten.config import cfg
  from crypten.cuda import CUDALongTensor
  from test.multiprocess_test_case import get_random_test_tensor, MultiProcessTestCase
  from test.test_mpc import TestMPC
label_desc: Use image node_id 20 for calling the TestCUDA obj's underlying member method code with example usage: obj.test_torch_broadcast_tensor() without return types