An error that repeats in my Matlab code-image classification
Afficher commentaires plus anciens
this error is repeating in my matlab image classification code. My verrsion of matlab is 2022a
and the error is as follows:
The class tf has no Constant property or Static method named 'placeholder'.
Error in all_in_one (line 68)
x = tf.placeholder('single', 'name', 'x');
Can you advise?
Réponses (3)
Image Analyst
le 16 Jan 2024
0 votes
What tf are you using? When I look in the help it lookos like there are lots of tf functions. It looks like you're trying to call some tensorflow function. I haven't done that but somehow you need to tell it to use tensorflow rather than the built-in tf functions.
2 commentaires
Atefeh
le 16 Jan 2024
Image Analyst
le 16 Jan 2024
What does this show in the command window?
whos tf
which -all tf
properties(tf)
methods(tf)
Atefeh
le 17 Jan 2024
0 votes
1 commentaire
Image Analyst
le 17 Jan 2024
What does this show in the command window?
whos tf
which -all tf
properties(tf)
methods(tf)
Atefeh
le 19 Jan 2024
0 votes
Catégories
En savoir plus sur Call Python from MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!