Traceback (most recent call last):


 "/home/travis/build/peterjc/biopython/Tests/test_NaiveBayes.py", line 77, in setUp

self.model = NaiveBayes.train(self.xs, self.ys)


 "/home/travis/build/peterjc/biopython/build/lib.linux-x86_64-3.5/Bio/NaiveBayes.py", line 204, in train

nb.p_conditional[i][j] = _contents(values)


 "/home/travis/build/peterjc/biopython/build/lib.linux-x86_64-3.5/Bio/NaiveBayes.py", line 38, in _contents

counts[item] = counts.get(item, 0) + term
TypeError: 'numpy.float64' objects are unhashable

Traceback (most recent call last):


 "/tf/case_time/train.py", line 142, in <module>

tf.saved_model.save(model, './test')


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/saved_model/save.py", line 886, in save

checkpoint_graph_view)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/saved_model/signature_serialization.py", line 74, in find_function_to_export

functions = saveable_view.list_functions(saveable_view.root)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/saved_model/save.py", line 142, in list_functions

self._serialization_cache)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/engine/base_layer.py", line 2420, in _list_functions_for_serialization

.list_functions_for_serialization(serialization_cache))


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/saving/saved_model/base_serialization.py", line 91, in list_functions_for_serialization

fns = self.functions_to_serialize(serialization_cache)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/saving/saved_model/layer_serialization.py", line 80, in functions_to_serialize

serialization_cache).functions_to_serialize)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/saving/saved_model/layer_serialization.py", line 95, in _get_serialized_attributes

serialization_cache)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/saving/saved_model/model_serialization.py", line 53, in _get_serialized_attributes_internal

serialization_cache))


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/saving/saved_model/layer_serialization.py", line 104, in _get_serialized_attributes_internal

functions = save_impl.wrap_layer_functions(self.obj, serialization_cache)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/saving/saved_model/save_impl.py", line 172, in wrap_layer_functions

'{}_layer_call_and_return_conditional_losses'.format(layer.name))


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/saving/saved_model/save_impl.py", line 513, in add_function

self.add_trace(*self._input_signature)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/saving/saved_model/save_impl.py", line 429, in add_trace

trace_with_training(False)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/saving/saved_model/save_impl.py", line 426, in trace_with_training

fn.get_concrete_function(*args, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/saving/saved_model/save_impl.py", line 557, in get_concrete_function

return super(LayerCall, self).get_concrete_function(*args, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/eager/def_function.py", line 919, in get_concrete_function

concrete = self._stateful_fn.get_concrete_function(*args, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/eager/function.py", line 2434, in get_concrete_function

graph_function, args, kwargs = self._maybe_define_function(args, kwargs)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/eager/function.py", line 2703, in _maybe_define_function

graph_function = self._create_graph_function(args, kwargs)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/eager/function.py", line 2593, in _create_graph_function

capture_by_value=self._capture_by_value),


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/func_graph.py", line 978, in func_graph_from_py_func

func_outputs = python_func(*func_args, **func_kwargs)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/eager/def_function.py", line 439, in wrapped_fn

return weak_wrapped_fn().__wrapped__(*args, **kwds)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/saving/saved_model/save_impl.py", line 534, in wrapper

ret = method(*args, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/saving/saved_model/utils.py", line 113, in wrap_with_training_arg

lambda: replace_training_and_call(False))


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/utils/tf_utils.py", line 59, in smart_cond

pred, true_fn=true_fn, false_fn=false_fn, name=name)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/smart_cond.py", line 56, in smart_cond

return false_fn()


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/saving/saved_model/utils.py", line 113, in <lambda>

lambda: replace_training_and_call(False))


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/saving/saved_model/utils.py", line 108, in replace_training_and_call

return wrapped_call(*args, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/saving/saved_model/save_impl.py", line 576, in call_and_return_conditional_losses

return layer_call(inputs, *args, **kwargs), layer.get_losses_for(inputs)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/engine/network.py", line 717, in call

convert_kwargs_to_constants=base_layer_utils.call_context().saving)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/engine/network.py", line 891, in _run_internal_graph

output_tensors = layer(computed_tensors, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/engine/base_layer.py", line 807, in __call__

self._set_mask_metadata(inputs, outputs, input_masks)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/engine/base_layer.py", line 1937, in _set_mask_metadata

output_masks = self.compute_mask(inputs, previous_mask)


 "/usr/local/lib/python3.6/dist-packages/bert4keras/layers.py", line 235, in compute_mask

return mask[0]
TypeError: 'NoneType' object is not subscriptable
