{"QuestionId": 33549822, "AnswerCount": 1, "Tags": " I am trying to create a WebApi method that runs a series of loop calculations that would be difficult to further optimize. When this code executes, by looking at the server task manager, it appears that it only maxes out a single processor core while leaving the other cores untouched. From what I have read, asp.net limits a single request to one processor core. Since this is an intranet server with very few overall requests, I am not concerned with managing the server resources. Is there any way to override or work around this behavior to make my loop run faster? I have an C# service which reads messages from a WebSphere MQ queue using the .Net MQ interface library supplied by IBM, sends them to another application for processing and then writes the response to another queue. When I connect to the response queue I have code of the form shown below (the MQ designers on site told me that I should always use the same handle for the response queue manager as the request queue manager) The QueueName variable is set to the ReplyTo Queue name in the request message if present or a default if missing. This all works fine if the response queue name is not a clustered queue. However if I try to write to a clustered environment I get a UNKNOWN_OBJECT_NAME error thrown by the MQenvironment when I do the write, although I know the queue name is valid. Do I need to set additional attributes on the AccessQueue call? I managed to read from a queue on the same queue manager OK so I don't understand why I write back to a queue under the same queue manager in a clustered environment. I'm trying to get my head around React, Reflux and JSX. I have a simple file I'd like to try and get working. I've setup my actions, store and component. But Any ideas why this is failing to render my 'hello world'? Maybe this sounds ridiculous question, but it is for me still not exactly clear the difference between where the but putting the I am installing Caffe on Ubunutu 15.04. I installed all the prerequisites mentioned in the installation page of Caffe from the official page: http://caffe.berkeleyvision.org/installation.html I am getting error during make. I am posting the error log (could not post whole log, too big a file. I cropped messages from starting till it fits the block). Please inform me if this is not useful How should I proceed with this ? Edit: I am also posting my Makeconfig.config file (only the uncommented part) I have this layout: Setting But what if I need the first element of the RecyclerView to be aligned to the status bar. In other words, I don't want any offset which Could you please tell me how to do that?
\n\nx.Items.AsParallel().ForAll(item =>\n{\n item.RunCalcs();\n});\n
\n\nvar ResponseQueueManager = RequestQueueManager;\nvar ResponseQueue = ResponseQueueManager.AccessQueue(QueueName,\n MQC.MQOO_OUTPUT, \n ResponseQueueManager.Name, \n null, \n null);\n
\n\n<html>\n <body>\n <div id=\"counter\"></div>\n\n <script src=\"bower_components/react/react.js\"></script>\n <script src=\"bower_components/reflux/dist/reflux.js\"></script>\n <script src=\"bower_components/react-dom/react-dom.js\"></script>\n\n <script type=\"text/jsx\">\n var CounterComponent = React.createClass({\n render: function() {\n return (\n <div>Hello, world</div>\n );\n }\n });\n\n React.render(<CounterComponent />, document.getElementById(\"counter\"));\n </script>\n\n </body>\n</html>\nReact.render() doesn't actually create anything in my div. I've commented out much of the code to try and isolate why it's not rendering. I get no errors, so I assume it's something to do with the jsx not being seen...# of a anonymous function should come. For example in this example i filter the divisors of a positive number:
\n\n(filter #(zero? (mod 6 %)) (range 1 (inc 6))) ;;=> (1 2 3 6)\n# right before the (mod 6 %) will cause an error. Is there a rule where in such a context my anonymous function begins, and why should the # come before (zero? ...?
\n\ng++ src/caffe/util/math_functions.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/util/math_functions.o 2> .build_release/src/caffe/util/math_functions.o.warnings.txt \\\n || (cat .build_release/src/caffe/util/math_functions.o.warnings.txt; exit 1)\nCXX src/caffe/util/db_lmdb.cpp\ng++ src/caffe/util/db_lmdb.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/util/db_lmdb.o 2> .build_release/src/caffe/util/db_lmdb.o.warnings.txt \\\n || (cat .build_release/src/caffe/util/db_lmdb.o.warnings.txt; exit 1)\nCXX src/caffe/util/db.cpp\ng++ src/caffe/util/db.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/util/db.o 2> .build_release/src/caffe/util/db.o.warnings.txt \\\n || (cat .build_release/src/caffe/util/db.o.warnings.txt; exit 1)\nCXX src/caffe/util/db_leveldb.cpp\ng++ src/caffe/util/db_leveldb.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/util/db_leveldb.o 2> .build_release/src/caffe/util/db_leveldb.o.warnings.txt \\\n || (cat .build_release/src/caffe/util/db_leveldb.o.warnings.txt; exit 1)\nCXX src/caffe/util/hdf5.cpp\ng++ src/caffe/util/hdf5.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/util/hdf5.o 2> .build_release/src/caffe/util/hdf5.o.warnings.txt \\\n || (cat .build_release/src/caffe/util/hdf5.o.warnings.txt; exit 1)\nCXX src/caffe/util/insert_splits.cpp\ng++ src/caffe/util/insert_splits.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/util/insert_splits.o 2> .build_release/src/caffe/util/insert_splits.o.warnings.txt \\\n || (cat .build_release/src/caffe/util/insert_splits.o.warnings.txt; exit 1)\nCXX src/caffe/util/cudnn.cpp\ng++ src/caffe/util/cudnn.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/util/cudnn.o 2> .build_release/src/caffe/util/cudnn.o.warnings.txt \\\n || (cat .build_release/src/caffe/util/cudnn.o.warnings.txt; exit 1)\nCXX src/caffe/util/blocking_queue.cpp\ng++ src/caffe/util/blocking_queue.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/util/blocking_queue.o 2> .build_release/src/caffe/util/blocking_queue.o.warnings.txt \\\n || (cat .build_release/src/caffe/util/blocking_queue.o.warnings.txt; exit 1)\nCXX src/caffe/net.cpp\ng++ src/caffe/net.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/net.o 2> .build_release/src/caffe/net.o.warnings.txt \\\n || (cat .build_release/src/caffe/net.o.warnings.txt; exit 1)\nCXX src/caffe/common.cpp\ng++ src/caffe/common.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/common.o 2> .build_release/src/caffe/common.o.warnings.txt \\\n || (cat .build_release/src/caffe/common.o.warnings.txt; exit 1)\nAR -o .build_release/lib/libcaffe.a\nar rcs .build_release/lib/libcaffe.a .build_release/src/caffe/proto/caffe.pb.o .build_release/src/caffe/internal_thread.o .build_release/src/caffe/solvers/nesterov_solver.o .build_release/src/caffe/solvers/sgd_solver.o .build_release/src/caffe/solvers/adagrad_solver.o .build_release/src/caffe/solvers/rmsprop_solver.o .build_release/src/caffe/solvers/adam_solver.o .build_release/src/caffe/solvers/adadelta_solver.o .build_release/src/caffe/data_transformer.o .build_release/src/caffe/solver.o .build_release/src/caffe/syncedmem.o .build_release/src/caffe/layer.o .build_release/src/caffe/parallel.o .build_release/src/caffe/layers/multinomial_logistic_loss_layer.o .build_release/src/caffe/layers/cudnn_lrn_layer.o .build_release/src/caffe/layers/conv_layer.o .build_release/src/caffe/layers/hinge_loss_layer.o .build_release/src/caffe/layers/batch_norm_layer.o .build_release/src/caffe/layers/mvn_layer.o .build_release/src/caffe/layers/cudnn_conv_layer.o .build_release/src/caffe/layers/hdf5_data_layer.o .build_release/src/caffe/layers/data_layer.o .build_release/src/caffe/layers/pooling_layer.o .build_release/src/caffe/layers/cudnn_pooling_layer.o .build_release/src/caffe/layers/dropout_layer.o .build_release/src/caffe/layers/bnll_layer.o .build_release/src/caffe/layers/cudnn_sigmoid_layer.o .build_release/src/caffe/layers/hdf5_output_layer.o .build_release/src/caffe/layers/deconv_layer.o .build_release/src/caffe/layers/neuron_layer.o .build_release/src/caffe/layers/filter_layer.o .build_release/src/caffe/layers/softmax_layer.o .build_release/src/caffe/layers/reduction_layer.o .build_release/src/caffe/layers/argmax_layer.o .build_release/src/caffe/layers/slice_layer.o .build_release/src/caffe/layers/cudnn_relu_layer.o .build_release/src/caffe/layers/contrastive_loss_layer.o .build_release/src/caffe/layers/embed_layer.o .build_release/src/caffe/layers/image_data_layer.o .build_release/src/caffe/layers/memory_data_layer.o .build_release/src/caffe/layers/flatten_layer.o .build_release/src/caffe/layers/cudnn_lcn_layer.o .build_release/src/caffe/layers/inner_product_layer.o .build_release/src/caffe/layers/tile_layer.o .build_release/src/caffe/layers/softmax_loss_layer.o .build_release/src/caffe/layers/threshold_layer.o .build_release/src/caffe/layers/cudnn_softmax_layer.o .build_release/src/caffe/layers/spp_layer.o .build_release/src/caffe/layers/prelu_layer.o .build_release/src/caffe/layers/euclidean_loss_layer.o .build_release/src/caffe/layers/dummy_data_layer.o .build_release/src/caffe/layers/infogain_loss_layer.o .build_release/src/caffe/layers/accuracy_layer.o .build_release/src/caffe/layers/loss_layer.o .build_release/src/caffe/layers/tanh_layer.o .build_release/src/caffe/layers/lrn_layer.o .build_release/src/caffe/layers/im2col_layer.o .build_release/src/caffe/layers/sigmoid_cross_entropy_loss_layer.o .build_release/src/caffe/layers/relu_layer.o .build_release/src/caffe/layers/silence_layer.o .build_release/src/caffe/layers/batch_reindex_layer.o .build_release/src/caffe/layers/absval_layer.o .build_release/src/caffe/layers/power_layer.o .build_release/src/caffe/layers/log_layer.o .build_release/src/caffe/layers/reshape_layer.o .build_release/src/caffe/layers/eltwise_layer.o .build_release/src/caffe/layers/exp_layer.o .build_release/src/caffe/layers/cudnn_tanh_layer.o .build_release/src/caffe/layers/concat_layer.o .build_release/src/caffe/layers/base_data_layer.o .build_release/src/caffe/layers/window_data_layer.o .build_release/src/caffe/layers/split_layer.o .build_release/src/caffe/layers/base_conv_layer.o .build_release/src/caffe/layers/sigmoid_layer.o .build_release/src/caffe/layer_factory.o .build_release/src/caffe/blob.o .build_release/src/caffe/data_reader.o .build_release/src/caffe/util/upgrade_proto.o .build_release/src/caffe/util/io.o .build_release/src/caffe/util/benchmark.o .build_release/src/caffe/util/im2col.o .build_release/src/caffe/util/signal_handler.o .build_release/src/caffe/util/math_functions.o .build_release/src/caffe/util/db_lmdb.o .build_release/src/caffe/util/db.o .build_release/src/caffe/util/db_leveldb.o .build_release/src/caffe/util/hdf5.o .build_release/src/caffe/util/insert_splits.o .build_release/src/caffe/util/cudnn.o .build_release/src/caffe/util/blocking_queue.o .build_release/src/caffe/net.o .build_release/src/caffe/common.o\nLD -o .build_release/lib/libcaffe.so\ng++ -shared -o .build_release/lib/libcaffe.so .build_release/src/caffe/proto/caffe.pb.o .build_release/src/caffe/internal_thread.o .build_release/src/caffe/solvers/nesterov_solver.o .build_release/src/caffe/solvers/sgd_solver.o .build_release/src/caffe/solvers/adagrad_solver.o .build_release/src/caffe/solvers/rmsprop_solver.o .build_release/src/caffe/solvers/adam_solver.o .build_release/src/caffe/solvers/adadelta_solver.o .build_release/src/caffe/data_transformer.o .build_release/src/caffe/solver.o .build_release/src/caffe/syncedmem.o .build_release/src/caffe/layer.o .build_release/src/caffe/parallel.o .build_release/src/caffe/layers/multinomial_logistic_loss_layer.o .build_release/src/caffe/layers/cudnn_lrn_layer.o .build_release/src/caffe/layers/conv_layer.o .build_release/src/caffe/layers/hinge_loss_layer.o .build_release/src/caffe/layers/batch_norm_layer.o .build_release/src/caffe/layers/mvn_layer.o .build_release/src/caffe/layers/cudnn_conv_layer.o .build_release/src/caffe/layers/hdf5_data_layer.o .build_release/src/caffe/layers/data_layer.o .build_release/src/caffe/layers/pooling_layer.o .build_release/src/caffe/layers/cudnn_pooling_layer.o .build_release/src/caffe/layers/dropout_layer.o .build_release/src/caffe/layers/bnll_layer.o .build_release/src/caffe/layers/cudnn_sigmoid_layer.o .build_release/src/caffe/layers/hdf5_output_layer.o .build_release/src/caffe/layers/deconv_layer.o .build_release/src/caffe/layers/neuron_layer.o .build_release/src/caffe/layers/filter_layer.o .build_release/src/caffe/layers/softmax_layer.o .build_release/src/caffe/layers/reduction_layer.o .build_release/src/caffe/layers/argmax_layer.o .build_release/src/caffe/layers/slice_layer.o .build_release/src/caffe/layers/cudnn_relu_layer.o .build_release/src/caffe/layers/contrastive_loss_layer.o .build_release/src/caffe/layers/embed_layer.o .build_release/src/caffe/layers/image_data_layer.o .build_release/src/caffe/layers/memory_data_layer.o .build_release/src/caffe/layers/flatten_layer.o .build_release/src/caffe/layers/cudnn_lcn_layer.o .build_release/src/caffe/layers/inner_product_layer.o .build_release/src/caffe/layers/tile_layer.o .build_release/src/caffe/layers/softmax_loss_layer.o .build_release/src/caffe/layers/threshold_layer.o .build_release/src/caffe/layers/cudnn_softmax_layer.o .build_release/src/caffe/layers/spp_layer.o .build_release/src/caffe/layers/prelu_layer.o .build_release/src/caffe/layers/euclidean_loss_layer.o .build_release/src/caffe/layers/dummy_data_layer.o .build_release/src/caffe/layers/infogain_loss_layer.o .build_release/src/caffe/layers/accuracy_layer.o .build_release/src/caffe/layers/loss_layer.o .build_release/src/caffe/layers/tanh_layer.o .build_release/src/caffe/layers/lrn_layer.o .build_release/src/caffe/layers/im2col_layer.o .build_release/src/caffe/layers/sigmoid_cross_entropy_loss_layer.o .build_release/src/caffe/layers/relu_layer.o .build_release/src/caffe/layers/silence_layer.o .build_release/src/caffe/layers/batch_reindex_layer.o .build_release/src/caffe/layers/absval_layer.o .build_release/src/caffe/layers/power_layer.o .build_release/src/caffe/layers/log_layer.o .build_release/src/caffe/layers/reshape_layer.o .build_release/src/caffe/layers/eltwise_layer.o .build_release/src/caffe/layers/exp_layer.o .build_release/src/caffe/layers/cudnn_tanh_layer.o .build_release/src/caffe/layers/concat_layer.o .build_release/src/caffe/layers/base_data_layer.o .build_release/src/caffe/layers/window_data_layer.o .build_release/src/caffe/layers/split_layer.o .build_release/src/caffe/layers/base_conv_layer.o .build_release/src/caffe/layers/sigmoid_layer.o .build_release/src/caffe/layer_factory.o .build_release/src/caffe/blob.o .build_release/src/caffe/data_reader.o .build_release/src/caffe/util/upgrade_proto.o .build_release/src/caffe/util/io.o .build_release/src/caffe/util/benchmark.o .build_release/src/caffe/util/im2col.o .build_release/src/caffe/util/signal_handler.o .build_release/src/caffe/util/math_functions.o .build_release/src/caffe/util/db_lmdb.o .build_release/src/caffe/util/db.o .build_release/src/caffe/util/db_leveldb.o .build_release/src/caffe/util/hdf5.o .build_release/src/caffe/util/insert_splits.o .build_release/src/caffe/util/cudnn.o .build_release/src/caffe/util/blocking_queue.o .build_release/src/caffe/net.o .build_release/src/caffe/common.o -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \nCXX tools/finetune_net.cpp\ng++ tools/finetune_net.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/finetune_net.o 2> .build_release/tools/finetune_net.o.warnings.txt \\\n || (cat .build_release/tools/finetune_net.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/finetune_net.bin\ng++ .build_release/tools/finetune_net.o -o .build_release/tools/finetune_net.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/device_query.cpp\ng++ tools/device_query.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/device_query.o 2> .build_release/tools/device_query.o.warnings.txt \\\n || (cat .build_release/tools/device_query.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/device_query.bin\ng++ .build_release/tools/device_query.o -o .build_release/tools/device_query.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/caffe.cpp\ng++ tools/caffe.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/caffe.o 2> .build_release/tools/caffe.o.warnings.txt \\\n || (cat .build_release/tools/caffe.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/caffe.bin\ng++ .build_release/tools/caffe.o -o .build_release/tools/caffe.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/upgrade_net_proto_binary.cpp\ng++ tools/upgrade_net_proto_binary.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/upgrade_net_proto_binary.o 2> .build_release/tools/upgrade_net_proto_binary.o.warnings.txt \\\n || (cat .build_release/tools/upgrade_net_proto_binary.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/upgrade_net_proto_binary.bin\ng++ .build_release/tools/upgrade_net_proto_binary.o -o .build_release/tools/upgrade_net_proto_binary.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/extract_features.cpp\ng++ tools/extract_features.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/extract_features.o 2> .build_release/tools/extract_features.o.warnings.txt \\\n || (cat .build_release/tools/extract_features.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/extract_features.bin\ng++ .build_release/tools/extract_features.o -o .build_release/tools/extract_features.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/upgrade_net_proto_text.cpp\ng++ tools/upgrade_net_proto_text.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/upgrade_net_proto_text.o 2> .build_release/tools/upgrade_net_proto_text.o.warnings.txt \\\n || (cat .build_release/tools/upgrade_net_proto_text.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/upgrade_net_proto_text.bin\ng++ .build_release/tools/upgrade_net_proto_text.o -o .build_release/tools/upgrade_net_proto_text.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/test_net.cpp\ng++ tools/test_net.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/test_net.o 2> .build_release/tools/test_net.o.warnings.txt \\\n || (cat .build_release/tools/test_net.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/test_net.bin\ng++ .build_release/tools/test_net.o -o .build_release/tools/test_net.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/convert_imageset.cpp\ng++ tools/convert_imageset.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/convert_imageset.o 2> .build_release/tools/convert_imageset.o.warnings.txt \\\n || (cat .build_release/tools/convert_imageset.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/convert_imageset.bin\ng++ .build_release/tools/convert_imageset.o -o .build_release/tools/convert_imageset.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/upgrade_solver_proto_text.cpp\ng++ tools/upgrade_solver_proto_text.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/upgrade_solver_proto_text.o 2> .build_release/tools/upgrade_solver_proto_text.o.warnings.txt \\\n || (cat .build_release/tools/upgrade_solver_proto_text.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/upgrade_solver_proto_text.bin\ng++ .build_release/tools/upgrade_solver_proto_text.o -o .build_release/tools/upgrade_solver_proto_text.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/compute_image_mean.cpp\ng++ tools/compute_image_mean.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/compute_image_mean.o 2> .build_release/tools/compute_image_mean.o.warnings.txt \\\n || (cat .build_release/tools/compute_image_mean.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/compute_image_mean.bin\ng++ .build_release/tools/compute_image_mean.o -o .build_release/tools/compute_image_mean.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/net_speed_benchmark.cpp\ng++ tools/net_speed_benchmark.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/net_speed_benchmark.o 2> .build_release/tools/net_speed_benchmark.o.warnings.txt \\\n || (cat .build_release/tools/net_speed_benchmark.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/net_speed_benchmark.bin\ng++ .build_release/tools/net_speed_benchmark.o -o .build_release/tools/net_speed_benchmark.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/train_net.cpp\ng++ tools/train_net.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/train_net.o 2> .build_release/tools/train_net.o.warnings.txt \\\n || (cat .build_release/tools/train_net.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/train_net.bin\ng++ .build_release/tools/train_net.o -o .build_release/tools/train_net.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nln: target \u2018.build_release/tools/finetune_net\u2019 is not a directory\nMakefile:592: recipe for target '.build_release/tools/finetune_net' failed\nmake: *** [.build_release/tools/finetune_net] Error 1\n
\n\n<android.support.design.widget.CoordinatorLayout\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n android:id=\"@+id/coordinatorLayout\"\n android:layout_width=\"match_parent\"\n android:layout_height=\"match_parent\">\n\n <android.support.design.widget.AppBarLayout\n android:id=\"@+id/appBarLayout\"\n android:layout_width=\"match_parent\"\n android:layout_height=\"wrap_content\">\n\n <android.support.v7.widget.Toolbar\n android:id=\"@+id/toolbar\"\n android:layout_width=\"match_parent\"\n android:layout_height=\"?attr/actionBarSize\"\n android:background=\"?attr/colorPrimary\"\n app:layout_scrollFlags=\"scroll|enterAlways|snap\"/>\n\n </android.support.design.widget.AppBarLayout>\n\n <android.support.v7.widget.RecyclerView\n android:id=\"@+id/recyclerView\"\n android:layout_width=\"match_parent\"\n android:layout_height=\"match_parent\"\n app:layout_behavior=\"@string/appbar_scrolling_view_behavior\">\n\n </android.support.v7.widget.RecyclerView>\n\n <android.support.design.widget.FloatingActionButton\n android:id=\"@+id/fabButton\"\n android:layout_width=\"wrap_content\"\n android:layout_height=\"wrap_content\"\n android:layout_gravity=\"end|bottom\"\n android:src=\"@drawable/ic_favorite_outline_white_24dp\"/>\n\n</android.support.design.widget.CoordinatorLayout>\n@string/appbar_scrolling_view_behavior attribute shifts the RecyclerView by the height of the Toolbar.
\nI want the Toolbar to cover (be above) the first element.@string/appbar_scrolling_view_behavior behaviour entails.
\r\nvar key=\"\";\r\n\r\n//get key values\r\nvar x = document.getElementById(\"calculator\");\r\nvar y = x.getElementsByTagName(\"span\");\r\n\r\nfunction calc()\r\n{\r\n for(var i = 0; i <= y.length; i++)\r\n {\r\n key+=y[i].innerHTML;\r\n document.getElementById(\"display\").innerHTML=key;\r\n\r\n }\r\n};
I am trying to:
\n\nThis program basically should just get the content of the key you are clicking on the calculator and display it on the screen.
\n\nThe code I have at the moment is only looping through the span tags, getting their content but it fails since it prints all the spans content in the calculator display at the same time no matter which key you click on. \nIs there a way to fix it? I know there are other options like eventlistener or setting a function for each key, but i would like to know if this code has some logic and could be completed to perform the task.
\n", "Lable": "No"} {"QuestionId": 33952437, "AnswerCount": 2, "Tags": "In my application I need that each controller showed popup when some event happens.
\n\nI can listen to this NSNotification in each controller. But I don't want to duplicate the code.
\n\nIs there a way to listen to NSNotification and do some actions globally?
\n", "Lable": "No"} {"QuestionId": 34009904, "AnswerCount": 2, "Tags": "I'm creating a batch file and I'm having trouble with the following command:
\n\n echo Hello & echo.World > Text.txt\n\n\nWhenever I do this command the output only shows the last line, like so:
\n\n\n\n\nWorld
\n
But if I just do the above command in CMD without writing to a file, it appears perfectly in the command prompt. I have complete access over my file but I still can't seem to be able to write the whole text.
\n", "Lable": "No"} {"QuestionId": 34045096, "AnswerCount": 1, "Tags": "I'm relatively new to theano and I want to run the mnist example on my\nGPU but I get the following output:
\n\nUsing gpu device 0: GeForce GTX 970M (CNMeM is disabled)\nLoading data...\nBuilding model and compiling functions...\nWARNING (theano.gof.compilelock):\n Overriding existing lock by dead process '9700' (I am process '10632')\n\nDEBUG: nvcc STDOUT mod.cu\nCreating library \n C:/Users/user/AppData/Local/Theano\n /compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_71_Stepping_1_GenuineIntel-3.4.3-64\n /tmp55nlvvvo/m25b839e7715203be227800f03e7c8fe8.lib \nand object \n C:/Users/user/AppData/Local/Theano\n /compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_71_Stepping_1_GenuineIntel-3.4.3-64\n /tmp55nlvvvo/m25b839e7715203be227800f03e7c8fe8.exp\n\n\nIt keeps outputting DEBUG messages without any output of mnist.\nI have a working version of nvcc:
\n\nC:\\Users\\user>nvcc --version\nnvcc: NVIDIA (R) Cuda compiler driver\nCopyright (c) 2005-2015 NVIDIA Corporation\nBuilt on Tue_Aug_11_14:49:10_CDT_2015\nCuda compilation tools, release 7.5, V7.5.17\n\n\nAnd my .theanorc file:
[global]\nfloatX = float32\ndevice = gpu0\n\n[nvcc]\nfastmath = True\n\n\nHow can I solve this?
\n", "Lable": "D"} {"QuestionId": 34079787, "AnswerCount": 3, "Tags": "I'm playing around with tensorflow and ran into a problem with the following code:
\n\ndef _init_parameters(self, input_data, labels):\n\n # the input shape is (batch_size, input_size)\n input_size = tf.shape(input_data)[1]\n\n # labels in one-hot format have shape (batch_size, num_classes)\n num_classes = tf.shape(labels)[1]\n\n stddev = 1.0 / tf.cast(input_size, tf.float32)\n\n w_shape = tf.pack([input_size, num_classes], 'w-shape')\n normal_dist = tf.truncated_normal(w_shape, stddev=stddev, name='normaldist')\n self.w = tf.Variable(normal_dist, name='weights')\n\n\n(I'm using tf.pack as suggested in this question, since I was getting the same error)
When I run it (from a larger script that invokes this one), I get this error:
\n\nValueError: initial_value must have a shape specified: Tensor(\"normaldist:0\", shape=TensorShape([Dimension(None), Dimension(None)]), dtype=float32)\n\n\nI tried to replicate the process in the interactive shell. Indeed, the dimensions of normal_dist are unspecified, although the supplied values do exist:
In [70]: input_size.eval()\nOut[70]: 4\n\nIn [71]: num_classes.eval()\nOut[71]: 3\n\nIn [72]: w_shape.eval()\nOut[72]: array([4, 3], dtype=int32)\n\nIn [73]: normal_dist.eval()\nOut[73]: \narray([[-0.27035281, -0.223277 , 0.14694688],\n [-0.16527176, 0.02180306, 0.00807841],\n [ 0.22624688, 0.36425814, -0.03099642],\n [ 0.25575709, -0.02765726, -0.26169327]], dtype=float32)\n\nIn [78]: normal_dist.get_shape()\nOut[78]: TensorShape([Dimension(None), Dimension(None)])\n\n\nThis is weird. Tensorflow generates the vector but can't say its shape. Am I doing something wrong?
\n", "Lable": "D"} {"QuestionId": 34116402, "AnswerCount": 2, "Tags": "Say I have a very small dataset, just 50 Images. I want to re-use the code from the tutorial at Red Pill, but apply random transformations to the same set of Images in each Batch of training, say random changes to Brightness, Contrast etc. I added just one function:
\n\ndef preprocessImages(x):\n retValue = numpy.empty_like(x)\n for i in range(50):\n image = x[i]\n image = tf.reshape(image, [28,28,1])\n image = tf.image.random_brightness(image, max_delta=63)\n #image = tf.image.random_contrast(image, lower=0.2, upper=1.8)\n # Subtract off the mean and divide by the variance of the pixels.\n float_image = tf.image.per_image_whitening(image)\n float_image_Mat = sess.run(float_image)\n retValue[i] = float_image_Mat.reshape((28*28))\n return retValue\n\n\nSmall change to the old code:
\n\nbatch = mnist.train.next_batch(50)\nfor i in range(1000):\n #batch = mnist.train.next_batch(50)\n if i%100 == 0:\n train_accuracy = accuracy.eval(feed_dict={\n x:preprocessImages(batch[0]), y_: batch[1], keep_prob: 1.0})\n print(\"step %d, training accuracy %g\"%(i, train_accuracy))\n train_step.run(feed_dict={x: preprocessImages(batch[0]), y_: batch[1], keep_prob: 0.5})\n\n\nFirst iteration is successful, thereafter it crashes:
\n\nstep 0, training accuracy 0.02\nW tensorflow/core/common_runtime/executor.cc:1027] 0x117e76c0 Compute status: Invalid argument: ReluGrad input is not finite. : Tensor had NaN values\n [[Node: gradients_4/Relu_12_grad/Relu_12/CheckNumerics = CheckNumerics[T=DT_FLOAT, message=\"ReluGrad input is not finite.\", _device=\"/job:localhost/replica:0/task:0/cpu:0\"](add_16)]]\nW tensorflow/core/common_runtime/executor.cc:1027] 0x117e76c0 Compute status: Invalid argument: ReluGrad input is not finite. : Tensor had NaN values\n [[Node: gradients_4/Relu_13_grad/Relu_13/CheckNumerics = CheckNumerics[T=DT_FLOAT, message=\"ReluGrad input is not finite.\", _device=\"/job:localhost/replica:0/task:0/cpu:0\"](add_17)]]\nW tensorflow/core/common_runtime/executor.cc:1027] 0x117e76c0 Compute status: Invalid argument: ReluGrad input is not finite. : Tensor had NaN values\n [[Node: gradients_4/Relu_14_grad/Relu_14/CheckNumerics = CheckNumerics[T=DT_FLOAT, message=\"ReluGrad input is not finite.\", _device=\"/job:localhost/replica:0/task:0/cpu:0\"](add_18)]]\nTraceback (most recent call last):\n File \"<stdin>\", line 1, in <module>\n File \"/media/sf_Data/mnistConv.py\", line 69, in <module>\n train_step.run(feed_dict={x: preprocessImages(batch[0]), y_: batch[1], keep_prob: 0.5})\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py\", line 1267, in run\n _run_using_default_session(self, feed_dict, self.graph, session)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py\", line 2763, in _run_using_default_session\n session.run(operation, feed_dict)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py\", line 345, in run\n results = self._do_run(target_list, unique_fetch_targets, feed_dict_string)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py\", line 419, in _do_run\n e.code)\ntensorflow.python.framework.errors.InvalidArgumentError: ReluGrad input is not finite. : Tensor had NaN values\n [[Node: gradients_4/Relu_12_grad/Relu_12/CheckNumerics = CheckNumerics[T=DT_FLOAT, message=\"ReluGrad input is not finite.\", _device=\"/job:localhost/replica:0/task:0/cpu:0\"](add_16)]]\nCaused by op u'gradients_4/Relu_12_grad/Relu_12/CheckNumerics', defined at:\n File \"<stdin>\", line 1, in <module>\n File \"/media/sf_Data/mnistConv.py\", line 58, in <module>\n train_step = tf.train.AdamOptimizer(1e-4).minimize(cross_entropy)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/optimizer.py\", line 165, in minimize\n gate_gradients=gate_gradients)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/optimizer.py\", line 205, in compute_gradients\n loss, var_list, gate_gradients=(gate_gradients == Optimizer.GATE_OP))\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gradients.py\", line 414, in gradients\n in_grads = _AsList(grad_fn(op_wrapper, *out_grads))\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/nn_grad.py\", line 107, in _ReluGrad\n t = _VerifyTensor(op.inputs[0], op.name, \"ReluGrad input is not finite.\")\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/nn_grad.py\", line 100, in _VerifyTensor\n verify_input = array_ops.check_numerics(t, message=msg)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_array_ops.py\", line 48, in check_numerics\n name=name)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/op_def_library.py\", line 633, in apply_op\n op_def=op_def)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py\", line 1710, in create_op\n original_op=self._default_original_op, op_def=op_def)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py\", line 988, in __init__\n self._traceback = _extract_stack()\n\n...which was originally created as op u'Relu_12', defined at:\n File \"<stdin>\", line 1, in <module>\n File \"/media/sf_Data/mnistConv.py\", line 34, in <module>\n h_conv1 = tf.nn.relu(conv2d(x_image, W_conv1) + b_conv1)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_nn_ops.py\", line 506, in relu\n return _op_def_lib.apply_op(\"Relu\", features=features, name=name)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/op_def_library.py\", line 633, in apply_op\n op_def=op_def)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py\", line 1710, in create_op\n original_op=self._default_original_op, op_def=op_def)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py\", line 988, in __init__\n self._traceback = _extract_stack()\n\n\nThis is exactly the same error that I get with my personal dataset with 50 training examples.
\n", "Lable": "D"} {"QuestionId": 34120142, "AnswerCount": 1, "Tags": "I call some functions that return a CFArray of CFStringRef values. I need to get utf strings from them. As I didn't want to make my code too complicated, I did the following:
let initString = \"\\(TISCreateInputSourceList(nil, false).takeUnretainedValue())\"
And then I just split the resulting string by \\ns to get an array of Swift strings. However, when the function started returning non-ascii strings, trouble started. I started getting strings like \"\\U2345\\U2344\".
Then i tried to take the CFArray and iterate over it getting the values and possibly converting them to Strings, but I can't get the values from it:
\n\n let ar = TISCreateInputSourceList(nil, true).takeUnretainedValue()\n for i in 0...CFArrayGetCount(ar) - 1 {\n print(\">> ( CFArrayGetValueAtIndex(ar, i).memory )\")\n }\n
The values are always empty.
\n\nHow can i get the actual values?
\n", "Lable": "No"} {"QuestionId": 34159719, "AnswerCount": 2, "Tags": "i have a txt file . Here are some example rows:
\n\ncomputer 2015-11-26 08:47:00 86\ncomputer 2015-11-26 08:48:00 78\ncomputer 2015-11-26 08:49:00 61\ncomputer 2015-11-26 08:50:00 50\ncomputer 2015-11-26 08:51:00 53\ncomputer 2015-11-26 08:52:00 61\ncomputer 2015-11-26 08:53:00 60\ncomputer 2015-11-26 08:54:00 50\ncomputer 2015-11-26 08:55:00 91\ncomputer 2015-11-26 08:56:00 99\ncomputer 2015-11-26 08:57:00 75\ncomputer 2015-11-26 08:58:00 105\ncomputer 2015-11-26 08:59:00 67\ncomputer 2015-11-26 09:00:00 63\n\n\nI want to plot line chart like this:
\n\n
how can i do this?
\n\ni try this example, but i didnt do it
\n\nplt.bar()\n plt.xticks()\n plt.ylabel()\n plt.title()\n plt.savefig() \n plt.show()\n\n\nhow can i devolop this code?
\n", "Lable": "No"}