-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Aba
committed
Nov 16, 2023
1 parent
36a206d
commit 02f598e
Showing
12 changed files
with
128 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from deepsocflow.hardware import Hardware, example_function | ||
from deepsocflow.py.hardware import * | ||
from deepsocflow.py.utils import * |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from qkeras import QActivation | ||
from tensorflow.keras.layers import Input, Flatten, Add, MaxPooling2D | ||
import numpy as np | ||
|
||
# class QInput(Input): | ||
# def __init__(self, shape, batch_size, hw, frac_bits, name=None): | ||
|
||
# self.hw = hw | ||
# self.input_frac_bits = input_frac_bits | ||
# super().__init__(shape=shape, name=name) | ||
|
||
# int_bits = hw.X_BITS - self.frac_bits + 1 | ||
|
||
# x = Input(shape=shape, batch_size=batch_size, name=name) | ||
# x = QActivation(f'quantized_bits(bits={hw.X_BITS}, integer={int_bits}, False,True,1)')(x) | ||
|
||
# return x | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from qkeras import Model | ||
|
||
class QModel(Model): | ||
|
||
def __init(self, inputs, outputs, name=None): | ||
super().__init__(inputs, outputs, name=name) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
deepsocflow.py package | ||
====================== | ||
|
||
Submodules | ||
---------- | ||
|
||
deepsocflow.py.hardware module | ||
------------------------------ | ||
|
||
.. automodule:: deepsocflow.py.hardware | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
deepsocflow.py.layers module | ||
---------------------------- | ||
|
||
.. automodule:: deepsocflow.py.layers | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
deepsocflow.py.model module | ||
--------------------------- | ||
|
||
.. automodule:: deepsocflow.py.model | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
deepsocflow.py.utils module | ||
--------------------------- | ||
|
||
.. automodule:: deepsocflow.py.utils | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: deepsocflow.py | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ deepsocflow | |
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
deepsocflow | ||
deepsocflow.py |