This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Number of platforms: 1 | |
Platform Profile: FULL_PROFILE | |
Platform Version: OpenCL 2.0 AMD-APP.internal (2814.0) | |
Platform Name: AMD Accelerated Parallel Processing | |
Platform Vendor: Advanced Micro Devices, Inc. | |
Platform Extensions: cl_khr_icd cl_amd_object_metadata cl_amd_event_callback | |
Platform Name: AMD Accelerated Parallel Processing | |
Number of devices: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0. Program arguments: /usr/lib/llvm-7/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name aten_op.cc -mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -momit-leaf-frame-pointer -coverage-notes-file /pytorch/build_caffe2/caffe2/CMakeFiles/caffe2.dir/contrib/aten/aten_op.cc.gcno -resource-dir /usr/lib/llvm-7/lib/clang/7.0.0 -isystem /pytorch/build_caffe2/third_party/gloo -isystem /pytorch/cmake/../third_party/gloo -isystem /pytorch/third_party/gemmlowp -isystem /pytorch/third_party/neon2sse -isystem /pytorch/cmake/../third_party/googletest/googletest/include -isystem /pytorch/third_party -isystem /usr/include/opencv -isystem /pytorch/cmake/../third_party/eigen -isystem /usr/include/python2.7 -isystem /usr/local/lib/python2.7/dist-packages/numpy/core/include -isystem /pytorch/cmake/../third_pa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from django.http import QueryDict | |
class JSONMiddleware(object): | |
""" | |
Process application/json requests data from GET and POST requests. | |
""" | |
def process_request(self, request): | |
if 'application/json' in request.META.get('CONTENT_TYPE', []): |