Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file added 01_git/.DS_Store
Binary file not shown.
Binary file added 02_bash/.DS_Store
Binary file not shown.
37 changes: 37 additions & 0 deletions 06_argparser/submissions/fu784.py
Original file line number Diff line number Diff line change
@@ -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!")
29 changes: 29 additions & 0 deletions 10_3d_pointcloud/submissions/fu.784.txt
Original file line number Diff line number Diff line change
@@ -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 <not set>
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,

1 change: 1 addition & 0 deletions detectron2
Submodule detectron2 added at 717ab9