diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..b2c3234 Binary files /dev/null and b/.DS_Store differ diff --git a/01_git/.DS_Store b/01_git/.DS_Store new file mode 100644 index 0000000..d263c17 Binary files /dev/null and b/01_git/.DS_Store differ diff --git a/02_bash/.DS_Store b/02_bash/.DS_Store new file mode 100644 index 0000000..06c2af4 Binary files /dev/null and b/02_bash/.DS_Store differ diff --git a/06_argparser/submissions/fu784.py b/06_argparser/submissions/fu784.py new file mode 100644 index 0000000..6304b9b --- /dev/null +++ b/06_argparser/submissions/fu784.py @@ -0,0 +1,37 @@ +import numpy as np + + +def afunc(array1, array2, mode="+", pow=2): + assert array1.shape == array2.shape, "size mismatch" + assert type(pow) == int, "pow should be type int" + + if mode == "+": + result = array1 + array2 + elif mode == "-": + result = array1 - array2 + else: + raise ValueError(f"mode is either '+' or '-' but got {mode}") + + result = result ** pow + return result + + +if __name__ == "__main__": + import argparse + + parser = argparse.ArgumentParser(description="This is tutorial for argparse.") + # add your code here + parser.add_argument("mode", type=str, help="the calculation mode") + parser.add_argument("pow", type=int, help="the power number used in calculation") + parser.add_argument("--print_hello", action="store_true", help="print 'Hello'") + + # add your code here + args = parser.parse_args() + print(args) + + a = np.array([1, 2, 3]) + b = np.array([4, 5, 6]) + result = afunc(a, b, args.mode, args.pow) + print(result) + if args.print_hello: + print("Hello!") diff --git a/10_3d_pointcloud/submissions/fu.784.txt b/10_3d_pointcloud/submissions/fu.784.txt new file mode 100644 index 0000000..0364c03 --- /dev/null +++ b/10_3d_pointcloud/submissions/fu.784.txt @@ -0,0 +1,29 @@ +No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda' +--------------------- ------------------------------------------------------------------------------------------- +sys.platform linux +Python 3.8.13 (default, Mar 28 2022, 11:38:47) [GCC 7.5.0] +numpy 1.23.1 +detectron2 0.6 @/users/PAS2099/wenjin/CSE5916/detectron2/detectron2 +Compiler GCC 8.4 +CUDA compiler not available +DETECTRON2_ENV_MODULE +PyTorch 1.12.1 @/users/PAS2099/wenjin/miniconda3/envs/py3.8/lib/python3.8/site-packages/torch +PyTorch debug build False +GPU available No: torch.cuda.is_available() == False +Pillow 9.2.0 +torchvision 0.13.1 @/users/PAS2099/wenjin/miniconda3/envs/py3.8/lib/python3.8/site-packages/torchvision +fvcore 0.1.5.post20220512 +iopath 0.1.9 +cv2 Not found +--------------------- ------------------------------------------------------------------------------------------- +PyTorch built with: + - GCC 7.3 + - C++ Version: 201402 + - Intel(R) oneAPI Math Kernel Library Version 2021.4-Product Build 20210904 for Intel(R) 64 architecture applications + - Intel(R) MKL-DNN v2.6.0 (Git Hash 52b5f107dd9cf10910aaa19cb47f3abf9b349815) + - OpenMP 201511 (a.k.a. OpenMP 4.5) + - LAPACK is enabled (usually provided by MKL) + - NNPACK is enabled + - CPU capability usage: AVX2 + - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=10.2, CUDNN_VERSION=7.6.5, CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/c++, CXX_FLAGS= -fabi-version=11 -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.12.1, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=OFF, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, + diff --git a/detectron2 b/detectron2 new file mode 160000 index 0000000..717ab9f --- /dev/null +++ b/detectron2 @@ -0,0 +1 @@ +Subproject commit 717ab9f0aeca216a2f800e43d705766251ba3a55