Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_38905368
tensorflow
提交
49123b01
T
tensorflow
项目概览
qq_38905368
/
tensorflow
与 Fork 源项目一致
从无法访问的项目Fork
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tensorflow
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
49123b01
编写于
12月 07, 2018
作者:
S
Suharsh Sivakumar
提交者:
TensorFlower Gardener
12月 07, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix flexbuffer byte type and annotation.
PiperOrigin-RevId: 224623431
上级
237851c5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
8 deletion
+8
-8
tensorflow/lite/schema/schema.fbs
tensorflow/lite/schema/schema.fbs
+1
-1
tensorflow/lite/schema/schema_generated.h
tensorflow/lite/schema/schema_generated.h
+7
-7
未找到文件。
tensorflow/lite/schema/schema.fbs
浏览文件 @
49123b01
...
...
@@ -45,7 +45,7 @@ enum TensorType : byte {
// Custom quantization parameters for experimenting with new quantization
// techniques.
table CustomQuantization {
custom:[
byte]
;
custom:[
ubyte] (force_align: 16)
;
}
// Represents a specific quantization technique's parameters.
...
...
tensorflow/lite/schema/schema_generated.h
浏览文件 @
49123b01
...
...
@@ -2247,7 +2247,7 @@ inline const char *EnumNameCustomOptionsFormat(CustomOptionsFormat e) {
struct
CustomQuantizationT
:
public
flatbuffers
::
NativeTable
{
typedef
CustomQuantization
TableType
;
std
::
vector
<
int8_t
>
custom
;
std
::
vector
<
u
int8_t
>
custom
;
CustomQuantizationT
()
{
}
};
...
...
@@ -2257,8 +2257,8 @@ struct CustomQuantization FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
enum
{
VT_CUSTOM
=
4
};
const
flatbuffers
::
Vector
<
int8_t
>
*
custom
()
const
{
return
GetPointer
<
const
flatbuffers
::
Vector
<
int8_t
>
*>
(
VT_CUSTOM
);
const
flatbuffers
::
Vector
<
u
int8_t
>
*
custom
()
const
{
return
GetPointer
<
const
flatbuffers
::
Vector
<
u
int8_t
>
*>
(
VT_CUSTOM
);
}
bool
Verify
(
flatbuffers
::
Verifier
&
verifier
)
const
{
return
VerifyTableStart
(
verifier
)
&&
...
...
@@ -2274,7 +2274,7 @@ struct CustomQuantization FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
struct
CustomQuantizationBuilder
{
flatbuffers
::
FlatBufferBuilder
&
fbb_
;
flatbuffers
::
uoffset_t
start_
;
void
add_custom
(
flatbuffers
::
Offset
<
flatbuffers
::
Vector
<
int8_t
>>
custom
)
{
void
add_custom
(
flatbuffers
::
Offset
<
flatbuffers
::
Vector
<
u
int8_t
>>
custom
)
{
fbb_
.
AddOffset
(
CustomQuantization
::
VT_CUSTOM
,
custom
);
}
explicit
CustomQuantizationBuilder
(
flatbuffers
::
FlatBufferBuilder
&
_fbb
)
...
...
@@ -2291,7 +2291,7 @@ struct CustomQuantizationBuilder {
inline
flatbuffers
::
Offset
<
CustomQuantization
>
CreateCustomQuantization
(
flatbuffers
::
FlatBufferBuilder
&
_fbb
,
flatbuffers
::
Offset
<
flatbuffers
::
Vector
<
int8_t
>>
custom
=
0
)
{
flatbuffers
::
Offset
<
flatbuffers
::
Vector
<
u
int8_t
>>
custom
=
0
)
{
CustomQuantizationBuilder
builder_
(
_fbb
);
builder_
.
add_custom
(
custom
);
return
builder_
.
Finish
();
...
...
@@ -2299,10 +2299,10 @@ inline flatbuffers::Offset<CustomQuantization> CreateCustomQuantization(
inline
flatbuffers
::
Offset
<
CustomQuantization
>
CreateCustomQuantizationDirect
(
flatbuffers
::
FlatBufferBuilder
&
_fbb
,
const
std
::
vector
<
int8_t
>
*
custom
=
nullptr
)
{
const
std
::
vector
<
u
int8_t
>
*
custom
=
nullptr
)
{
return
tflite
::
CreateCustomQuantization
(
_fbb
,
custom
?
_fbb
.
CreateVector
<
int8_t
>
(
*
custom
)
:
0
);
custom
?
_fbb
.
CreateVector
<
u
int8_t
>
(
*
custom
)
:
0
);
}
flatbuffers
::
Offset
<
CustomQuantization
>
CreateCustomQuantization
(
flatbuffers
::
FlatBufferBuilder
&
_fbb
,
const
CustomQuantizationT
*
_o
,
const
flatbuffers
::
rehasher_function_t
*
_rehasher
=
nullptr
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录