logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

C++中的Aggregate initialization

Aggregate initialization in C++ allows initializing arrays and classes (with restrictions) using brace-enclosed lists. It's a form of list-initialization introduced in C++11. Key features: Simplified

#c++
Fanuc RoboGuide修改手臂控制器埠號port number

本文介绍了在Fanuc RoboGuide中查看和修改机器人控制器端口号的方法。通过右击控制器可查看当前端口号但无法直接修改。需在My Workcells目录下找到对应机器人的services.txt文件,关闭RoboGuide后手动修改其中的Robot IF Server"(TCP端口)和Robot Discovery Method(UDP端口)数值。默认TCP端口为60008,该端口

InternalError (see above for traceback): Blas GEMM launch failed : a.shape=(x, x), b.shape=(x,x)錯誤

這個錯誤是在一開始訓練Keras(使用TensorFlow當backend)模型的時候就出現。Python版本:3.5.2 Keras版本:2.1.2 TensorFlow版本:1.3.0使用`nvidia-smi`查看GPU memory的使用情況:發現己被其它程序佔滿。試著將這些程序關掉,然後再重新運行剛剛那段代碼(不必重啟kernel),問題即可成功解決!

#tensorflow#keras#linux
PyTorch中的intrusive_ptr

intrusive_ptr與unique_ptr,shared_ptr等一樣,都是smart pointer。但是intrusive_ptr比較特別,它所指向的物件類型必須繼承自intrusive_ptr_target,而intrusive_ptr_target必須實現引用計數相關的函數才行。在PyTorch中,StorageImpl繼承自c10::intrusive_ptr_target,所以c

#python#pytorch#c++
PIL及matplotlib:OSError: cannot identify image file錯誤及解決方式

這個錯誤是在使用PIL及matplotlib來讀圖(.jpg檔)的時候發生的。這個錯誤只有在讀某個特定的圖檔時才會發生。但是後來去檢查圖片,卻發現可以用一般的圖片瀏覽器打開,並且看不出什麼問題。問題的解決方法是筆者不經意發現的。因為PIL跟matplotlib都無法讀圖,所以想安裝其它的包試試看。一開始試了opencv-python,安裝完成後,發現使用cv2可以成功讀圖。後來試了scikit-i

#python#matplotlib
Windows 10下安裝OpenSSL 1.1.1

OpenSSL官網為OpenSSL,可以從上面下載openssl-1.1.1k.tar.gz後按照NOTES-WINDOWS.md的說明手動編譯安裝。但是看起來OpenSSL的依賴並不少,自己編譯可能會很麻煩,所以這裡直接使用installer來安裝。

文章图片
#visual studio#c++
C++ std::numeric_limits<T>::max(),min()及lowest()

@[TOC](C++ std::numeric_limits::max(),min()及lowest())std::numeric_limits<T>::max(),min()及lowest()根據std::numeric_limits,如果T屬於浮點數,則:std::numeric_limits<T>::max()回傳該型別的最大值std::numeric_li...

#c++
C 常數0L,0LL,0UL,0.0f,0.0L

C 常數0L,0LL,0UL,0.0f,0.0L參考連結C/C++中各種不同型別的常數0,以不同的後綴表示:0//int0L//long0LL//long long0UL//unsigned long0.0//double0.0f //float0.0L //long double在TensorRT/parsers/caffe/caffeWeightF...

#c语言
到底了