Filter löschen
Filter löschen

An error that repeats in my Matlab code-image classification

1 Ansicht (letzte 30 Tage)
Atefeh
Atefeh am 16 Jan. 2024
Beantwortet: Atefeh am 19 Jan. 2024
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?

Antworten (3)

Image Analyst
Image Analyst am 16 Jan. 2024
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 Kommentare
Atefeh
Atefeh am 16 Jan. 2024
I mean tf.variable, recognizing that I will dynamically feed the data during execution.
Image Analyst
Image Analyst am 16 Jan. 2024
What does this show in the command window?
whos tf
which -all tf
properties(tf)
methods(tf)

Melden Sie sich an, um zu kommentieren.


Atefeh
Atefeh am 17 Jan. 2024
You know, I downloaded 3 python files from the Github website to do image classification and during converting Python codes to matlab code, this error appears.

Atefeh
Atefeh am 19 Jan. 2024
I think these are related to tensor flow codes in Python which Matlab doesn't recognize them

Kategorien

Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by