innovation-cat / deeplearningbook Goto Github PK
View Code? Open in Web Editor NEWThis repository is used to publish source code of my deep learning book
License: MIT License
This repository is used to publish source code of my deep learning book
License: MIT License
train = theano.function(
inputs = [index],
outputs = cost,
updates=[(w, w - 0.1 * gw), (b, b - 0.1 * gb)],
givens = {x : train_X[index * batch_size : (index + 1) * batch_size],
y : train_Y[index * batch_size : (index + 1) * batch_size]})
TypeError Traceback (most recent call last)
in ()
4 updates=[(w, w - 0.1 * gw), (b, b - 0.1 * gb)],
5 givens = {x : train_X[index * batch_size : (index + 1) * batch_size],
----> 6 y : train_Y[index * batch_size : (index + 1) * batch_size]})
/usr/local/lib/python2.7/dist-packages/Theano-0.10.0.dev1-py2.7.egg/theano/compile/function.pyc in function(inputs, outputs, mode, updates, givens, no_default_updates, accept_inplace, name, rebuild_strict, allow_input_downcast, profile, on_unused_input)
324 on_unused_input=on_unused_input,
325 profile=profile,
--> 326 output_keys=output_keys)
327 # We need to add the flag check_aliased inputs if we have any mutable or
328 # borrowed used defined inputs
/usr/local/lib/python2.7/dist-packages/Theano-0.10.0.dev1-py2.7.egg/theano/compile/pfunc.pyc in pfunc(params, outputs, mode, updates, givens, no_default_updates, accept_inplace, name, rebuild_strict, allow_input_downcast, profile, on_unused_input, output_keys)
447 rebuild_strict=rebuild_strict,
448 copy_inputs_over=True,
--> 449 no_default_updates=no_default_updates)
450 # extracting the arguments
451 input_variables, cloned_extended_outputs, other_stuff = output_vars
/usr/local/lib/python2.7/dist-packages/Theano-0.10.0.dev1-py2.7.egg/theano/compile/pfunc.pyc in rebuild_collect_shared(outputs, inputs, replace, updates, rebuild_strict, copy_inputs_over, no_default_updates)
206 ' function to remove broadcastable dimensions.')
207
--> 208 raise TypeError(err_msg, err_sug)
209 assert update_val.type == store_into.type
210
TypeError: ('An update must have the same type as the original shared variable (shared_var=b, shared_var.type=TensorType(int64, scalar), update_val=Elemwise{sub,no_inplace}.0, update_val.type=TensorType(float64, scalar)).', 'If the difference is related to the broadcast pattern, you can call the tensor.unbroadcast(var, axis_to_unbroadcast[, ...]) function to remove broadcastable dimensions.')
I tried the sample cifar10 classification cnn.py. After epoch 0 end. Windows pop up run out of memory error by python program.
My configuration is Windows 10(4 cores/32 GB Ram) anaconda2 installed which meet the HW/SW requirement.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.