get error when run charRNN with vs2013update5

オープン
#60 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp
領域
build-system

調査の方向性

まず、example/charRNN.cpp の Visual Studio 2013 Update 5 ビルドを再現し、101 行目の transpose 呼び出しを、報告されている他のエラーと併せて調査します。利用可能な transpose シグネチャとこの 1 引数の呼び出しを比較し、報告されているエラーなしで例が正常にビルドされることを確認します。

索引モデルが issue の本文から書いたものです。

説明

1>..\..\..\example\charRNN.cpp(101): error C2661: 'mxnet::cpp::transpose' : no overloaded function takes 1 arguments
1>..\..\..\example\charRNN.cpp(149): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
1>..\..\..\example\charRNN.cpp(153): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
1>..\..\..\example\charRNN.cpp(202): warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
1>..\..\..\example\charRNN.cpp(288): error C2664: 'std::tuple<std::unordered_map<wchar_t,mx_float,std::hash<wchar_t>,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>,std::vector<wchar_t,std::allocator<wchar_t>>>::tuple(const std::tuple<std::unordered_map<_Kty,_Ty,std::hash<wchar_t>,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>,std::vector<wchar_t,std::allocator<wchar_t>>> &)' : cannot convert argument 1 from 'std::unordered_map<wchar_t,mx_float,std::hash<wchar_t>,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>' to 'std::allocator_arg_t'
1>          with
1>          [
1>              _Kty=wchar_t
1>  ,            _Ty=mx_float
1>          ]
1>          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>..\..\..\example\charRNN.cpp(349): warning C4305: 'initializing' : truncation from 'double' to 'mx_float'
1>..\..\..\example\charRNN.cpp(372): warning C4305: 'argument' : truncation from 'double' to 'float'
1>..\..\..\example\charRNN.cpp(376): warning C4305: 'initializing' : truncation from 'double' to 'mx_float'
1>..\..\..\example\charRNN.cpp(377): warning C4305: 'initializing' : truncation from 'double' to 'mx_float'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

maybe the transpose op should add a arg about axes?
how can fixed it?

or maybe vs2015 don't have this problem...?
but i can't find a transpose function with only one arg exactly

主要言語
C++
スター
113
フォーク
78
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dmlc/MXNet.cpp のほかの issue

dmlc/MXNet.cpp の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。