xiaguo
xiaguo
I am having the same issue today with Visual Studio 2019, any idea how to solve this issue?
This is the command I have used: ```cmake cmake ` -DBUILD_SHARED_LIBS=ON ` -DBENCHMARK_ENABLE_GTEST_TESTS=OFF ` -DCMAKE_BUILD_TYPE=Release ` -DCMAKE_C_FLAGS="/GL /MP /Zi" ` -DCMAKE_CXX_FLAGS="/EHsc /GL /MP /Zi" ` -DCMAKE_EXE_LINKER_FLAGS="/DEBUG:FASTLINK /LTCG:incremental" ` -DCMAKE_PDB_OUTPUT_DIRECTORY="${PWD}/pdb" `...
Also tried adding -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE -DBUILD_SHARED_LIBS=TRUE to cmake but still fails: ```shell [36/54] Linking CXX shared library src\benchmark.dll FAILED: src/benchmark.dll src/benchmark.lib cmd.exe /C "cmd.exe /C ""C:\Program Files\CMake\bin\cmake.exe" -E __create_def C:\Users\xiaguo\AppData\Local\Temp\benchmark\build\src\CMakeFiles\benchmark.dir\exports.def C:\Users\xiaguo\AppData\Local\Temp\benchmark\build\src\CMakeFiles\benchmark.dir\exports.def.objs...
It's this folder: https://github.com/google/benchmark/tree/master/src
Here's how my code looks like: ```python query = self.apply_feature_map(query, self.orf) key = self.apply_feature_map(key, self.orf) # query/key is now of shape (b * num_attn_heads, L, r) if attention_mask is not...
Cool! Yep masking using big negative number works for Softmax but not in the case of Performer. The only potential issue I find my code could have is `masked_fill_` seem...