Comments (3)
For simplify the bug reprodution follow the code where the inputs is two simple dict of tensors and one int tensor.
This code do the same as issue code and reproduce the error.
@tf.keras.saving.register_keras_serializable(package="MyLayers")
class BruteForce3(tf.keras.layers.Layer):
def __init__(self, model, k=5, **kwargs):
super().__init__(**kwargs)
self.model = model
self.k = k
@tf.function(input_signature=[data_ds.element_spec, candidaster.element_spec, tf.TensorSpec([], dtype=tf.int32)])
# @tf.function
def call(self, queries, candidates, ks):
standard_brute = tfrs.layers.factorized_top_k.BruteForce(self.model.query_model)
candidates = [candidates]
parse_one = pd.DataFrame.from_dict(candidates).to_dict(orient='list')
candidates = tf.data.Dataset.from_tensor_slices(parse_one)
standard_brute.index_from_dataset(tf.data.Dataset.zip(candidates.batch(2).map(lambda x: x['experience.jobTitle']),
candidates.batch(2).map(self.model.candidate_model)
))
scores, ids = standard_brute(queries, ks)
return scores, ids`
and save model:
`custom = BruteForce3(final_model)
for l in data_ds.take(1):
scores, jobs = custom(l, cand[0], 2)
print(scores, jobs)
tf.saved_model.save(custom, "./serveModels/exportedMode36")`
when i save the model without function decorator and inputs_signatures i have the follow error on calling loaded model:
ValueError: Found zero restored functions for caller function.
and if i serve with tensorflow serving i have the follow response from server endpoint:
"error": "Serving signature name: \"serving_default\" not found in signature def"
from tensorflow.
Hi @Chm-vinicius ,
Could you please minimal code snippet for reproducing the issue? Thanks!
It seems the code contains tensorflow recommender layers which we are not supporting here at TF repo. I can see this is already reported in concerned repo.
If you can able to reproduce the issue with TF/Keras please submit the code snippet for same. Thanks!
from tensorflow.
Hi @SuryanarayanaY,
Thanks for your response!
Unfortunately due to NDA contract i cant share more than that, also we still in permantly contact with a google engineers to find and solve this issue.
When the solution are reached i certainly share her.
from tensorflow.
Related Issues (20)
- Inference time using Interpreter API on Android inconsistent and 10–50 times slower than same tflite model on iOS HOT 9
- Basic regression: Predict fuel efficiency Probelm HOT 3
- [
- [Question] Is it possibile to use `jit_compile=True` (XLA) when input is a string? HOT 4
- Homepage sections displaying incorrectly on TensorFlow website HOT 3
- Wrong quantized_dimension (axis) when "per-channel" quantization
- tf.function deadlock with multiple multiprocess/threading HOT 1
- bazel rebuild the file not work HOT 1
- Denial of Service in tf.raw_ops.Unstage HOT 1
- Repository '@python' is not defined HOT 3
- Tensforflow-cpu 2.12.0 suddenly stopped working with Python 3.7-slim HOT 4
- tensorflow 1.x and 2.x produce different results during inferencing based on the same parameters HOT 4
- Compile Error: Undeclared Identifier ‘tsl’ in libtensorflow
- Conda Release supporting Windows + Python 3.11 HOT 3
- Tensorflow Building from Source Code HOT 1
- which version of keras is used by latest kws_streaming HOT 4
- Convert TFlite buffer created using TF1 to TF2 TFlite buffer HOT 1
- How to contribute?
- Error in computation = RQAComputation.create(settings, verbose=True) when I use HPC. However, I do not encounter any error when I use my personal laptop for the same code and installing the same package : from pyrqa.computation import RQAComputation
- I think we should use a separate api token named for this view. We may have additional clients of the APIs in the future, and we should be able to make the decision to limit one of the other of these endpoints from those additional clients. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow.