[python] Tensorflow tf.math.equal 함수
Tensorflow에서 제공하는 tf.math.equal 함수는 입력값 두개가 같은지 다른지 비교해주는 함수이다. 기본 형태로 tf.math.equal(x, y, name=None) 형태를 취한다. x와 y의 값을 원소별로 같은지 다른지 비교해주고 각각에 대한 True or False를 return해주는 함수이다. 예제 1) x = tf.constant([2, 4]) y = tf.constant([2, 4]) tf.math.equal(x, y) 에 대해서는 값이 [True, True]로 나온다. 예제 2) x = tf.constant([2,4]) y = tf.constant(2) tf.math.equal(x, y) 에 대해서는 값이 [True, False]로 나온다. 예제 3) x = tf.constan..
이것저것 자료/Python
2021. 8. 4. 13:03
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 프로그래머스
- 동적프로그래밍
- pytorch
- CUDA
- torchscript
- docker
- tensorflow
- notfound
- 백트래킹
- shellscript
- Python
- torch
- 카카오
- PIP
- 이것이코딩테스트다
- dfs
- 설치
- version
- 다익스트라
- LGSVL
- 파이썬
- 설치하기
- numpy
- n과m
- 백준
- error
- BFS
- matplotlib
- 최소신장트리
- 코딩테스트
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함