An error that repeats in my Matlab code-image classification

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?

답변 (3개)

Image Analyst
Image Analyst 2024년 1월 16일

0 개 추천

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

I mean tf.variable, recognizing that I will dynamically feed the data during execution.
What does this show in the command window?
whos tf
which -all tf
properties(tf)
methods(tf)

댓글을 달려면 로그인하십시오.

Atefeh
Atefeh 2024년 1월 17일

0 개 추천

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.

댓글 수: 1

What does this show in the command window?
whos tf
which -all tf
properties(tf)
methods(tf)

댓글을 달려면 로그인하십시오.

Atefeh
Atefeh 2024년 1월 19일

0 개 추천

I think these are related to tensor flow codes in Python which Matlab doesn't recognize them

카테고리

도움말 센터File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

제품

릴리스

R2022a

질문:

2024년 1월 16일

답변:

2024년 1월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by