ryfeus / gcf-packs Goto Github PK
View Code? Open in Web Editor NEWLibrary packs for google cloud functions
Library packs for google cloud functions
I had trained the fashion-mnist model into GCS and deployed the GCF.
However, the function crashed due to this error:
Incompatible type conversion requested to type 'float64' for variable of type 'float32'
...
File "/user_code/main.py", line 22, in call
x = self.conv1(x)
File "/env/local/lib/python3.7/site-packages/tensorflow/python/keras/engine/base_layer.py", line 660, in __call__
outputs = self.call(inputs, *args, **kwargs)
File "/env/local/lib/python3.7/site-packages/tensorflow/python/keras/layers/convolutional.py", line 196, in call
outputs = self._convolution_op(inputs, self.kernel)
File "/env/local/lib/python3.7/site-packages/tensorflow/python/ops/nn_ops.py", line 1078, in __call__
return self.conv_op(inp, filter)
File "/env/local/lib/python3.7/site-packages/tensorflow/python/ops/nn_ops.py", line 634, in __call__
return self.call(inp, filter)
File "/env/local/lib/python3.7/site-packages/tensorflow/python/ops/nn_ops.py", line 233, in __call__
name=self.name)
File "/env/local/lib/python3.7/site-packages/tensorflow/python/ops/nn_ops.py", line 1951, in conv2d
name=name)
File "/env/local/lib/python3.7/site-packages/tensorflow/python/ops/gen_nn_ops.py", line 1031, in conv2d
data_format=data_format, dilations=dilations, name=name, ctx=_ctx)
File "/env/local/lib/python3.7/site-packages/tensorflow/python/ops/gen_nn_ops.py", line 1123, in conv2d_eager_fallback
_attr_T, _inputs_T = _execute.args_to_matching_eager([input, filter], _ctx)
File "/env/local/lib/python3.7/site-packages/tensorflow/python/eager/execute.py", line 202, in args_to_matching_eager
ret = [internal_convert_to_tensor(t, dtype, ctx=ctx) for t in l]
File "/env/local/lib/python3.7/site-packages/tensorflow/python/eager/execute.py", line 202, in <listcomp>
ret = [internal_convert_to_tensor(t, dtype, ctx=ctx) for t in l]
File "/env/local/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 1186, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/env/local/lib/python3.7/site-packages/tensorflow/python/ops/resource_variable_ops.py", line 1420, in _dense_var_to_tensor
return var._dense_var_to_tensor(dtype=dtype, name=name, as_ref=as_ref) # pylint: disable=protected-access
File "/env/local/lib/python3.7/site-packages/tensorflow/python/ops/resource_variable_ops.py", line 1371, in _dense_var_to_tensor
"of type {!r}".format(dtype.name, self.dtype.name))
ValueError: Incompatible type conversion requested to type 'float64' for variable of type 'float32'
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.