Closed treya-lin closed 1 year ago
Should be fixed by https://github.com/k2-fsa/k2/pull/1144
Please update your code to the latest master.
conda install pytorch==1.7.1
By the way, torch 1.7.1 is somewhat outdated. I strongly recommend choosing a new version, e.g., 1.10.0.
Also, I suggest that you use pip install
to install torch
and install cudatoolkit by following
https://k2-fsa.github.io/k2/installation/cuda-cudnn.html
conda install
installs lots of things for you and it is hard to debug when it goes wrong. We are using pip
instead of conda
.
@csukuangfj
Hi thanks for your detailed reply!
Should be fixed by #1144
Please update your code to the latest master.
Oh yes you are right. It is working beautifully now. Thanks!
conda install pytorch==1.7.1
By the way, torch 1.7.1 is somewhat outdated. I strongly recommend choosing a new version, e.g., 1.10.0.
Also, I suggest that you use
pip install
to installtorch
and install cudatoolkit by following https://k2-fsa.github.io/k2/installation/cuda-cudnn.html
conda install
installs lots of things for you and it is hard to debug when it goes wrong. We are usingpip
instead ofconda
.
Thanks for your suggestion. My cuda is 10.1 so it seems I can only use torch 1.7. or 1.8. with it. I just updated my cuda to 11.0 (nvcc -V now returns 11.0) , cudnn not updatd yet. And I have a question:
I am now having a environmnet where torch 1.7 and k2 was compiled with cuda 10.2. So I assumed with cuda now updated to 11.0, if I run the test in egs/yesno now, it would have failed, but actually it is still working well. I am a bit confuse about when I may need to recompile k2 and when not. Thanks!
So I assumed with cuda now updated to 11.0
How did you update that? Did you uninstall cuda 10.2?
When you mean update, do you update cudatoolkit or update the driver?
So I assumed with cuda now updated to 11.0
How did you update that? Did you uninstall cuda 10.2?
When you mean update, do you update cudatoolkit or update the driver?
Hi, with "update" I mean I installed cudatoolkit 11.0 and activated it by following the guide: https://k2-fsa.github.io/k2/installation/cuda-cudnn.html#cuda-11-0
I didn't uninstall cuda 10.2, it is still there. To make it more clear, so now the directory where they are kept looks like this:
ll /usr/local
total 60
drwxr-xr-x 15 root root 4096 1月 18 10:01 ./
drwxr-xr-x 13 root root 4096 12月 7 14:03 ../
drwxr-xr-x 3 root root 4096 9月 13 16:03 bin/
lrwxrwxrwx 1 root root 23 1月 18 10:01 cuda -> /usr/local/cuda-11.0.3//
drwxr-xr-x 19 root root 4096 8月 19 2019 cuda-10.0/
drwxr-xr-x 18 root root 4096 12月 14 2020 cuda-10.1/
drwxr-xr-x 16 root root 4096 1月 18 11:21 cuda-11.0.3/
I didn't update my driver. Actually my driver version has been 11.0 from the very beginning.
nvidia-smi
Wed Jan 18 11:45:00 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.57 Driver Version: 450.57 CUDA Version: 11.0 |
Thanks for the explanation.
So I assumed with cuda now updated to 11.0, if I run the test in egs/yesno now, it would have failed, but actually it is still working well. I am a bit confuse about when I may need to recompile k2 and when not.
No, you don't need to re-compile k2.
After compiling k2, you can update your cudatoolkit, as long as you don't remove the previous one and also if you don't change the already installed pytorch.
In your case, nvidia-smi
shows
CUDA Version: 11.0
which means you can use any cudatoolkit that is not newer cuda 11.0. That is, you can use cuda 10.1, 10.2, and 11.0
I see. Thanks a lot!
@treya-lin
Have you fixed this issue?
@treya-lin
Have you fixed this issue?
Hi not yet. Any suggestion? Thanks!
Could you post the latest error log?
@csukuangfj Hi , so I just updated my torch to torch 1.10.0 and am installing k2 from source again (I have removed the build depository befor doing so). But it is reporting some errors. Could you take a look at it? Thanks!
k2$ python3 setup.py install
running install
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running bdist_egg
running egg_info
writing k2.egg-info/PKG-INFO
writing dependency_links to k2.egg-info/dependency_links.txt
writing requirements to k2.egg-info/requires.txt
writing top-level names to k2.egg-info/top_level.txt
reading manifest file 'k2.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'k2.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
copying k2/python/k2/__init__.py -> build/lib.linux-x86_64-cpython-38/k2
running build_ext
cmake_path: /usr/local/bin/cmake
Setting PYTHON_EXECUTABLE to /home/user/anaconda3/envs/env_k2_v2/bin/python3
build command is:
cd build/temp.linux-x86_64-cpython-38
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/home/user/anaconda3/envs/env_k2_v2/bin/python3 -DK2_ENABLE_BENCHMARK=OFF -DK2_ENABLE_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2 /home/user/workspace/asr_space/next_gen_kaldi/k2
cat k2/csrc/version.h
make -j6 install
-- CMAKE_VERSION: 3.14.0
-- Enabled languages: CXX;CUDA
-- The CXX compiler identification is GNU 5.4.0
-- The CUDA compiler identification is NVIDIA 10.2.89
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- K2_OS: Ubuntu 16.04.6 LTS
-- Found Git: /usr/bin/git (found version "2.7.4")
-- Looking for C++ include cxxabi.h
-- Looking for C++ include cxxabi.h - found
-- Looking for C++ include execinfo.h
-- Looking for C++ include execinfo.h - found
-- Performing Test K2_COMPILER_SUPPORTS_CXX14
-- Performing Test K2_COMPILER_SUPPORTS_CXX14 - Success
-- C++ Standard version: 14
-- Autodetected CUDA architecture(s): 6.1 6.1 6.1 6.1
-- K2_COMPUTE_ARCH_FLAGS: -gencode;arch=compute_61,code=sm_61
-- K2_COMPUTE_ARCH_CANDIDATES 35;50;60;61;70;75
-- Skipping arch 35
-- Skipping arch 50
-- Skipping arch 60
-- Adding arch 61
-- Skipping arch 70
-- Skipping arch 75
-- K2_COMPUTE_ARCHS: 61
-- Could NOT find Valgrind (missing: Valgrind_INCLUDE_DIR Valgrind_EXECUTABLE)
-- Downloading pybind11 from https://github.com/pybind/pybind11/archive/5bc0943ed96836f46489f53961f6c438d2935357.zip
-- pybind11 is downloaded to /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/pybind11-src
-- pybind11 v2.11.0 dev1
-- Found PythonInterp: /home/user/anaconda3/envs/env_k2_v2/bin/python3 (found suitable version "3.8.16", minimum required is "3.6")
-- Found PythonLibs: /home/user/anaconda3/envs/env_k2_v2/lib/libpython3.8.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Python executable: /home/user/anaconda3/envs/env_k2_v2/bin/python3
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda (found version "10.2")
-- Caffe2: CUDA detected: 10.2
-- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda
-- Caffe2: Header version is: 10.2
-- Found CUDNN: /usr/local/cuda/lib64/libcudnn.so
-- Found cuDNN: v8.0.2 (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so)
-- /usr/local/cuda/lib64/libnvrtc.so shorthash is 08c4863f
-- Autodetected CUDA architecture(s): 6.1 6.1 6.1 6.1
-- Added CUDA NVCC flags for: -gencode;arch=compute_61,code=sm_61
CMake Warning at /home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
static library kineto_LIBRARY-NOTFOUND not found.
Call Stack (most recent call first):
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
cmake/torch.cmake:11 (find_package)
CMakeLists.txt:292 (include)
-- Found Torch: /home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/lib/libtorch.so
-- K2_TORCH_VERSION: 1.10
-- PyTorch version: 1.10.0+cu102
-- PyTorch cuda version: 10.2
-- Generated /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/torch_version.py
-- Downloading cub
-- cub is downloaded to /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/cub-src
-- Downloading moderngpu from https://github.com/moderngpu/moderngpu/archive/8ec9ac0de8672de7217d014917eedec5317f75f3.zip
-- moderngpu is downloaded to /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/moderngpu-src
-- CMAKE_CUDA_FLAGS: -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_61,code=sm_61 -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options -Wall --compiler-options -Wno-strict-overflow --compiler-options -Wno-unknown-pragmas
-- CMAKE_CXX_FLAGS: -D_GLIBCXX_USE_CXX11_ABI=0 -Wno-unused-variable -Wno-strict-overflow
-- CMAKE_CUDA_FLAGS: -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_61,code=sm_61 -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options -Wall --compiler-options -Wno-strict-overflow --compiler-options -Wno-unknown-pragmas
-- Generated /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/k2/csrc/version.h
-- PYTHON_LIBRARY: /home/user/anaconda3/envs/env_k2_v2/lib/libpython3.8.so
-- Including k2/torch. K2_TORCH_VERSION is 1.10
-- Downloading kaldifeat from https://github.com/csukuangfj/kaldifeat/archive/refs/tags/v1.20.tar.gz
-- kaldifeat is downloaded to /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src
-- kaldifeat's binary dir is /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-build
-- The C compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- C++ Standard version: 14
-- Python executable: /home/user/anaconda3/envs/env_k2_v2/bin/python3
CMake Warning at /home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
static library kineto_LIBRARY-NOTFOUND not found.
Call Stack (most recent call first):
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
cmake/torch.cmake:11 (find_package)
build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/CMakeLists.txt:55 (include)
-- K2_TORCH_VERSION: 1.10
-- PyTorch version: 1.10.0+cu102
-- PyTorch cuda version: 10.2
-- CMAKE_CXX_FLAGS: -D_GLIBCXX_USE_CXX11_ABI=0 -Wno-unused-variable -Wno-strict-overflow -D_GLIBCXX_USE_CXX11_ABI=0
-- CMAKE_INSTALL_PREFIX: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2
-- All headers: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-common-inl.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-common.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-fbank.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-functions.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-mfcc.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-plp.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-spectrogram.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-window.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/log.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/matrix-functions.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/mel-computations.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/online-feature-itf.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/online-feature.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/pitch-functions.h
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38
/**
* @brief
* This file contains information for building k2, which is helpful
* for describing the environment in which k2 is used when creating
* an issue on GitHub.
*
* @copyright
* Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang)
*
* @copyright
* See LICENSE for clarification regarding multiple authors
*
* @caution
* This file is auto-generated by CMake. Do NOT edit!
* You can find it at build_dir/k2/csrc/version.h
*/
#ifndef K2_CSRC_VERSION_H_
#define K2_CSRC_VERSION_H_
namespace k2 {
// Version of k2 in "major.minor.patch" format
static constexpr const char *kVersion = "1.23.4";
// The commit used to build k2
static constexpr const char *kGitSha1 = "62e404dd3f3a811d73e424199b3408e309c06e1a";
// Date of the commit used to build k2
static constexpr const char *kGitDate = "Mon Jan 30 10:26:16 2023";
// Version of CUDA used to build k2.
// Its format is "major.minor", e.g., 10.1
static constexpr const char *kCudaVersion = "10.2";
// cuDNN version, e.g., 8.0.2
static constexpr const char *kCudnnVersion = "8.0.2";
// clang-format off
// Version of Python used to build k2 Python bindings.
static constexpr const char *kPythonVersion = "3.8";
// clang-format on
// CMake build type, e.g., Release or Debug.
static constexpr const char *kBuildType = "Release";
// The operating system that is used to build k2, e.g., Ubuntu 16.04 LTS
static constexpr const char *kOS = R"os(Ubuntu 16.04.6 LTS)os";
// e.g., 3.18.0
static constexpr const char *kCMakeVersion = "3.14.0";
// Version of the compiler, e.g., 5.4.0
static constexpr const char *kGCCVersion = "5.4.0";
// CUDA flags used to compile k2
static constexpr const char *kCMakeCudaFlags = R"cuda_flags( -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_61,code=sm_61 -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options -Wall --compiler-options -Wno-strict-overflow --compiler-options -Wno-unknown-pragmas )cuda_flags";
// CXX flags used to compile k2
static constexpr const char *kCMakeCxxFlags = R"cxx_flags( -D_GLIBCXX_USE_CXX11_ABI=0 -Wno-unused-variable -Wno-strict-overflow )cxx_flags";
// Which PyTorch version k2 is using, e.g., 1.6.0+cu101
static constexpr const char *kTorchVersion = "1.10.0+cu102";
// Which CUDA version PyTorch is using, e.g., 10.1
static constexpr const char *kTorchCudaVersion = "10.2";
#ifndef K2_WITH_CUDA
#define K2_WITH_CUDA
#endif
#ifdef K2_WITH_CUDA
static constexpr bool kWithCuda = true;
#else
static constexpr bool kWithCuda = false;
#endif
// Indicate whether NVTX is enabled or not
#ifndef K2_ENABLE_NVTX
#define K2_ENABLE_NVTX
#endif
#ifdef K2_ENABLE_NVTX
static constexpr bool kEnableNvtx = true;
#else
static constexpr bool kEnableNvtx = false;
#endif
} // namespace k2
#endif // K2_CSRC_VERSION_H_
Scanning dependencies of target k2_log
Scanning dependencies of target kaldifeat_core
[ 1%] Building CUDA object k2/csrc/CMakeFiles/k2_log.dir/log.cu.o
[ 2%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-fbank.cc.o
[ 3%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-functions.cc.o
[ 4%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-mfcc.cc.o
[ 5%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-spectrogram.cc.o
[ 5%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-plp.cc.o
[ 6%] Linking CUDA device code CMakeFiles/k2_log.dir/cmake_device_link.o
[ 6%] Linking CUDA shared library ../../lib/libk2_log.so
[ 6%] Built target k2_log
[ 7%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-window.cc.o
[ 7%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/matrix-functions.cc.o
Scanning dependencies of target fsa
[ 8%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/arcsort.cc.o
[ 9%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/aux_labels.cc.o
[ 10%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/mel-computations.cc.o
[ 10%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/connect.cc.o
[ 12%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/online-feature.cc.o
[ 13%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/determinize.cc.o
[ 14%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/determinize_pruned.cc.o
[ 14%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/fsa.cc.o
[ 15%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/fsa_equivalent.cc.o
[ 16%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/fsa_renderer.cc.o
[ 17%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/fsa_util.cc.o
[ 17%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/intersect.cc.o
[ 18%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/properties.cc.o
[ 19%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/rmepsilon_pruned.cc.o
[ 19%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/topsort.cc.o
[ 20%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/util.cc.o
[ 21%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/weights.cc.o
[ 23%] Linking CXX shared library ../../../lib/libk2fsa.so
[ 23%] Built target fsa
Scanning dependencies of target context
[ 24%] Building CUDA object k2/csrc/CMakeFiles/context.dir/algorithms.cu.o
[ 25%] Building CUDA object k2/csrc/CMakeFiles/context.dir/connect.cu.o
[ 26%] Building CUDA object k2/csrc/CMakeFiles/context.dir/array_of_ragged.cu.o
[ 26%] Building CUDA object k2/csrc/CMakeFiles/context.dir/array_ops.cu.o
[ 27%] Building CUDA object k2/csrc/CMakeFiles/context.dir/context.cu.o
[ 28%] Building CUDA object k2/csrc/CMakeFiles/context.dir/dtype.cu.o
[ 28%] Building CUDA object k2/csrc/CMakeFiles/context.dir/fsa.cu.o
[ 29%] Linking CXX shared library ../../../../lib/libkaldifeat_core.so
[ 30%] Building CUDA object k2/csrc/CMakeFiles/context.dir/fsa_algo.cu.o
[ 31%] Building CUDA object k2/csrc/CMakeFiles/context.dir/fsa_utils.cu.o
[ 31%] Built target kaldifeat_core
[ 31%] Building CUDA object k2/csrc/CMakeFiles/context.dir/hash.cu.o
[ 32%] Building CUDA object k2/csrc/CMakeFiles/context.dir/host_shim.cu.o
[ 34%] Building CUDA object k2/csrc/CMakeFiles/context.dir/intersect.cu.o
[ 35%] Building CUDA object k2/csrc/CMakeFiles/context.dir/intersect_dense.cu.o
[ 35%] Building CUDA object k2/csrc/CMakeFiles/context.dir/intersect_dense_pruned.cu.o
[ 36%] Building CUDA object k2/csrc/CMakeFiles/context.dir/math.cu.o
Scanning dependencies of target k2_fbank
[ 36%] Building CXX object k2/torch/csrc/CMakeFiles/k2_fbank.dir/features.cc.o
[ 37%] Building CUDA object k2/csrc/CMakeFiles/context.dir/moderngpu_allocator.cu.o
[ 37%] Building CUDA object k2/csrc/CMakeFiles/context.dir/pinned_context.cu.o
[ 38%] Building CUDA object k2/csrc/CMakeFiles/context.dir/ragged.cu.o
[ 39%] Building CUDA object k2/csrc/CMakeFiles/context.dir/ragged_ops.cu.o
[ 40%] Building CUDA object k2/csrc/CMakeFiles/context.dir/ragged_utils.cu.o
[ 40%] Building CUDA object k2/csrc/CMakeFiles/context.dir/rand.cu.o
[ 41%] Building CUDA object k2/csrc/CMakeFiles/context.dir/reverse.cu.o
[ 42%] Building CUDA object k2/csrc/CMakeFiles/context.dir/rm_epsilon.cu.o
[ 43%] Linking CXX shared library ../../../lib/libk2_fbank.so
[ 43%] Building CUDA object k2/csrc/CMakeFiles/context.dir/rnnt_decode.cu.o
[ 43%] Built target k2_fbank
[ 45%] Building CUDA object k2/csrc/CMakeFiles/context.dir/tensor.cu.o
[ 46%] Building CUDA object k2/csrc/CMakeFiles/context.dir/tensor_ops.cu.o
[ 47%] Building CUDA object k2/csrc/CMakeFiles/context.dir/thread_pool.cu.o
[ 47%] Building CUDA object k2/csrc/CMakeFiles/context.dir/timer.cu.o
[ 48%] Building CUDA object k2/csrc/CMakeFiles/context.dir/top_sort.cu.o
[ 49%] Building CUDA object k2/csrc/CMakeFiles/context.dir/torch_util.cu.o
[ 49%] Building CUDA object k2/csrc/CMakeFiles/context.dir/utils.cu.o
[ 50%] Building CUDA object k2/csrc/CMakeFiles/context.dir/nbest.cu.o
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/csrc/ragged_ops_inl.h: In function ‘k2::Renumbering k2::PruneRaggedAxis1(k2::Ragged<U>&, T, int32_t) [with T = double; int32_t = int]’:
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/csrc/ragged_ops_inl.h:886:138: warning: ‘order_map_data’ may be used uninitialized in this function [-Wmaybe-uninitialized]
[ 51%] Building CUDA object k2/csrc/CMakeFiles/context.dir/pytorch_context.cu.o
[ 52%] Building CUDA object k2/csrc/CMakeFiles/context.dir/cudpp/cudpp.cu.o
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::CrossMapLRN2dImpl]’:
/tmp/tmpxft_0000b8f4_00000000-5_torch_util.cudafe1.stub.c:54:27: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::EmbeddingBagImpl]’:
/tmp/tmpxft_0000b8f4_00000000-5_torch_util.cudafe1.stub.c:54:27: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::EmbeddingImpl]’:
/tmp/tmpxft_0000b8f4_00000000-5_torch_util.cudafe1.stub.c:54:27: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ParameterDictImpl]’:
/tmp/tmpxft_0000b8f4_00000000-5_torch_util.cudafe1.stub.c:54:27: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::SequentialImpl]’:
/tmp/tmpxft_0000b8f4_00000000-5_torch_util.cudafe1.stub.c:54:27: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ModuleListImpl]’:
/tmp/tmpxft_0000b8f4_00000000-5_torch_util.cudafe1.stub.c:54:27: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ModuleDictImpl]’:
/tmp/tmpxft_0000b8f4_00000000-5_torch_util.cudafe1.stub.c:54:27: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::TransformerDecoderImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::TransformerEncoderImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::TransformerDecoderLayerImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::TransformerEncoderLayerImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::GroupNormImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::LocalResponseNormImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::LayerNormImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::MultiheadAttentionImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ThresholdImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::LogSoftmaxImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::SoftminImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::SoftmaxImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::GRUCellImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::LSTMCellImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::RNNCellImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::GRUImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::LSTMImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::RNNImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::FractionalMaxPool3dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::FractionalMaxPool2dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ZeroPad2dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::UnfoldImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::FoldImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ConvTranspose3dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ConvTranspose2dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ConvTranspose1dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::Conv3dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::Conv2dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::Conv1dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::AdaptiveLogSoftmaxWithLossImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::BilinearImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::UnflattenImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::LinearImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::CrossMapLRN2dImpl]’:
/tmp/tmpxft_0000b930_00000000-5_pytorch_context.cudafe1.stub.c:16:27: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::EmbeddingBagImpl]’:
/tmp/tmpxft_0000b930_00000000-5_pytorch_context.cudafe1.stub.c:16:27: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::EmbeddingImpl]’:
/tmp/tmpxft_0000b930_00000000-5_pytorch_context.cudafe1.stub.c:16:27: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ParameterDictImpl]’:
/tmp/tmpxft_0000b930_00000000-5_pytorch_context.cudafe1.stub.c:16:27: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::SequentialImpl]’:
/tmp/tmpxft_0000b930_00000000-5_pytorch_context.cudafe1.stub.c:16:27: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ModuleListImpl]’:
/tmp/tmpxft_0000b930_00000000-5_pytorch_context.cudafe1.stub.c:16:27: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ModuleDictImpl]’:
/tmp/tmpxft_0000b930_00000000-5_pytorch_context.cudafe1.stub.c:16:27: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::TransformerDecoderImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::TransformerEncoderImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::TransformerDecoderLayerImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::TransformerEncoderLayerImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::GroupNormImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::LocalResponseNormImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::LayerNormImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::MultiheadAttentionImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ThresholdImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::LogSoftmaxImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::SoftminImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::SoftmaxImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::GRUCellImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::LSTMCellImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::RNNCellImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::GRUImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::LSTMImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::RNNImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::FractionalMaxPool3dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::FractionalMaxPool2dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ZeroPad2dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::UnfoldImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::FoldImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ConvTranspose3dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ConvTranspose2dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ConvTranspose1dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::Conv3dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::Conv2dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::Conv1dImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::AdaptiveLogSoftmaxWithLossImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::BilinearImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::UnflattenImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::LinearImpl]’:
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:49:48: required from here
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >&’
k2/csrc/CMakeFiles/context.dir/build.make:439: recipe for target 'k2/csrc/CMakeFiles/context.dir/torch_util.cu.o' failed
make[2]: *** [k2/csrc/CMakeFiles/context.dir/torch_util.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
k2/csrc/CMakeFiles/context.dir/build.make:478: recipe for target 'k2/csrc/CMakeFiles/context.dir/pytorch_context.cu.o' failed
make[2]: *** [k2/csrc/CMakeFiles/context.dir/pytorch_context.cu.o] Error 1
CMakeFiles/Makefile2:177: recipe for target 'k2/csrc/CMakeFiles/context.dir/all' failed
make[1]: *** [k2/csrc/CMakeFiles/context.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
File "setup.py", line 234, in <module>
setuptools.setup(
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/install.py", line 74, in run
self.do_egg_install()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/install.py", line 123, in do_egg_install
self.run_command('bdist_egg')
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 165, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 151, in call_command
self.run_command(cmdname)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/command/install_lib.py", line 112, in build
self.run_command('build_ext')
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
self.build_extensions()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 468, in build_extensions
self._build_extensions_serial()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 494, in _build_extensions_serial
self.build_extension(ext)
File "setup.py", line 206, in build_extension
raise Exception("Failed to build k2")
Exception: Failed to build k2
static constexpr const char *kGCCVersion = "5.4.0";
You need a new GCC, e.g., GCC 7.5.0
Otherwise, you can use a lower version of PyTorch, e.g., 1.8.1, or 1.9.0
Otherwise, you can use a lower version of PyTorch, e.g., 1.8.1, or 1.9.0
Hi so now I switched to torch 1.9.0, and here is the latest error log
$ python3 setup.py install
running install
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running bdist_egg
running egg_info
writing k2.egg-info/PKG-INFO
writing dependency_links to k2.egg-info/dependency_links.txt
writing requirements to k2.egg-info/requires.txt
writing top-level names to k2.egg-info/top_level.txt
reading manifest file 'k2.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'k2.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/dense_fsa_vec.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/fsa_properties.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/decode.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/autograd_utils.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/torch_version.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/symbol_table.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/mwer_loss.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/fsa_algo.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/mutual_information.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/nbest.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/__init__.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/utils.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/rnnt_decode.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/rnnt_loss.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/autograd.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/ctc_loss.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/fsa.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/ops.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/online_dense_intersecter.py -> build/lib.linux-x86_64-cpython-38/k2
creating build/lib.linux-x86_64-cpython-38/k2/ragged
copying k2/python/k2/ragged/__init__.py -> build/lib.linux-x86_64-cpython-38/k2/ragged
creating build/lib.linux-x86_64-cpython-38/k2/sparse
copying k2/python/k2/sparse/__init__.py -> build/lib.linux-x86_64-cpython-38/k2/sparse
copying k2/python/k2/sparse/autograd.py -> build/lib.linux-x86_64-cpython-38/k2/sparse
creating build/lib.linux-x86_64-cpython-38/k2/version
copying k2/python/k2/version/__main__.py -> build/lib.linux-x86_64-cpython-38/k2/version
copying k2/python/k2/version/__init__.py -> build/lib.linux-x86_64-cpython-38/k2/version
copying k2/python/k2/version/version.py -> build/lib.linux-x86_64-cpython-38/k2/version
running build_ext
cmake_path: /usr/local/bin/cmake
Setting PYTHON_EXECUTABLE to /home/user/anaconda3/envs/env_k2_v2/bin/python3
build command is:
cd build/temp.linux-x86_64-cpython-38
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/home/user/anaconda3/envs/env_k2_v2/bin/python3 -DK2_ENABLE_BENCHMARK=OFF -DK2_ENABLE_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2 /home/user/workspace/asr_space/next_gen_kaldi/k2
cat k2/csrc/version.h
make -j6 install
-- CMAKE_VERSION: 3.14.0
-- Enabled languages: CXX;CUDA
-- The CXX compiler identification is GNU 5.4.0
-- The CUDA compiler identification is NVIDIA 10.2.89
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- K2_OS: Ubuntu 16.04.6 LTS
-- Found Git: /usr/bin/git (found version "2.7.4")
-- Looking for C++ include cxxabi.h
-- Looking for C++ include cxxabi.h - found
-- Looking for C++ include execinfo.h
-- Looking for C++ include execinfo.h - found
-- Performing Test K2_COMPILER_SUPPORTS_CXX14
-- Performing Test K2_COMPILER_SUPPORTS_CXX14 - Success
-- C++ Standard version: 14
-- Autodetected CUDA architecture(s): 6.1 6.1 6.1 6.1
-- K2_COMPUTE_ARCH_FLAGS: -gencode;arch=compute_61,code=sm_61
-- K2_COMPUTE_ARCH_CANDIDATES 35;50;60;61;70;75
-- Skipping arch 35
-- Skipping arch 50
-- Skipping arch 60
-- Adding arch 61
-- Skipping arch 70
-- Skipping arch 75
-- K2_COMPUTE_ARCHS: 61
-- Could NOT find Valgrind (missing: Valgrind_INCLUDE_DIR Valgrind_EXECUTABLE)
-- Downloading pybind11 from https://github.com/pybind/pybind11/archive/5bc0943ed96836f46489f53961f6c438d2935357.zip
-- pybind11 is downloaded to /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/pybind11-src
-- pybind11 v2.11.0 dev1
-- Found PythonInterp: /home/user/anaconda3/envs/env_k2_v2/bin/python3 (found suitable version "3.8.16", minimum required is "3.6")
-- Found PythonLibs: /home/user/anaconda3/envs/env_k2_v2/lib/libpython3.8.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Python executable: /home/user/anaconda3/envs/env_k2_v2/bin/python3
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda (found version "10.2")
-- Caffe2: CUDA detected: 10.2
-- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda
-- Caffe2: Header version is: 10.2
-- Found CUDNN: /usr/local/cuda/lib64/libcudnn.so
-- Found cuDNN: v8.0.2 (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so)
-- /usr/local/cuda/lib64/libnvrtc.so shorthash is 08c4863f
-- Autodetected CUDA architecture(s): 6.1 6.1 6.1 6.1
-- Added CUDA NVCC flags for: -gencode;arch=compute_61,code=sm_61
CMake Warning at /home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
static library kineto_LIBRARY-NOTFOUND not found.
Call Stack (most recent call first):
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
cmake/torch.cmake:11 (find_package)
CMakeLists.txt:292 (include)
-- Found Torch: /home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/lib/libtorch.so
-- K2_TORCH_VERSION: 1.9
-- PyTorch version: 1.9.0+cu102
-- PyTorch cuda version: 10.2
-- Generated /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/torch_version.py
-- Downloading cub
-- cub is downloaded to /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/cub-src
-- Downloading moderngpu from https://github.com/moderngpu/moderngpu/archive/8ec9ac0de8672de7217d014917eedec5317f75f3.zip
-- moderngpu is downloaded to /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/moderngpu-src
-- CMAKE_CUDA_FLAGS: -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_61,code=sm_61 -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options -Wall --compiler-options -Wno-strict-overflow --compiler-options -Wno-unknown-pragmas
-- CMAKE_CXX_FLAGS: -D_GLIBCXX_USE_CXX11_ABI=0 -Wno-unused-variable -Wno-strict-overflow
-- CMAKE_CUDA_FLAGS: -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_61,code=sm_61 -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options -Wall --compiler-options -Wno-strict-overflow --compiler-options -Wno-unknown-pragmas
-- Generated /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/k2/csrc/version.h
-- PYTHON_LIBRARY: /home/user/anaconda3/envs/env_k2_v2/lib/libpython3.8.so
-- Including k2/torch. K2_TORCH_VERSION is 1.9
-- Downloading kaldifeat from https://github.com/csukuangfj/kaldifeat/archive/refs/tags/v1.20.tar.gz
-- kaldifeat is downloaded to /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src
-- kaldifeat's binary dir is /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-build
-- The C compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- C++ Standard version: 14
-- Python executable: /home/user/anaconda3/envs/env_k2_v2/bin/python3
CMake Warning at /home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
static library kineto_LIBRARY-NOTFOUND not found.
Call Stack (most recent call first):
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
cmake/torch.cmake:11 (find_package)
build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/CMakeLists.txt:55 (include)
-- K2_TORCH_VERSION: 1.9
-- PyTorch version: 1.9.0+cu102
-- PyTorch cuda version: 10.2
-- CMAKE_CXX_FLAGS: -D_GLIBCXX_USE_CXX11_ABI=0 -Wno-unused-variable -Wno-strict-overflow -D_GLIBCXX_USE_CXX11_ABI=0
-- CMAKE_INSTALL_PREFIX: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2
-- All headers: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-common-inl.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-common.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-fbank.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-functions.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-mfcc.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-plp.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-spectrogram.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-window.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/log.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/matrix-functions.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/mel-computations.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/online-feature-itf.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/online-feature.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/pitch-functions.h
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38
/**
* @brief
* This file contains information for building k2, which is helpful
* for describing the environment in which k2 is used when creating
* an issue on GitHub.
*
* @copyright
* Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang)
*
* @copyright
* See LICENSE for clarification regarding multiple authors
*
* @caution
* This file is auto-generated by CMake. Do NOT edit!
* You can find it at build_dir/k2/csrc/version.h
*/
#ifndef K2_CSRC_VERSION_H_
#define K2_CSRC_VERSION_H_
namespace k2 {
// Version of k2 in "major.minor.patch" format
static constexpr const char *kVersion = "1.23.4";
// The commit used to build k2
static constexpr const char *kGitSha1 = "62e404dd3f3a811d73e424199b3408e309c06e1a";
// Date of the commit used to build k2
static constexpr const char *kGitDate = "Mon Jan 30 10:26:16 2023";
// Version of CUDA used to build k2.
// Its format is "major.minor", e.g., 10.1
static constexpr const char *kCudaVersion = "10.2";
// cuDNN version, e.g., 8.0.2
static constexpr const char *kCudnnVersion = "8.0.2";
// clang-format off
// Version of Python used to build k2 Python bindings.
static constexpr const char *kPythonVersion = "3.8";
// clang-format on
// CMake build type, e.g., Release or Debug.
static constexpr const char *kBuildType = "Release";
// The operating system that is used to build k2, e.g., Ubuntu 16.04 LTS
static constexpr const char *kOS = R"os(Ubuntu 16.04.6 LTS)os";
// e.g., 3.18.0
static constexpr const char *kCMakeVersion = "3.14.0";
// Version of the compiler, e.g., 5.4.0
static constexpr const char *kGCCVersion = "5.4.0";
// CUDA flags used to compile k2
static constexpr const char *kCMakeCudaFlags = R"cuda_flags( -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_61,code=sm_61 -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options -Wall --compiler-options -Wno-strict-overflow --compiler-options -Wno-unknown-pragmas )cuda_flags";
// CXX flags used to compile k2
static constexpr const char *kCMakeCxxFlags = R"cxx_flags( -D_GLIBCXX_USE_CXX11_ABI=0 -Wno-unused-variable -Wno-strict-overflow )cxx_flags";
// Which PyTorch version k2 is using, e.g., 1.6.0+cu101
static constexpr const char *kTorchVersion = "1.9.0+cu102";
// Which CUDA version PyTorch is using, e.g., 10.1
static constexpr const char *kTorchCudaVersion = "10.2";
#ifndef K2_WITH_CUDA
#define K2_WITH_CUDA
#endif
#ifdef K2_WITH_CUDA
static constexpr bool kWithCuda = true;
#else
static constexpr bool kWithCuda = false;
#endif
// Indicate whether NVTX is enabled or not
#ifndef K2_ENABLE_NVTX
#define K2_ENABLE_NVTX
#endif
#ifdef K2_ENABLE_NVTX
static constexpr bool kEnableNvtx = true;
#else
static constexpr bool kEnableNvtx = false;
#endif
} // namespace k2
#endif // K2_CSRC_VERSION_H_
Scanning dependencies of target k2_log
Scanning dependencies of target kaldifeat_core
[ 1%] Building CUDA object k2/csrc/CMakeFiles/k2_log.dir/log.cu.o
[ 2%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-fbank.cc.o
[ 3%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-functions.cc.o
[ 4%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-mfcc.cc.o
[ 4%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-plp.cc.o
[ 5%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-spectrogram.cc.o
[ 6%] Linking CUDA device code CMakeFiles/k2_log.dir/cmake_device_link.o
[ 6%] Linking CUDA shared library ../../lib/libk2_log.so
[ 6%] Built target k2_log
[ 7%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-window.cc.o
[ 7%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/matrix-functions.cc.o
[ 8%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/mel-computations.cc.o
[ 9%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/online-feature.cc.o
Scanning dependencies of target fsa
[ 10%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/arcsort.cc.o
[ 12%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/aux_labels.cc.o
[ 12%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/connect.cc.o
[ 13%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/determinize.cc.o
[ 14%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/determinize_pruned.cc.o
[ 14%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/fsa.cc.o
[ 15%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/fsa_equivalent.cc.o
[ 16%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/fsa_renderer.cc.o
[ 17%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/fsa_util.cc.o
[ 17%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/intersect.cc.o
[ 18%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/properties.cc.o
[ 19%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/rmepsilon_pruned.cc.o
[ 19%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/topsort.cc.o
[ 20%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/util.cc.o
[ 21%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/weights.cc.o
[ 23%] Linking CXX shared library ../../../lib/libk2fsa.so
[ 23%] Built target fsa
Scanning dependencies of target context
[ 24%] Building CUDA object k2/csrc/CMakeFiles/context.dir/array_of_ragged.cu.o
[ 25%] Building CUDA object k2/csrc/CMakeFiles/context.dir/algorithms.cu.o
[ 25%] Building CUDA object k2/csrc/CMakeFiles/context.dir/array_ops.cu.o
[ 26%] Building CUDA object k2/csrc/CMakeFiles/context.dir/connect.cu.o
[ 27%] Building CUDA object k2/csrc/CMakeFiles/context.dir/context.cu.o
[ 28%] Linking CXX shared library ../../../../lib/libkaldifeat_core.so
[ 29%] Building CUDA object k2/csrc/CMakeFiles/context.dir/dtype.cu.o
[ 29%] Building CUDA object k2/csrc/CMakeFiles/context.dir/fsa.cu.o
[ 29%] Built target kaldifeat_core
[ 30%] Building CUDA object k2/csrc/CMakeFiles/context.dir/fsa_algo.cu.o
[ 31%] Building CUDA object k2/csrc/CMakeFiles/context.dir/fsa_utils.cu.o
Scanning dependencies of target k2_fbank
[ 31%] Building CUDA object k2/csrc/CMakeFiles/context.dir/hash.cu.o
[ 31%] Building CXX object k2/torch/csrc/CMakeFiles/k2_fbank.dir/features.cc.o
[ 32%] Building CUDA object k2/csrc/CMakeFiles/context.dir/host_shim.cu.o
[ 34%] Building CUDA object k2/csrc/CMakeFiles/context.dir/intersect.cu.o
[ 35%] Building CUDA object k2/csrc/CMakeFiles/context.dir/intersect_dense.cu.o
[ 35%] Building CUDA object k2/csrc/CMakeFiles/context.dir/intersect_dense_pruned.cu.o
[ 36%] Linking CXX shared library ../../../lib/libk2_fbank.so
[ 36%] Built target k2_fbank
[ 37%] Building CUDA object k2/csrc/CMakeFiles/context.dir/math.cu.o
[ 38%] Building CUDA object k2/csrc/CMakeFiles/context.dir/moderngpu_allocator.cu.o
[ 38%] Building CUDA object k2/csrc/CMakeFiles/context.dir/pinned_context.cu.o
[ 39%] Building CUDA object k2/csrc/CMakeFiles/context.dir/ragged.cu.o
[ 40%] Building CUDA object k2/csrc/CMakeFiles/context.dir/ragged_ops.cu.o
[ 41%] Building CUDA object k2/csrc/CMakeFiles/context.dir/ragged_utils.cu.o
[ 41%] Building CUDA object k2/csrc/CMakeFiles/context.dir/rand.cu.o
[ 42%] Building CUDA object k2/csrc/CMakeFiles/context.dir/reverse.cu.o
[ 43%] Building CUDA object k2/csrc/CMakeFiles/context.dir/rm_epsilon.cu.o
[ 43%] Building CUDA object k2/csrc/CMakeFiles/context.dir/rnnt_decode.cu.o
[ 45%] Building CUDA object k2/csrc/CMakeFiles/context.dir/tensor.cu.o
[ 46%] Building CUDA object k2/csrc/CMakeFiles/context.dir/tensor_ops.cu.o
[ 47%] Building CUDA object k2/csrc/CMakeFiles/context.dir/thread_pool.cu.o
[ 47%] Building CUDA object k2/csrc/CMakeFiles/context.dir/timer.cu.o
[ 48%] Building CUDA object k2/csrc/CMakeFiles/context.dir/top_sort.cu.o
[ 49%] Building CUDA object k2/csrc/CMakeFiles/context.dir/torch_util.cu.o
[ 49%] Building CUDA object k2/csrc/CMakeFiles/context.dir/utils.cu.o
[ 50%] Building CUDA object k2/csrc/CMakeFiles/context.dir/nbest.cu.o
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/csrc/ragged_ops_inl.h: In function ‘k2::Renumbering k2::PruneRaggedAxis1(k2::Ragged<U>&, T, int32_t) [with T = double; int32_t = int]’:
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/csrc/ragged_ops_inl.h:886:138: warning: ‘order_map_data’ may be used uninitialized in this function [-Wmaybe-uninitialized]
[ 51%] Building CUDA object k2/csrc/CMakeFiles/context.dir/pytorch_context.cu.o
[ 52%] Building CUDA object k2/csrc/CMakeFiles/context.dir/cudpp/cudpp.cu.o
[ 52%] Linking CUDA device code CMakeFiles/context.dir/cmake_device_link.o
[ 53%] Linking CUDA shared library ../../lib/libk2context.so
[ 53%] Built target context
Scanning dependencies of target k2_torch
Scanning dependencies of target _k2
[ 54%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/beam_search.cu.o
[ 56%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/decode.cu.o
[ 56%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/dense_fsa_vec.cu.o
[ 57%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/deserialization.cu.o
[ 58%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/fsa_algo.cu.o
[ 58%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/k2.cu.o
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/beam_search.cu: In function ‘std::vector<std::vector<int>, std::allocator<std::vector<int> > > k2::ModifiedBeamSearch(const torch::jit::Module&, const at::Tensor&, const at::Tensor&, int32_t)’:
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/beam_search.cu:272:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (cur_batch_size < cur.size()) {
^
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/beam_search.cu:298:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int32_t k = 0; k != prev.size(); ++k) {
^
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/deserialization.cu: In function ‘void k2::_GLOBAL__N__50_tmpxft_00002d8c_00000000_6_deserialization_cpp1_ii_4aae5ec1::restoreAccurateTypeTags(const c10::IValue&, const TypePtr&)’:
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/deserialization.cu:101:8: warning: enumeration value ‘StorageType’ not handled in switch [-Wswitch]
switch (w.static_type->kind()) {
^
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/deserialization.cu:101:8: warning: enumeration value ‘ComplexType’ not handled in switch [-Wswitch]
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/deserialization.cu:101:8: warning: enumeration value ‘StreamObjType’ not handled in switch [-Wswitch]
[ 59%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/fsa_class.cu.o
[ 60%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch.cu.o
[ 60%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/hypothesis.cu.o
[ 61%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/nbest.cu.o
[ 62%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/parse_options.cu.o
[ 63%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/version.cu.o
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/parse_options.cu: In member function ‘int32_t k2::ParseOptions::ToInt(const string&) const’:
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/parse_options.cu:705:8: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return ret;
^
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/parse_options.cu: In member function ‘uint32_t k2::ParseOptions::ToUint(const string&) const’:
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/parse_options.cu:712:8: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return ret;
^
[ 63%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/arc.cu.o
[ 63%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/symbol_table.cu.o
[ 64%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/utils.cu.o
[ 65%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/fsa.cu.o
[ 67%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/fsa_algo.cu.o
[ 68%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/wave_reader.cu.o
[ 69%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/index_add.cu.o
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/wave_reader.cu(61): warning: variable "p" was declared but never referenced
[ 69%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/index_select.cu.o
[ 70%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/mutual_information.cu.o
[ 71%] Linking CUDA device code CMakeFiles/k2_torch.dir/cmake_device_link.o
[ 71%] Linking CUDA shared library ../../../lib/libk2_torch.so
[ 71%] Built target k2_torch
[ 72%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/mutual_information_cpu.cu.o
[ 72%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/nbest.cu.o
Scanning dependencies of target k2_torch_api
[ 73%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch_api.dir/torch_api.cu.o
[ 74%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/ragged.cu.o
Scanning dependencies of target pruned_stateless_transducer
[ 75%] Building CUDA object k2/torch/bin/CMakeFiles/pruned_stateless_transducer.dir/pruned_stateless_transducer.cu.o
[ 76%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/ragged_ops.cu.o
[ 78%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/rnnt_decode.cu.o
[ 79%] Linking CUDA device code CMakeFiles/k2_torch_api.dir/cmake_device_link.o
[ 79%] Linking CUDA shared library ../../../lib/libk2_torch_api.so
[ 79%] Built target k2_torch_api
Scanning dependencies of target hlg_decode
[ 79%] Building CUDA object k2/torch/bin/CMakeFiles/hlg_decode.dir/hlg_decode.cu.o
Scanning dependencies of target online_decode
[ 79%] Building CUDA object k2/torch/bin/CMakeFiles/online_decode.dir/online_decode.cu.o
[ 79%] Linking CUDA device code CMakeFiles/pruned_stateless_transducer.dir/cmake_device_link.o
[ 80%] Linking CUDA executable ../../../bin/pruned_stateless_transducer
[ 80%] Built target pruned_stateless_transducer
[ 80%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/v2/any.cu.o
Scanning dependencies of target ctc_decode
[ 81%] Building CUDA object k2/torch/bin/CMakeFiles/ctc_decode.dir/ctc_decode.cu.o
[ 82%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/v2/autograd/swoosh.cu.o
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/python/csrc/torch/v2/autograd/swoosh.cu(359): error: copy-list-initialization cannot use a constructor marked "explicit"
1 error detected in the compilation of "/tmp/tmpxft_000032fa_00000000-6_swoosh.cpp1.ii".
k2/python/csrc/CMakeFiles/_k2.dir/build.make:257: recipe for target 'k2/python/csrc/CMakeFiles/_k2.dir/torch/v2/autograd/swoosh.cu.o' failed
make[2]: *** [k2/python/csrc/CMakeFiles/_k2.dir/torch/v2/autograd/swoosh.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Scanning dependencies of target attention_rescore
[ 83%] Building CUDA object k2/torch/bin/CMakeFiles/attention_rescore.dir/attention_rescore.cu.o
Scanning dependencies of target ngram_lm_rescore
[ 83%] Building CUDA object k2/torch/bin/CMakeFiles/ngram_lm_rescore.dir/ngram_lm_rescore.cu.o
[ 84%] Linking CUDA device code CMakeFiles/hlg_decode.dir/cmake_device_link.o
[ 85%] Linking CUDA executable ../../../bin/hlg_decode
[ 85%] Built target hlg_decode
Scanning dependencies of target rnnt_demo
[ 86%] Building CUDA object k2/torch/bin/CMakeFiles/rnnt_demo.dir/rnnt_demo.cu.o
[ 87%] Linking CUDA device code CMakeFiles/online_decode.dir/cmake_device_link.o
[ 89%] Linking CUDA executable ../../../bin/online_decode
[ 89%] Built target online_decode
[ 89%] Linking CUDA device code CMakeFiles/ctc_decode.dir/cmake_device_link.o
[ 90%] Linking CUDA executable ../../../bin/ctc_decode
[ 90%] Built target ctc_decode
CMakeFiles/Makefile2:312: recipe for target 'k2/python/csrc/CMakeFiles/_k2.dir/all' failed
make[1]: *** [k2/python/csrc/CMakeFiles/_k2.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 91%] Linking CUDA device code CMakeFiles/attention_rescore.dir/cmake_device_link.o
[ 91%] Linking CUDA executable ../../../bin/attention_rescore
[ 91%] Built target attention_rescore
[ 92%] Linking CUDA device code CMakeFiles/ngram_lm_rescore.dir/cmake_device_link.o
[ 93%] Linking CUDA executable ../../../bin/ngram_lm_rescore
[ 93%] Built target ngram_lm_rescore
[ 93%] Linking CUDA device code CMakeFiles/rnnt_demo.dir/cmake_device_link.o
[ 94%] Linking CUDA executable ../../../bin/rnnt_demo
[ 94%] Built target rnnt_demo
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
File "setup.py", line 234, in <module>
setuptools.setup(
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/install.py", line 74, in run
self.do_egg_install()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/install.py", line 123, in do_egg_install
self.run_command('bdist_egg')
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 165, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 151, in call_command
self.run_command(cmdname)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/command/install_lib.py", line 112, in build
self.run_command('build_ext')
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
self.build_extensions()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 468, in build_extensions
self._build_extensions_serial()
File "/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 494, in _build_extensions_serial
self.build_extension(ext)
File "setup.py", line 206, in build_extension
raise Exception("Failed to build k2")
Exception: Failed to build k2
Could you change https://github.com/k2-fsa/k2/blob/62e404dd3f3a811d73e424199b3408e309c06e1a/k2/python/csrc/torch/v2/autograd/swoosh.cu#L320 to
std::pair<torch::Tensor, torch::Tensor> SwooshForwardAndDeriv(
and retry?
Could you change
to
std::pair<torch::Tensor, torch::Tensor> SwooshForwardAndDeriv(
and retry?
Hi thanks. I just tried, and it was compiled succesfully with it! Thanks~
But I still ran into some other errors when I was installing sherpa. I will raise it in the issue page of sherpa in case it is not relevant to k2. (https://github.com/k2-fsa/sherpa/issues/290)
Could you change
to
std::pair<torch::Tensor, torch::Tensor> SwooshForwardAndDeriv(
and retry?
By the way, I kept the installation log if necessary.
$ python3 setup.py install
running install
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running bdist_egg
running egg_info
writing k2.egg-info/PKG-INFO
writing dependency_links to k2.egg-info/dependency_links.txt
writing requirements to k2.egg-info/requires.txt
writing top-level names to k2.egg-info/top_level.txt
reading manifest file 'k2.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'k2.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/dense_fsa_vec.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/fsa_properties.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/decode.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/autograd_utils.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/torch_version.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/symbol_table.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/mwer_loss.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/fsa_algo.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/mutual_information.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/nbest.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/__init__.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/utils.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/rnnt_decode.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/rnnt_loss.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/autograd.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/ctc_loss.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/fsa.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/ops.py -> build/lib.linux-x86_64-cpython-38/k2
copying k2/python/k2/online_dense_intersecter.py -> build/lib.linux-x86_64-cpython-38/k2
creating build/lib.linux-x86_64-cpython-38/k2/ragged
copying k2/python/k2/ragged/__init__.py -> build/lib.linux-x86_64-cpython-38/k2/ragged
creating build/lib.linux-x86_64-cpython-38/k2/sparse
copying k2/python/k2/sparse/__init__.py -> build/lib.linux-x86_64-cpython-38/k2/sparse
copying k2/python/k2/sparse/autograd.py -> build/lib.linux-x86_64-cpython-38/k2/sparse
creating build/lib.linux-x86_64-cpython-38/k2/version
copying k2/python/k2/version/__main__.py -> build/lib.linux-x86_64-cpython-38/k2/version
copying k2/python/k2/version/__init__.py -> build/lib.linux-x86_64-cpython-38/k2/version
copying k2/python/k2/version/version.py -> build/lib.linux-x86_64-cpython-38/k2/version
running build_ext
cmake_path: /usr/local/bin/cmake
Setting PYTHON_EXECUTABLE to /home/user/anaconda3/envs/env_k2_v2/bin/python3
build command is:
cd build/temp.linux-x86_64-cpython-38
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/home/user/anaconda3/envs/env_k2_v2/bin/python3 -DK2_ENABLE_BENCHMARK=OFF -DK2_ENABLE_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2 /home/user/workspace/asr_space/next_gen_kaldi/k2
cat k2/csrc/version.h
make -j6 install
-- CMAKE_VERSION: 3.14.0
-- Enabled languages: CXX;CUDA
-- The CXX compiler identification is GNU 5.4.0
-- The CUDA compiler identification is NVIDIA 10.2.89
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- K2_OS: Ubuntu 16.04.6 LTS
-- Found Git: /usr/bin/git (found version "2.7.4")
-- Looking for C++ include cxxabi.h
-- Looking for C++ include cxxabi.h - found
-- Looking for C++ include execinfo.h
-- Looking for C++ include execinfo.h - found
-- Performing Test K2_COMPILER_SUPPORTS_CXX14
-- Performing Test K2_COMPILER_SUPPORTS_CXX14 - Success
-- C++ Standard version: 14
-- Autodetected CUDA architecture(s): 6.1 6.1 6.1 6.1
-- K2_COMPUTE_ARCH_FLAGS: -gencode;arch=compute_61,code=sm_61
-- K2_COMPUTE_ARCH_CANDIDATES 35;50;60;61;70;75
-- Skipping arch 35
-- Skipping arch 50
-- Skipping arch 60
-- Adding arch 61
-- Skipping arch 70
-- Skipping arch 75
-- K2_COMPUTE_ARCHS: 61
-- Could NOT find Valgrind (missing: Valgrind_INCLUDE_DIR Valgrind_EXECUTABLE)
-- Downloading pybind11 from https://github.com/pybind/pybind11/archive/5bc0943ed96836f46489f53961f6c438d2935357.zip
-- pybind11 is downloaded to /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/pybind11-src
-- pybind11 v2.11.0 dev1
-- Found PythonInterp: /home/user/anaconda3/envs/env_k2_v2/bin/python3 (found suitable version "3.8.16", minimum required is "3.6")
-- Found PythonLibs: /home/user/anaconda3/envs/env_k2_v2/lib/libpython3.8.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Python executable: /home/user/anaconda3/envs/env_k2_v2/bin/python3
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda (found version "10.2")
-- Caffe2: CUDA detected: 10.2
-- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda
-- Caffe2: Header version is: 10.2
-- Found CUDNN: /usr/local/cuda/lib64/libcudnn.so
-- Found cuDNN: v8.0.2 (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so)
-- /usr/local/cuda/lib64/libnvrtc.so shorthash is 08c4863f
-- Autodetected CUDA architecture(s): 6.1 6.1 6.1 6.1
-- Added CUDA NVCC flags for: -gencode;arch=compute_61,code=sm_61
CMake Warning at /home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
static library kineto_LIBRARY-NOTFOUND not found.
Call Stack (most recent call first):
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
cmake/torch.cmake:11 (find_package)
CMakeLists.txt:292 (include)
-- Found Torch: /home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/lib/libtorch.so
-- K2_TORCH_VERSION: 1.9
-- PyTorch version: 1.9.0+cu102
-- PyTorch cuda version: 10.2
-- Generated /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/torch_version.py
-- Downloading cub
-- cub is downloaded to /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/cub-src
-- Downloading moderngpu from https://github.com/moderngpu/moderngpu/archive/8ec9ac0de8672de7217d014917eedec5317f75f3.zip
-- moderngpu is downloaded to /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/moderngpu-src
-- CMAKE_CUDA_FLAGS: -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_61,code=sm_61 -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options -Wall --compiler-options -Wno-strict-overflow --compiler-options -Wno-unknown-pragmas
-- CMAKE_CXX_FLAGS: -D_GLIBCXX_USE_CXX11_ABI=0 -Wno-unused-variable -Wno-strict-overflow
-- CMAKE_CUDA_FLAGS: -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_61,code=sm_61 -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options -Wall --compiler-options -Wno-strict-overflow --compiler-options -Wno-unknown-pragmas
-- Generated /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/k2/csrc/version.h
-- PYTHON_LIBRARY: /home/user/anaconda3/envs/env_k2_v2/lib/libpython3.8.so
-- Including k2/torch. K2_TORCH_VERSION is 1.9
-- Downloading kaldifeat from https://github.com/csukuangfj/kaldifeat/archive/refs/tags/v1.20.tar.gz
-- kaldifeat is downloaded to /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src
-- kaldifeat's binary dir is /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-build
-- The C compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- C++ Standard version: 14
-- Python executable: /home/user/anaconda3/envs/env_k2_v2/bin/python3
CMake Warning at /home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
static library kineto_LIBRARY-NOTFOUND not found.
Call Stack (most recent call first):
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
cmake/torch.cmake:11 (find_package)
build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/CMakeLists.txt:55 (include)
-- K2_TORCH_VERSION: 1.9
-- PyTorch version: 1.9.0+cu102
-- PyTorch cuda version: 10.2
-- CMAKE_CXX_FLAGS: -D_GLIBCXX_USE_CXX11_ABI=0 -Wno-unused-variable -Wno-strict-overflow -D_GLIBCXX_USE_CXX11_ABI=0
-- CMAKE_INSTALL_PREFIX: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2
-- All headers: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-common-inl.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-common.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-fbank.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-functions.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-mfcc.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-plp.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-spectrogram.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/feature-window.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/log.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/matrix-functions.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/mel-computations.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/online-feature-itf.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/online-feature.h;/home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38/_deps/kaldifeat-src/kaldifeat/csrc/pitch-functions.h
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/temp.linux-x86_64-cpython-38
/**
* @brief
* This file contains information for building k2, which is helpful
* for describing the environment in which k2 is used when creating
* an issue on GitHub.
*
* @copyright
* Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang)
*
* @copyright
* See LICENSE for clarification regarding multiple authors
*
* @caution
* This file is auto-generated by CMake. Do NOT edit!
* You can find it at build_dir/k2/csrc/version.h
*/
#ifndef K2_CSRC_VERSION_H_
#define K2_CSRC_VERSION_H_
namespace k2 {
// Version of k2 in "major.minor.patch" format
static constexpr const char *kVersion = "1.23.4";
// The commit used to build k2
static constexpr const char *kGitSha1 = "62e404dd3f3a811d73e424199b3408e309c06e1a";
// Date of the commit used to build k2
static constexpr const char *kGitDate = "Mon Jan 30 10:26:16 2023";
// Version of CUDA used to build k2.
// Its format is "major.minor", e.g., 10.1
static constexpr const char *kCudaVersion = "10.2";
// cuDNN version, e.g., 8.0.2
static constexpr const char *kCudnnVersion = "8.0.2";
// clang-format off
// Version of Python used to build k2 Python bindings.
static constexpr const char *kPythonVersion = "3.8";
// clang-format on
// CMake build type, e.g., Release or Debug.
static constexpr const char *kBuildType = "Release";
// The operating system that is used to build k2, e.g., Ubuntu 16.04 LTS
static constexpr const char *kOS = R"os(Ubuntu 16.04.6 LTS)os";
// e.g., 3.18.0
static constexpr const char *kCMakeVersion = "3.14.0";
// Version of the compiler, e.g., 5.4.0
static constexpr const char *kGCCVersion = "5.4.0";
// CUDA flags used to compile k2
static constexpr const char *kCMakeCudaFlags = R"cuda_flags( -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_61,code=sm_61 -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options -Wall --compiler-options -Wno-strict-overflow --compiler-options -Wno-unknown-pragmas )cuda_flags";
// CXX flags used to compile k2
static constexpr const char *kCMakeCxxFlags = R"cxx_flags( -D_GLIBCXX_USE_CXX11_ABI=0 -Wno-unused-variable -Wno-strict-overflow )cxx_flags";
// Which PyTorch version k2 is using, e.g., 1.6.0+cu101
static constexpr const char *kTorchVersion = "1.9.0+cu102";
// Which CUDA version PyTorch is using, e.g., 10.1
static constexpr const char *kTorchCudaVersion = "10.2";
#ifndef K2_WITH_CUDA
#define K2_WITH_CUDA
#endif
#ifdef K2_WITH_CUDA
static constexpr bool kWithCuda = true;
#else
static constexpr bool kWithCuda = false;
#endif
// Indicate whether NVTX is enabled or not
#ifndef K2_ENABLE_NVTX
#define K2_ENABLE_NVTX
#endif
#ifdef K2_ENABLE_NVTX
static constexpr bool kEnableNvtx = true;
#else
static constexpr bool kEnableNvtx = false;
#endif
} // namespace k2
#endif // K2_CSRC_VERSION_H_
Scanning dependencies of target k2_log
Scanning dependencies of target kaldifeat_core
[ 1%] Building CUDA object k2/csrc/CMakeFiles/k2_log.dir/log.cu.o
[ 2%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-fbank.cc.o
[ 3%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-functions.cc.o
[ 4%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-mfcc.cc.o
[ 4%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-plp.cc.o
[ 5%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-spectrogram.cc.o
[ 6%] Linking CUDA device code CMakeFiles/k2_log.dir/cmake_device_link.o
[ 6%] Linking CUDA shared library ../../lib/libk2_log.so
[ 6%] Built target k2_log
[ 7%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/feature-window.cc.o
Scanning dependencies of target fsa
[ 8%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/arcsort.cc.o
[ 9%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/aux_labels.cc.o
[ 9%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/connect.cc.o
[ 10%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/determinize.cc.o
[ 10%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/matrix-functions.cc.o
[ 12%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/mel-computations.cc.o
[ 13%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/determinize_pruned.cc.o
[ 13%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/fsa.cc.o
[ 14%] Building CXX object _deps/kaldifeat-build/kaldifeat/csrc/CMakeFiles/kaldifeat_core.dir/online-feature.cc.o
[ 15%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/fsa_equivalent.cc.o
[ 16%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/fsa_renderer.cc.o
[ 17%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/fsa_util.cc.o
[ 17%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/intersect.cc.o
[ 18%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/properties.cc.o
[ 19%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/rmepsilon_pruned.cc.o
[ 19%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/topsort.cc.o
[ 20%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/util.cc.o
[ 21%] Building CXX object k2/csrc/host/CMakeFiles/fsa.dir/weights.cc.o
[ 23%] Linking CXX shared library ../../../lib/libk2fsa.so
[ 23%] Built target fsa
Scanning dependencies of target context
[ 24%] Building CUDA object k2/csrc/CMakeFiles/context.dir/algorithms.cu.o
[ 25%] Building CUDA object k2/csrc/CMakeFiles/context.dir/array_of_ragged.cu.o
[ 25%] Building CUDA object k2/csrc/CMakeFiles/context.dir/array_ops.cu.o
[ 26%] Building CUDA object k2/csrc/CMakeFiles/context.dir/connect.cu.o
[ 27%] Building CUDA object k2/csrc/CMakeFiles/context.dir/context.cu.o
[ 28%] Building CUDA object k2/csrc/CMakeFiles/context.dir/dtype.cu.o
[ 28%] Building CUDA object k2/csrc/CMakeFiles/context.dir/fsa.cu.o
[ 29%] Linking CXX shared library ../../../../lib/libkaldifeat_core.so
[ 29%] Built target kaldifeat_core
[ 30%] Building CUDA object k2/csrc/CMakeFiles/context.dir/fsa_algo.cu.o
[ 31%] Building CUDA object k2/csrc/CMakeFiles/context.dir/fsa_utils.cu.o
[ 31%] Building CUDA object k2/csrc/CMakeFiles/context.dir/hash.cu.o
[ 32%] Building CUDA object k2/csrc/CMakeFiles/context.dir/host_shim.cu.o
[ 34%] Building CUDA object k2/csrc/CMakeFiles/context.dir/intersect.cu.o
[ 35%] Building CUDA object k2/csrc/CMakeFiles/context.dir/intersect_dense.cu.o
[ 35%] Building CUDA object k2/csrc/CMakeFiles/context.dir/intersect_dense_pruned.cu.o
[ 36%] Building CUDA object k2/csrc/CMakeFiles/context.dir/math.cu.o
Scanning dependencies of target k2_fbank
[ 36%] Building CXX object k2/torch/csrc/CMakeFiles/k2_fbank.dir/features.cc.o
[ 37%] Building CUDA object k2/csrc/CMakeFiles/context.dir/moderngpu_allocator.cu.o
[ 37%] Building CUDA object k2/csrc/CMakeFiles/context.dir/pinned_context.cu.o
[ 38%] Building CUDA object k2/csrc/CMakeFiles/context.dir/ragged.cu.o
[ 39%] Building CUDA object k2/csrc/CMakeFiles/context.dir/ragged_ops.cu.o
[ 40%] Building CUDA object k2/csrc/CMakeFiles/context.dir/ragged_utils.cu.o
[ 40%] Building CUDA object k2/csrc/CMakeFiles/context.dir/rand.cu.o
[ 41%] Building CUDA object k2/csrc/CMakeFiles/context.dir/reverse.cu.o
[ 42%] Building CUDA object k2/csrc/CMakeFiles/context.dir/rm_epsilon.cu.o
[ 43%] Linking CXX shared library ../../../lib/libk2_fbank.so
[ 43%] Built target k2_fbank
[ 43%] Building CUDA object k2/csrc/CMakeFiles/context.dir/rnnt_decode.cu.o
[ 45%] Building CUDA object k2/csrc/CMakeFiles/context.dir/tensor.cu.o
[ 46%] Building CUDA object k2/csrc/CMakeFiles/context.dir/tensor_ops.cu.o
[ 47%] Building CUDA object k2/csrc/CMakeFiles/context.dir/thread_pool.cu.o
[ 47%] Building CUDA object k2/csrc/CMakeFiles/context.dir/timer.cu.o
[ 48%] Building CUDA object k2/csrc/CMakeFiles/context.dir/top_sort.cu.o
[ 49%] Building CUDA object k2/csrc/CMakeFiles/context.dir/torch_util.cu.o
[ 49%] Building CUDA object k2/csrc/CMakeFiles/context.dir/utils.cu.o
[ 50%] Building CUDA object k2/csrc/CMakeFiles/context.dir/nbest.cu.o
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/csrc/ragged_ops_inl.h: In function ‘k2::Renumbering k2::PruneRaggedAxis1(k2::Ragged<U>&, T, int32_t) [with T = double; int32_t = int]’:
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/csrc/ragged_ops_inl.h:886:138: warning: ‘order_map_data’ may be used uninitialized in this function [-Wmaybe-uninitialized]
[ 51%] Building CUDA object k2/csrc/CMakeFiles/context.dir/pytorch_context.cu.o
[ 52%] Building CUDA object k2/csrc/CMakeFiles/context.dir/cudpp/cudpp.cu.o
[ 52%] Linking CUDA device code CMakeFiles/context.dir/cmake_device_link.o
[ 53%] Linking CUDA shared library ../../lib/libk2context.so
[ 53%] Built target context
Scanning dependencies of target _k2
Scanning dependencies of target k2_torch
[ 54%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/beam_search.cu.o
[ 56%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/decode.cu.o
[ 56%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/dense_fsa_vec.cu.o
[ 57%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/deserialization.cu.o
[ 58%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/fsa_algo.cu.o
[ 58%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/k2.cu.o
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/beam_search.cu: In function ‘std::vector<std::vector<int>, std::allocator<std::vector<int> > > k2::ModifiedBeamSearch(const torch::jit::Module&, const at::Tensor&, const at::Tensor&, int32_t)’:
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/beam_search.cu:272:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (cur_batch_size < cur.size()) {
^
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/beam_search.cu:298:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int32_t k = 0; k != prev.size(); ++k) {
^
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/deserialization.cu: In function ‘void k2::_GLOBAL__N__50_tmpxft_00006fea_00000000_6_deserialization_cpp1_ii_4aae5ec1::restoreAccurateTypeTags(const c10::IValue&, const TypePtr&)’:
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/deserialization.cu:101:8: warning: enumeration value ‘StorageType’ not handled in switch [-Wswitch]
switch (w.static_type->kind()) {
^
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/deserialization.cu:101:8: warning: enumeration value ‘ComplexType’ not handled in switch [-Wswitch]
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/deserialization.cu:101:8: warning: enumeration value ‘StreamObjType’ not handled in switch [-Wswitch]
[ 59%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/fsa_class.cu.o
[ 59%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/hypothesis.cu.o
[ 60%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch.cu.o
[ 61%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/nbest.cu.o
[ 62%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/parse_options.cu.o
[ 62%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/symbol_table.cu.o
[ 63%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/version.cu.o
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/parse_options.cu: In member function ‘int32_t k2::ParseOptions::ToInt(const string&) const’:
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/parse_options.cu:705:8: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return ret;
^
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/parse_options.cu: In member function ‘uint32_t k2::ParseOptions::ToUint(const string&) const’:
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/parse_options.cu:712:8: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return ret;
^
[ 63%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/arc.cu.o
[ 64%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/fsa.cu.o
[ 65%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/utils.cu.o
[ 67%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/fsa_algo.cu.o
[ 68%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch.dir/wave_reader.cu.o
[ 69%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/index_add.cu.o
/home/user/workspace/asr_space/next_gen_kaldi/k2/k2/torch/csrc/wave_reader.cu(61): warning: variable "p" was declared but never referenced
[ 69%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/index_select.cu.o
[ 70%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/mutual_information.cu.o
[ 71%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/mutual_information_cpu.cu.o
[ 72%] Linking CUDA device code CMakeFiles/k2_torch.dir/cmake_device_link.o
[ 72%] Linking CUDA shared library ../../../lib/libk2_torch.so
[ 72%] Built target k2_torch
[ 72%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/nbest.cu.o
Scanning dependencies of target k2_torch_api
[ 73%] Building CUDA object k2/torch/csrc/CMakeFiles/k2_torch_api.dir/torch_api.cu.o
Scanning dependencies of target pruned_stateless_transducer
[ 74%] Building CUDA object k2/torch/bin/CMakeFiles/pruned_stateless_transducer.dir/pruned_stateless_transducer.cu.o
[ 75%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/ragged.cu.o
[ 76%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/ragged_ops.cu.o
Scanning dependencies of target hlg_decode
[ 76%] Building CUDA object k2/torch/bin/CMakeFiles/hlg_decode.dir/hlg_decode.cu.o
Scanning dependencies of target online_decode
[ 76%] Building CUDA object k2/torch/bin/CMakeFiles/online_decode.dir/online_decode.cu.o
[ 78%] Linking CUDA device code CMakeFiles/k2_torch_api.dir/cmake_device_link.o
[ 78%] Linking CUDA shared library ../../../lib/libk2_torch_api.so
[ 78%] Built target k2_torch_api
Scanning dependencies of target ctc_decode
[ 79%] Building CUDA object k2/torch/bin/CMakeFiles/ctc_decode.dir/ctc_decode.cu.o
[ 79%] Linking CUDA device code CMakeFiles/pruned_stateless_transducer.dir/cmake_device_link.o
[ 80%] Linking CUDA executable ../../../bin/pruned_stateless_transducer
[ 80%] Built target pruned_stateless_transducer
[ 81%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/rnnt_decode.cu.o
[ 82%] Linking CUDA device code CMakeFiles/hlg_decode.dir/cmake_device_link.o
[ 83%] Linking CUDA executable ../../../bin/hlg_decode
[ 83%] Built target hlg_decode
Scanning dependencies of target attention_rescore
[ 84%] Building CUDA object k2/torch/bin/CMakeFiles/attention_rescore.dir/attention_rescore.cu.o
Scanning dependencies of target ngram_lm_rescore
[ 84%] Building CUDA object k2/torch/bin/CMakeFiles/ngram_lm_rescore.dir/ngram_lm_rescore.cu.o
[ 85%] Linking CUDA device code CMakeFiles/online_decode.dir/cmake_device_link.o
[ 86%] Linking CUDA executable ../../../bin/online_decode
[ 86%] Built target online_decode
Scanning dependencies of target rnnt_demo
[ 87%] Building CUDA object k2/torch/bin/CMakeFiles/rnnt_demo.dir/rnnt_demo.cu.o
[ 87%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/v2/any.cu.o
[ 87%] Linking CUDA device code CMakeFiles/ctc_decode.dir/cmake_device_link.o
[ 89%] Linking CUDA executable ../../../bin/ctc_decode
[ 89%] Built target ctc_decode
[ 90%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/v2/autograd/swoosh.cu.o
[ 91%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/v2/doc/doc.cu.o
[ 92%] Linking CUDA device code CMakeFiles/attention_rescore.dir/cmake_device_link.o
[ 92%] Linking CUDA executable ../../../bin/attention_rescore
[ 92%] Built target attention_rescore
[ 92%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/v2/k2.cu.o
[ 93%] Linking CUDA device code CMakeFiles/ngram_lm_rescore.dir/cmake_device_link.o
[ 94%] Linking CUDA executable ../../../bin/ngram_lm_rescore
[ 94%] Built target ngram_lm_rescore
[ 95%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/v2/ragged_any.cu.o
[ 95%] Linking CUDA device code CMakeFiles/rnnt_demo.dir/cmake_device_link.o
[ 96%] Linking CUDA executable ../../../bin/rnnt_demo
[ 96%] Built target rnnt_demo
[ 97%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/v2/ragged_shape.cu.o
[ 98%] Building CUDA object k2/python/csrc/CMakeFiles/_k2.dir/torch/mutual_information_cuda.cu.o
[ 98%] Linking CUDA device code CMakeFiles/_k2.dir/cmake_device_link.o
[100%] Linking CUDA shared module ../../../lib/_k2.cpython-38-x86_64-linux-gnu.so
[100%] Built target _k2
Install the project...
-- Install configuration: "Release"
-- Installing: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2/share/cmake/k2/k2ConfigVersion.cmake
-- Installing: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2/share/cmake/k2/k2Config.cmake
-- Up-to-date: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2/./torch_version.py
-- Installing: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2/lib/libk2_log.so
-- Set runtime path of "/home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2/lib/libk2_log.so" to "$ORIGIN"
-- Installing: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2/lib/libk2context.so
-- Set runtime path of "/home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2/lib/libk2context.so" to "$ORIGIN:/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/lib"
-- Installing: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2/lib/libk2fsa.so
-- Set runtime path of "/home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2/lib/libk2fsa.so" to "$ORIGIN"
-- Installing: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2/../_k2.cpython-38-x86_64-linux-gnu.so
-- Set runtime path of "/home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2/../_k2.cpython-38-x86_64-linux-gnu.so" to "$ORIGIN:/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/lib:/home/user/anaconda3/envs/env_k2_v2/lib"
-- Installing: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2/lib/libk2_torch_api.so
-- Set runtime path of "/home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2/lib/libk2_torch_api.so" to "$ORIGIN:/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/lib"
-- Installing: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2/lib/libk2_torch.so
-- Set runtime path of "/home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2/lib/libk2_torch.so" to "$ORIGIN:/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/torch/lib"
-- Installing: /home/user/workspace/asr_space/next_gen_kaldi/k2/build/lib.linux-x86_64-cpython-38/k2/include/k2/torch_api.h
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/k2
copying build/lib.linux-x86_64-cpython-38/k2/dense_fsa_vec.py -> build/bdist.linux-x86_64/egg/k2
copying build/lib.linux-x86_64-cpython-38/k2/fsa_properties.py -> build/bdist.linux-x86_64/egg/k2
copying build/lib.linux-x86_64-cpython-38/k2/decode.py -> build/bdist.linux-x86_64/egg/k2
creating build/bdist.linux-x86_64/egg/k2/lib
copying build/lib.linux-x86_64-cpython-38/k2/lib/libk2fsa.so -> build/bdist.linux-x86_64/egg/k2/lib
copying build/lib.linux-x86_64-cpython-38/k2/lib/libk2_torch_api.so -> build/bdist.linux-x86_64/egg/k2/lib
copying build/lib.linux-x86_64-cpython-38/k2/lib/libk2_log.so -> build/bdist.linux-x86_64/egg/k2/lib
copying build/lib.linux-x86_64-cpython-38/k2/lib/libk2context.so -> build/bdist.linux-x86_64/egg/k2/lib
copying build/lib.linux-x86_64-cpython-38/k2/lib/libk2_torch.so -> build/bdist.linux-x86_64/egg/k2/lib
copying build/lib.linux-x86_64-cpython-38/k2/autograd_utils.py -> build/bdist.linux-x86_64/egg/k2
copying build/lib.linux-x86_64-cpython-38/k2/torch_version.py -> build/bdist.linux-x86_64/egg/k2
copying build/lib.linux-x86_64-cpython-38/k2/symbol_table.py -> build/bdist.linux-x86_64/egg/k2
copying build/lib.linux-x86_64-cpython-38/k2/mwer_loss.py -> build/bdist.linux-x86_64/egg/k2
creating build/bdist.linux-x86_64/egg/k2/sparse
copying build/lib.linux-x86_64-cpython-38/k2/sparse/__init__.py -> build/bdist.linux-x86_64/egg/k2/sparse
copying build/lib.linux-x86_64-cpython-38/k2/sparse/autograd.py -> build/bdist.linux-x86_64/egg/k2/sparse
creating build/bdist.linux-x86_64/egg/k2/ragged
copying build/lib.linux-x86_64-cpython-38/k2/ragged/__init__.py -> build/bdist.linux-x86_64/egg/k2/ragged
copying build/lib.linux-x86_64-cpython-38/k2/fsa_algo.py -> build/bdist.linux-x86_64/egg/k2
copying build/lib.linux-x86_64-cpython-38/k2/mutual_information.py -> build/bdist.linux-x86_64/egg/k2
copying build/lib.linux-x86_64-cpython-38/k2/nbest.py -> build/bdist.linux-x86_64/egg/k2
copying build/lib.linux-x86_64-cpython-38/k2/__init__.py -> build/bdist.linux-x86_64/egg/k2
creating build/bdist.linux-x86_64/egg/k2/include
creating build/bdist.linux-x86_64/egg/k2/include/k2
copying build/lib.linux-x86_64-cpython-38/k2/include/k2/torch_api.h -> build/bdist.linux-x86_64/egg/k2/include/k2
copying build/lib.linux-x86_64-cpython-38/k2/utils.py -> build/bdist.linux-x86_64/egg/k2
copying build/lib.linux-x86_64-cpython-38/k2/rnnt_decode.py -> build/bdist.linux-x86_64/egg/k2
copying build/lib.linux-x86_64-cpython-38/k2/rnnt_loss.py -> build/bdist.linux-x86_64/egg/k2
creating build/bdist.linux-x86_64/egg/k2/share
creating build/bdist.linux-x86_64/egg/k2/share/cmake
creating build/bdist.linux-x86_64/egg/k2/share/cmake/k2
copying build/lib.linux-x86_64-cpython-38/k2/share/cmake/k2/k2ConfigVersion.cmake -> build/bdist.linux-x86_64/egg/k2/share/cmake/k2
copying build/lib.linux-x86_64-cpython-38/k2/share/cmake/k2/k2Config.cmake -> build/bdist.linux-x86_64/egg/k2/share/cmake/k2
copying build/lib.linux-x86_64-cpython-38/k2/autograd.py -> build/bdist.linux-x86_64/egg/k2
copying build/lib.linux-x86_64-cpython-38/k2/ctc_loss.py -> build/bdist.linux-x86_64/egg/k2
copying build/lib.linux-x86_64-cpython-38/k2/fsa.py -> build/bdist.linux-x86_64/egg/k2
copying build/lib.linux-x86_64-cpython-38/k2/ops.py -> build/bdist.linux-x86_64/egg/k2
copying build/lib.linux-x86_64-cpython-38/k2/online_dense_intersecter.py -> build/bdist.linux-x86_64/egg/k2
creating build/bdist.linux-x86_64/egg/k2/version
copying build/lib.linux-x86_64-cpython-38/k2/version/__main__.py -> build/bdist.linux-x86_64/egg/k2/version
copying build/lib.linux-x86_64-cpython-38/k2/version/__init__.py -> build/bdist.linux-x86_64/egg/k2/version
copying build/lib.linux-x86_64-cpython-38/k2/version/version.py -> build/bdist.linux-x86_64/egg/k2/version
copying build/lib.linux-x86_64-cpython-38/_k2.cpython-38-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg
byte-compiling build/bdist.linux-x86_64/egg/k2/dense_fsa_vec.py to dense_fsa_vec.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/fsa_properties.py to fsa_properties.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/decode.py to decode.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/autograd_utils.py to autograd_utils.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/torch_version.py to torch_version.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/symbol_table.py to symbol_table.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/mwer_loss.py to mwer_loss.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/sparse/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/sparse/autograd.py to autograd.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/ragged/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/fsa_algo.py to fsa_algo.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/mutual_information.py to mutual_information.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/nbest.py to nbest.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/utils.py to utils.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/rnnt_decode.py to rnnt_decode.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/rnnt_loss.py to rnnt_loss.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/autograd.py to autograd.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/ctc_loss.py to ctc_loss.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/fsa.py to fsa.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/ops.py to ops.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/online_dense_intersecter.py to online_dense_intersecter.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/version/__main__.py to __main__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/version/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/k2/version/version.py to version.cpython-38.pyc
creating stub loader for _k2.cpython-38-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/_k2.py to _k2.cpython-38.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying k2.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying k2.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying k2.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying k2.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying k2.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying k2.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
creating 'dist/k2-1.23.4.dev20230130+cuda10.2.torch1.9.0-py3.8-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing k2-1.23.4.dev20230130+cuda10.2.torch1.9.0-py3.8-linux-x86_64.egg
creating /home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/k2-1.23.4.dev20230130+cuda10.2.torch1.9.0-py3.8-linux-x86_64.egg
Extracting k2-1.23.4.dev20230130+cuda10.2.torch1.9.0-py3.8-linux-x86_64.egg to /home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages
Adding k2 1.23.4.dev20230130+cuda10.2.torch1.9.0 to easy-install.pth file
Installed /home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/k2-1.23.4.dev20230130+cuda10.2.torch1.9.0-py3.8-linux-x86_64.egg
Processing dependencies for k2==1.23.4.dev20230130+cuda10.2.torch1.9.0
Searching for graphviz
Reading https://pypi.org/simple/graphviz/
/home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: is an invalid version and will not be supported in a future release
warnings.warn(
Downloading https://files.pythonhosted.org/packages/de/5e/fcbb22c68208d39edff467809d06c9d81d7d27426460ebc598e55130c1aa/graphviz-0.20.1-py3-none-any.whl#sha256=587c58a223b51611c0cf461132da386edd896a029524ca61a1462b880bf97977
Best match: graphviz 0.20.1
Processing graphviz-0.20.1-py3-none-any.whl
Installing graphviz-0.20.1-py3-none-any.whl to /home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages
Adding graphviz 0.20.1 to easy-install.pth file
Installed /home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages/graphviz-0.20.1-py3.8.egg
Searching for torch==1.9.0+cu102
Best match: torch 1.9.0+cu102
Adding torch 1.9.0+cu102 to easy-install.pth file
Installing convert-caffe2-to-onnx script to /home/user/anaconda3/envs/env_k2_v2/bin
Installing convert-onnx-to-caffe2 script to /home/user/anaconda3/envs/env_k2_v2/bin
Using /home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages
Searching for typing-extensions==4.4.0
Best match: typing-extensions 4.4.0
Adding typing-extensions 4.4.0 to easy-install.pth file
Using /home/user/anaconda3/envs/env_k2_v2/lib/python3.8/site-packages
Finished processing dependencies for k2==1.23.4.dev20230130+cuda10.2.torch1.9.0
Could you please make a pull-request to fix it in k2?
Could you please make a pull-request to fix it in k2?
Sure. Wait a moment.
Thanks!
Thanks!
Hey I just made the pull-request. Does it look ok?
Thanks!
Hey I just made the pull-request. Does it look ok?
Thanks! I just merged it.
Hi I am installing k2 from source, but encountered the following error:
my pytorch installation commands
my k2 installation commands
Whole log and error message:
It says there is no rule to make target 'k2_torch_api', is it because of all those "statement is unreachable" warnings? I am a bit a loss. May I know what the problem is and how to fix it? I hope it can still be compiled from source. Thanks a lot!!!!