Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CyanLight
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fxk8y
CyanLight
Commits
f61282ca
Commit
f61282ca
authored
3 years ago
by
fxk8y
Browse files
Options
Downloads
Patches
Plain Diff
…
parent
ad0889a9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SiliconTorch/Device.py
+16
-8
16 additions, 8 deletions
SiliconTorch/Device.py
with
16 additions
and
8 deletions
SiliconTorch/Device.py
+
16
−
8
View file @
f61282ca
class
Qthing
Device
:
class
Device
:
def
__init__
(
self
,
name
):
def
__init__
(
self
,
torch
,
name
,
online
=
True
):
self
.
_torch
=
torch
self
.
_name
=
name
self
.
__online
=
online
@property
def
name
(
self
):
return
self
.
_name
@name.setter
def
name
(
self
,
value
):
print
(
'
Setting name to
'
+
value
)
return
AttributeError
@property
def
online
(
self
):
return
self
.
__online
class
Extension
:
def
__init__
(
self
,
device
:
Device
):
setattr
(
device
,
type
(
self
).
__name__
,
self
)
class
FxCyanFDevice
(
QthingDevice
)
:
class
ExtensionManager
:
pass
def
__init__
(
self
):
pass
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment