FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
uTensor/src/uTensor/ops/ActivationFncs.cpp at develop · uTensor/uTensor · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
uTensor
/
uTensor
Public
Notifications
You must be signed in to change notification settings
Fork
250
Star
1.9k
Code
Issues
51
Pull requests
5
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
uTensor
/
src
/
uTensor
/
ops
/
ActivationFncs.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (17 loc) · 573 Bytes
Breadcrumbs
uTensor
/
src
/
uTensor
/
ops
/
ActivationFncs.cpp
Copy path
File metadata and controls
21 lines (17 loc) · 573 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
include
"
ActivationFncs.hpp
"
namespace
uTensor
{
namespace
ReferenceOperators
{
template
<>
void
SoftmaxOperator<
int8_t
>::compute() {
const
Tensor& inT = inputs[in].
tensor
();
Tensor& outT = outputs[out].
tensor
();
//
TODO Check sizes here and throw mismatch
uint32_t
in_size = inT->
get_shape
().
get_linear_size
();
uint32_t
out_size = outT->
get_shape
().
get_linear_size
();
if
(in_size != out_size)
Context::get_default_context
()->
throwError
(
new
OperatorIOSizeMismatchError);
sq_softmax_k
(outT, inT, beta);
}
}
//
ReferenceOperators
}
//
uTensor
Back
|
FazBrowse Home
|
New Git URL