Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MegEngine 天元
MegEngine
提交
134a1026
MegEngine
项目概览
MegEngine 天元
/
MegEngine
接近 2 年 前同步成功
通知
414
Star
4708
Fork
583
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
MegEngine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
134a1026
编写于
7月 27, 2020
作者:
M
Megvii Engine Team
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(mge/doc): fix typos, format
GitOrigin-RevId: 7d8037434ef23aa5bfc768f84a5343e32e1f9a8e
上级
324af878
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
6 addition
and
9 deletion
+6
-9
python_module/megengine/functional/loss.py
python_module/megengine/functional/loss.py
+1
-1
python_module/megengine/functional/quantized.py
python_module/megengine/functional/quantized.py
+0
-4
python_module/megengine/module/batchnorm.py
python_module/megengine/module/batchnorm.py
+1
-0
scripts/cmake-build/cross_build_android_arm_inference.sh
scripts/cmake-build/cross_build_android_arm_inference.sh
+1
-1
scripts/cmake-build/cross_build_ios_arm_inference.sh
scripts/cmake-build/cross_build_ios_arm_inference.sh
+1
-1
scripts/cmake-build/cross_build_linux_arm_inference.sh
scripts/cmake-build/cross_build_linux_arm_inference.sh
+1
-1
scripts/cmake-build/host_build.sh
scripts/cmake-build/host_build.sh
+1
-1
未找到文件。
python_module/megengine/functional/loss.py
浏览文件 @
134a1026
...
...
@@ -306,7 +306,7 @@ def hinge_loss(pred: Tensor, label: Tensor, norm: str = "L1") -> Tensor:
The hinge loss can be described as:
.. math:: loss(x, y) = \frac{1}{N}\sum_i\sum_j(max(0, 1 - x_
i_j*y_i_j
))
.. math:: loss(x, y) = \frac{1}{N}\sum_i\sum_j(max(0, 1 - x_
{ij}*y_{ij}
))
:param pred: The input tensor representing the predicted probability, shape is (N, C).
:param label: The input tensor representing the binary classification label, shape is (N, C).
...
...
python_module/megengine/functional/quantized.py
浏览文件 @
134a1026
...
...
@@ -47,10 +47,6 @@ def conv_bias_activation(
'CROSS_CORRELATION'.
:param dtype: Support for np.dtype, Default:
np.int8.
:param scale: scale if use quantization, Default:
0.0.
:param zero_point: scale if use quantization quint8, Default:
0.0.
:type compute_mode: string or
:class:`mgb.opr_param_defs.Convolution.ComputeMode`
:param compute_mode: When set to 'DEFAULT', no special requirements will be
...
...
python_module/megengine/module/batchnorm.py
浏览文件 @
134a1026
...
...
@@ -216,6 +216,7 @@ class BatchNorm2d(_BatchNorm):
.. testcode::
import numpy as np
import megengine as mge
import megengine.module as M
...
...
scripts/cmake-build/cross_build_android_arm_inference.sh
浏览文件 @
134a1026
...
...
@@ -13,7 +13,7 @@ echo "EXTRA_CMAKE_ARGS: ${EXTRA_CMAKE_ARGS}"
function
usage
()
{
echo
"
$0
args1 args2 .."
echo
"available args detail:"
echo
"-d : Build with Debug mode, defaul
e
Release mode"
echo
"-d : Build with Debug mode, defaul
t
Release mode"
echo
"-f : enable MGE_ARMV8_2_FEATURE_FP16 for ARM64, need toolchain and hardware support"
echo
"-p : enable MGE_ARMV8_2_FEATURE_DOTPROD for ARM64, need toolchain and hardware support"
echo
"-k : open MGE_DISABLE_FLOAT16 for NEON "
...
...
scripts/cmake-build/cross_build_ios_arm_inference.sh
浏览文件 @
134a1026
...
...
@@ -13,7 +13,7 @@ echo "EXTRA_CMAKE_ARGS: ${EXTRA_CMAKE_ARGS}"
function
usage
()
{
echo
"
$0
args1 args2 .."
echo
"available args detail:"
echo
"-d : Build with Debug mode, defaul
e
Release mode"
echo
"-d : Build with Debug mode, defaul
t
Release mode"
echo
"-f : enable MGE_ARMV8_2_FEATURE_FP16 for ARM64, need toolchain and hardware support"
echo
"-p : enable MGE_ARMV8_2_FEATURE_DOTPROD for ARM64, need toolchain and hardware support"
echo
"-k : open MGE_DISABLE_FLOAT16 for NEON "
...
...
scripts/cmake-build/cross_build_linux_arm_inference.sh
浏览文件 @
134a1026
...
...
@@ -13,7 +13,7 @@ echo "EXTRA_CMAKE_ARGS: ${EXTRA_CMAKE_ARGS}"
function
usage
()
{
echo
"
$0
args1 args2 .."
echo
"available args detail:"
echo
"-d : Build with Debug mode, defaul
e
Release mode"
echo
"-d : Build with Debug mode, defaul
t
Release mode"
echo
"-f : enable MGE_ARMV8_2_FEATURE_FP16 for ARM64, need toolchain and hardware support"
echo
"-p : enable MGE_ARMV8_2_FEATURE_DOTPROD for ARM64, need toolchain and hardware support"
echo
"-k : open MGE_DISABLE_FLOAT16 for NEON "
...
...
scripts/cmake-build/host_build.sh
浏览文件 @
134a1026
...
...
@@ -4,7 +4,7 @@ set -e
function
usage
()
{
echo
"
$0
args1 args2 .."
echo
"available args detail:"
echo
"-d : Build with Debug mode, defaul
e
Release mode"
echo
"-d : Build with Debug mode, defaul
t
Release mode"
echo
"-c : Build with CUDA, default without CUDA"
echo
"-t : Build with training mode, default inference only"
echo
"-m : Build with m32 mode(only for windows build), default m64"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录