An error that repeats in my Matlab code-image classification
2 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(3 个)
Image Analyst
2024-1-16
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 个评论
Image Analyst
2024-1-16
What does this show in the command window?
whos tf
which -all tf
properties(tf)
methods(tf)
Atefeh
2024-1-17
1 个评论
Image Analyst
2024-1-17
What does this show in the command window?
whos tf
which -all tf
properties(tf)
methods(tf)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!