"git@developer.sourcefind.cn:OpenDAS/megatron-lm.git" did not exist on "8d405805e184edfba3d97deec2fad0ded69b646b"
Commit bd96bf75 authored by rusty1s's avatar rusty1s
Browse files

clean up [skip ci]

parent 8e0a7b60
...@@ -24,9 +24,3 @@ fi ...@@ -24,9 +24,3 @@ fi
conda update --yes conda conda update --yes conda
conda create --yes -n test python="${PYTHON_VERSION}" conda create --yes -n test python="${PYTHON_VERSION}"
gcc --version
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
conda install gcc_linux-64 --yes
fi
...@@ -50,11 +50,9 @@ def scatter_mean(src: torch.Tensor, index: torch.Tensor, dim: int = -1, ...@@ -50,11 +50,9 @@ def scatter_mean(src: torch.Tensor, index: torch.Tensor, dim: int = -1,
count.clamp_(1) count.clamp_(1)
count = broadcast(count, out, dim) count = broadcast(count, out, dim)
if torch.is_floating_point(out): if torch.is_floating_point(out):
out.div_(count) out.true_divide_(count)
# out.true_divide_(count)
else: else:
out.div_(count) out.floor_divide_(count)
# out.floor_divide_(count)
return out return out
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment