version
-
[nestjs] TypeError: version.split is not a function (typeorm, mariaDB)Database/mysql 2023. 1. 9. 16:25
netjs 프레임워크에서 typeorm을 사용해서 mariaDB와 연동을 하려고 하는데, 아래와 같은 에러가 발생했다. query: SELECT VERSION() AS `version` [Nest] 48360 - 01/09/2023, 4:06:54 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (2)... TypeError: version.split is not a function at parseVersion (.../src/util/VersionUtils.ts:19:13) typeorm에서 db에 연결할 때 버전을 확인하는 작업을 한다. 그 때 mysql과 mariaDB의 버전 저장 양식이 달라서, split 함수 사용 코드에..
-
[tensorflow] How to use tf.contrib.data.make_csv_dataset() on tensorflow 2.xAI 2020. 3. 25. 18:50
tensorflow를 2.1로 업그레이드 하면서 많은 함수의 변화가 생겼다. 그중 하나를 소개하고자 한다. 아래는 csv파일의 데이터를 가져오는 함수로 많이 사용된다. # tensorflow 1.4 tf.contrib.data.make_csv_dataset() to # tensorflow 2.1 tf.data.experimental.make_csv_dataset()