C.W.K.
Stream
Lesson 07 of 08 · published

Backend 마다 바뀌는 것

~8 min · backend

Level 0Keras 도제
0 XP0/97 lessons0/20 achievements
0/120 XP to next level120 XP to go0% complete

Keras 3 가 API 는 통일했지만 *backend 의 quirk* 는 leak 돼. (1) tensor 타입: torch.Tensor / tf.Tensor / jax.Array — 같은 process 안 섞으면 type error. (2) device 관리: TF 는 자동, PyTorch 는 .to('cuda') 명시, JAX 는 jax.device_put. (3) graph mode: TF 의 @tf.function, PyTorch 의 torch.compile, JAX 의 @jax.jit — 다 다른 호출.

이 잎새들은 외부 라이브러리 mix 할 때만 보여. 순수 Keras 코드 (keras.layers + keras.ops + .fit()) 면 99% 안 보임.

백엔드 노트:
⚙️ Backend Note

External links

Exercise

같은 model + train loop 을 세 backend 다 짜. backend-specific 한 거 한 곳이라도 있는지 메모. 그 리스트가 비어있게 만드는 게 목표.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.