Posts

python - Problems Installing Tensor Flow Windows 10 -

i'm trying tensorflow work on windows 10 machine. have cude 8 , cudnn 5.1 installed , added %path% . installed python 3.5.4 proceeded install tensorflow executing pip3 install --upgrade tensorflow-gpu . computer running geforce 1060. here when try import tensorflow: import tensorflow tf traceback (most recent call last): file "c:\users\morit\appdata\local\programs\python\python35\lib\site->packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in >swig_import_helper return importlib.import_module(mname) file >"c:\users\morit\appdata\local\programs\python\python35\lib\importlib__init__.p>y", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) file "", line 985, in _gcd_import file "", line 968, in _find_and_load file "", line 957, in _find_and_load_unlocked file "", line 666, in _load_unlocked file "", line 57...

tensorflow, from source, compilation error, about 'class google::protobuf::Any' class Any; -

i have cloned latest version of latest tensorflow github , trying compile it. unfortunately getting errors. have written custom code (as opposed using stock example script provided in tensorflow) : no os platform , distribution (e.g., linux ubuntu 16.04) : linux ubuntu 16.04 tensorflow installed (source or binary) : trying install source python version : 3.5 bazel version (if compiling source) : 0.5.3 cuda/cudnn version : cuda 8.0 cudnn 5 gpu model , memory : gtx 1080 ti exact command reproduce : bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package i getting following compilation error: error: tensorflow/tensorflow/contrib/gdr/build:52:1: c++ compilation of rule '//tensorflow/contrib/gdr:gdr_memory_manager' failed (exit 1) in file included tensorflow/contrib/gdr/gdr_memory_manager.cc:33:0: ./tensorflow/core/common_runtime/bfc_allocator.h: in member function 'std::__cxx11::string tensorflow::bfcallocator::chunk::debugstri...

beagleboneblack - For a custom Am335 board, how to write minimum device tree ? what should be included? -

i have custom board, has am335. want boot network or sd card. component should there in device tree? minimum. if inherit/include am33xx.dtsi , am335x-bone-common.dtsi should able boot network (tftp/nfs) on am335 board. /dts-v1/; #include "am33xx.dtsi" #include "am335x-bone-common.dtsi" / { model = "ti am335x beaglebone black"; compatible = "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx"; }; &ldo3_reg { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; }; &mmc1 { vmmc-supply = <&vmmcsd_fixed>; }; &mmc2 { vmmc-supply = <&vmmcsd_fixed>; pinctrl-names = "default"; pinctrl-0 = <&emmc_pins>; bus-width = <8>; status = "okay"; }; &lcdc { status = "okay"; };

django - Error Running node server , webpack for React configuration -

ive been digging last long few hours , cant catch bug. im following "guide on how create , set django project webpack, npm , reactjs :)" this error when try: node server.js (bonchans) ➜ bonchans git:(master) ✗ node server.js /users/juanperez/desktop/sandbox/dev/django+reactjs/django-react-boilerplate/bonchans/bonchans/node_modules/webpack/lib/webpack.js:19 throw new webpackoptionsvalidationerror(webpackoptionsvalidationerrors); ^ webpackoptionsvalidationerror: invalid configuration object. webpack has been initialised using configuration object not match api schema. - configuration.resolve has unknown property 'modulesdirectories'. these properties valid: object { alias?, aliasfields?, cachepredicate?, cachewithcontext?, descriptionfiles?, enforceextension?, enforcemoduleextension?, extensions?, filesystem?, mainfields?, mainfiles?, moduleextensions?, modules?, ...

html - Inline SVG making parent div bigger -

i'm trying create small dashboard app. since it's going on dashboard, want avoid having scroll @ costs. therefore set height/width of html/body tags 100%, , using percentages everywhere else not know screen sizes. however when add inline svg, when set width 100% on svg element forces parent div bigger fit svg, instead of stopping when gets smaller size. it's hard explain, did js fiddle: https://jsfiddle.net/5khkzgk8/4/ it's basics layout of app. svg black rectangle fills svg. svg { width: 10%; height: 100%; } currently svg width 10%, , works fine. if increase percentage 10% 10% , see how behaves see. (and have though happen) once fills height of div (in light blue), svg stop scaling up. happens continues scaling until width=100%, div big need scroll. i'd grateful assistance. i'm weekend worrior in frontend/css i'm lost @ moment. thanks!

javascript - Implement fuse.js.io function -

all. trying implement fuse.js.io search function from, well, fuse.js.io. have linked fuse.js html search.js variables: var list = [ { title: "the adventures of huckleberry finn", author: { firstname: "mark twain", } },]; the script, fuse, in html followed: <script type="text/javascript" var options = { shouldsort: true, threshold: 0.6, location: 0, distance: 100, maxpatternlength: 32, minmatchcharlength: 1, keys: [ "title", "author.firstname" ] }; var fuse = new fuse(list, options); // "list" item array var result = fuse.search(""); </script> question: how link search.js contains: var list = [ { title: "the adventures of huckleberry finn", author: { firstname: "mark twain", } },]; to html actual search feature returns keys. also, there no console errors don't know how turn scripts real featu...

How to generate random values from a normal distribution with specific mean in R -

Image
i have book equation, not sure how translate code in r. wondering if provide example. i want generate random values distribution. you can use rnorm generate random values: set.seed(100) mu <- 5 # or whatever mean n <- 10 # number of random values wish generate. x <- rnorm(n, mean = mu) #the function's default standard deviation 1 x [1] 4.497808 5.131531 4.921083 5.886785 5.116971 5.318630 4.418209 5.714533 [9] 4.174741 4.640138