this is the memory error trace that i am getting .
Building network
Build finished in 0:00:05
Optimization finished in 0:00:08
Construction finished in 0:11:54
---------------------------------------------------------------------------
MemoryError Traceback (most recent call last)
<ipython-input-7-0527e80faca3> in <module>()
79 # construct the simulator
80 minibatch_size = None
---> 81 sim = nengo_dl.Simulator(net, minibatch_size=minibatch_size)
C:\ProgramData\Anaconda34\lib\site-packages\nengo_dl\simulator.py in __init__(self, network, dt, seed, model, dtype, device, unroll_simulation, minibatch_size, tensorboard)
132 with utils.ProgressBar("Constructing graph", "Construction",
133 max_value=None) as progress:
--> 134 self.tensor_graph.build(progress)
135
136 # output simulation data for viewing via TensorBoard
C:\ProgramData\Anaconda34\lib\site-packages\nengo_dl\tensor_graph.py in func_with_self(self, *args, **kwargs)
27 def func_with_self(self, *args, **kwargs):
28 with self.graph.as_default(), tf.device(self.device):
---> 29 return func(self, *args, **kwargs)
30
31 return func_with_self
C:\ProgramData\Anaconda34\lib\site-packages\nengo_dl\tensor_graph.py in build(self, progress)
181 var = tf.get_variable(
182 name, initializer=tf.constant_initializer(v),
--> 183 dtype=v.dtype, shape=v.shape, trainable=True)
184 else:
185 with tf.variable_scope("local_vars", reuse=False):
C:\ProgramData\Anaconda34\lib\site-packages\tensorflow\python\ops\variable_scope.py in get_variable(name, shape, dtype, initializer, regularizer, trainable, collections, caching_device, partitioner, validate_shape, use_resource, custom_getter, constraint)
1260 partitioner=partitioner, validate_shape=validate_shape,
1261 use_resource=use_resource, custom_getter=custom_getter,
-> 1262 constraint=constraint)
1263 get_variable_or_local_docstring = (
1264 """%s
C:\ProgramData\Anaconda34\lib\site-packages\tensorflow\python\ops\variable_scope.py in get_variable(self, var_store, name, shape, dtype, initializer, regularizer, reuse, trainable, collections, caching_device, partitioner, validate_shape, use_resource, custom_getter, constraint)
1095 partitioner=partitioner, validate_shape=validate_shape,
1096 use_resource=use_resource, custom_getter=custom_getter,
-> 1097 constraint=constraint)
1098
1099 def _get_partitioned_variable(self,
C:\ProgramData\Anaconda34\lib\site-packages\tensorflow\python\ops\variable_scope.py in get_variable(self, name, shape, dtype, initializer, regularizer, reuse, trainable, collections, caching_device, partitioner, validate_shape, use_resource, custom_getter, constraint)
433 caching_device=caching_device, partitioner=partitioner,
434 validate_shape=validate_shape, use_resource=use_resource,
--> 435 constraint=constraint)
436
437 def _get_partitioned_variable(
C:\ProgramData\Anaconda34\lib\site-packages\tensorflow\python\ops\variable_scope.py in _true_getter(name, shape, dtype, initializer, regularizer, reuse, trainable, collections, caching_device, partitioner, validate_shape, use_resource, constraint)
402 trainable=trainable, collections=collections,
403 caching_device=caching_device, validate_shape=validate_shape,
--> 404 use_resource=use_resource, constraint=constraint)
405
406 if custom_getter is not None:
C:\ProgramData\Anaconda34\lib\site-packages\tensorflow\python\ops\variable_scope.py in _get_single_variable(self, name, shape, dtype, initializer, regularizer, partition_info, reuse, trainable, collections, caching_device, validate_shape, use_resource, constraint)
804 dtype=variable_dtype,
805 validate_shape=validate_shape,
--> 806 constraint=constraint)
807 if context.in_graph_mode() or self._store_eager_variables:
808 # In eager mode we do not want to keep default references to Variable
C:\ProgramData\Anaconda34\lib\site-packages\tensorflow\python\ops\variables.py in __init__(self, initial_value, trainable, collections, validate_shape, caching_device, name, variable_def, dtype, expected_shape, import_scope, constraint)
227 dtype=dtype,
228 expected_shape=expected_shape,
--> 229 constraint=constraint)
230
231 def __repr__(self):
C:\ProgramData\Anaconda34\lib\site-packages\tensorflow\python\ops\variables.py in _init_from_args(self, initial_value, trainable, collections, validate_shape, caching_device, name, dtype, expected_shape, constraint)
321 with ops.name_scope("Initializer"), ops.device(None):
322 self._initial_value = ops.convert_to_tensor(
--> 323 initial_value(), name="initial_value", dtype=dtype)
324 shape = (self._initial_value.get_shape()
325 if validate_shape else tensor_shape.unknown_shape())
C:\ProgramData\Anaconda34\lib\site-packages\tensorflow\python\ops\variable_scope.py in <lambda>()
778 initializer = initializer(dtype=dtype)
779 init_val = lambda: initializer( # pylint: disable=g-long-lambda
--> 780 shape.as_list(), dtype=dtype, partition_info=partition_info)
781 variable_dtype = dtype.base_dtype
782
C:\ProgramData\Anaconda34\lib\site-packages\tensorflow\python\ops\init_ops.py in __call__(self, shape, dtype, partition_info, verify_shape)
198 verify_shape = self._verify_shape
199 return constant_op.constant(
--> 200 self.value, dtype=dtype, shape=shape, verify_shape=verify_shape)
201
202 def get_config(self):
C:\ProgramData\Anaconda34\lib\site-packages\tensorflow\python\framework\constant_op.py in constant(value, dtype, shape, name, verify_shape)
216 attrs={"value": tensor_value,
217 "dtype": dtype_value},
--> 218 name=name).outputs[0]
219 return const_tensor
220
C:\ProgramData\Anaconda34\lib\site-packages\tensorflow\python\framework\ops.py in create_op(self, op_type, inputs, dtypes, input_types, name, attrs, op_def, compute_shapes, compute_device)
3160 op_def=op_def)
3161 self._create_op_helper(ret, compute_shapes=compute_shapes,
-> 3162 compute_device=compute_device)
3163 return ret
3164
C:\ProgramData\Anaconda34\lib\site-packages\tensorflow\python\framework\ops.py in _create_op_helper(self, op, compute_shapes, compute_device)
3214 for key, value in self._attr_scope_map.items():
3215 try:
-> 3216 op.get_attr(key)
3217 except ValueError:
3218 if callable(value):
C:\ProgramData\Anaconda34\lib\site-packages\tensorflow\python\framework\ops.py in get_attr(self, name)
2171 if name not in self._node_def.attr:
2172 raise ValueError(
-> 2173 "No attr named '" + name + "' in " + str(self._node_def))
2174 x = self._node_def.attr[name]
2175
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\internal\python_message.py in __str__(self)
964 """Helper for _AddMessageMethods()."""
965 def __str__(self):
--> 966 return text_format.MessageToString(self)
967 cls.__str__ = __str__
968
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_format.py in MessageToString(message, as_utf8, as_one_line, pointy_brackets, use_index_order, float_format, use_field_number, descriptor_pool, indent, message_formatter)
161 use_index_order, float_format, use_field_number,
162 descriptor_pool, message_formatter)
--> 163 printer.PrintMessage(message)
164 result = out.getvalue()
165 out.close()
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_format.py in PrintMessage(self, message)
347 # TODO(haberman): refactor and optimize if this becomes an issue.
348 entry_submsg = value.GetEntryClass()(key=key, value=value[key])
--> 349 self.PrintField(field, entry_submsg)
350 elif field.label == descriptor.FieldDescriptor.LABEL_REPEATED:
351 for element in value:
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_format.py in PrintField(self, field, value)
381 out.write(': ')
382
--> 383 self.PrintFieldValue(field, value)
384 if self.as_one_line:
385 out.write(' ')
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_format.py in PrintFieldValue(self, field, value)
417 out = self.out
418 if field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
--> 419 self._PrintMessageFieldValue(value)
420 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_ENUM:
421 enum_value = field.enum_type.values_by_number.get(value, None)
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_format.py in _PrintMessageFieldValue(self, value)
402 self.out.write(' %s\n' % openb)
403 self.indent += 2
--> 404 self.PrintMessage(value)
405 self.indent -= 2
406 self.out.write(' ' * self.indent + closeb)
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_format.py in PrintMessage(self, message)
352 self.PrintField(field, element)
353 else:
--> 354 self.PrintField(field, value)
355
356 def PrintField(self, field, value):
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_format.py in PrintField(self, field, value)
381 out.write(': ')
382
--> 383 self.PrintFieldValue(field, value)
384 if self.as_one_line:
385 out.write(' ')
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_format.py in PrintFieldValue(self, field, value)
417 out = self.out
418 if field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
--> 419 self._PrintMessageFieldValue(value)
420 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_ENUM:
421 enum_value = field.enum_type.values_by_number.get(value, None)
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_format.py in _PrintMessageFieldValue(self, value)
402 self.out.write(' %s\n' % openb)
403 self.indent += 2
--> 404 self.PrintMessage(value)
405 self.indent -= 2
406 self.out.write(' ' * self.indent + closeb)
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_format.py in PrintMessage(self, message)
352 self.PrintField(field, element)
353 else:
--> 354 self.PrintField(field, value)
355
356 def PrintField(self, field, value):
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_format.py in PrintField(self, field, value)
381 out.write(': ')
382
--> 383 self.PrintFieldValue(field, value)
384 if self.as_one_line:
385 out.write(' ')
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_format.py in PrintFieldValue(self, field, value)
417 out = self.out
418 if field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
--> 419 self._PrintMessageFieldValue(value)
420 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_ENUM:
421 enum_value = field.enum_type.values_by_number.get(value, None)
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_format.py in _PrintMessageFieldValue(self, value)
402 self.out.write(' %s\n' % openb)
403 self.indent += 2
--> 404 self.PrintMessage(value)
405 self.indent -= 2
406 self.out.write(' ' * self.indent + closeb)
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_format.py in PrintMessage(self, message)
352 self.PrintField(field, element)
353 else:
--> 354 self.PrintField(field, value)
355
356 def PrintField(self, field, value):
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_format.py in PrintField(self, field, value)
381 out.write(': ')
382
--> 383 self.PrintFieldValue(field, value)
384 if self.as_one_line:
385 out.write(' ')
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_format.py in PrintFieldValue(self, field, value)
435 else:
436 out_as_utf8 = self.as_utf8
--> 437 out.write(text_encoding.CEscape(out_value, out_as_utf8))
438 out.write('\"')
439 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_BOOL:
C:\ProgramData\Anaconda34\lib\site-packages\google\protobuf\text_encoding.py in CEscape(text, as_utf8)
77 if as_utf8:
78 return ''.join(_cescape_utf8_to_str[Ord(c)] for c in text)
---> 79 return ''.join(_cescape_byte_to_str[Ord(c)] for c in text)
80
81
MemoryError: