follow the long link to open geojson.io map viewer...
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
@value | |
struct Wrappee[dtype: DType = DType.float16]: | |
""" | |
Stores an int as a SIMD value. | |
Defaults to float16. | |
""" | |
var value: SIMD[dtype] | |
fn __init__(inout self, x: Int): | |
self.value = 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
trait Wrappable: | |
""" | |
A nonsensical trait- which can be initialized with an int, or copied. | |
""" | |
fn __init__(inout self, x: Int): | |
... | |
fn __copyinit__(inout self, existing: Self): | |
... | |
@value |
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
from benchmark import run | |
from python import Python | |
fn main(): | |
@parameter | |
fn try_import(): | |
try: | |
_ = Python.import_module("numpy") | |
except: |
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
name: Run Tests | |
on: | |
pull_request: | |
types: [opened, reopened] | |
push: | |
branches: | |
- 'main' |
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
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder |
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
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
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 example demonstrates the ability to pass artifacts | |
# from one step to the next. | |
apiVersion: argoproj.io/v1alpha1 | |
kind: Workflow | |
metadata: | |
generateName: artifact-passing- | |
annotations: | |
workflows.argoproj.io/description: | | |
guidorice testing | |
spec: |
from DType import DType
from Tensor import Tensor, TensorShape
from List import VariadicList
from Random import rand
alias height = 256
alias width = 256
alias channels = 3
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
# curl -v http://dev.mlhub.earth:8080/gql \ | |
curl -v http://dev.mlhub.earth:3000/api/gql \ | |
-F operations='{ "query": "mutation ($file: Upload!) { upload_dataset_ingest_file( input: { dataset_id: \"guidorice_dataset1\", ingest_filetype: pdf }, blob: $file) { error size message } } ", "variables": { "file": null } }' \ | |
-F map='{ "0": ["variables.file"] }' \ | |
-F 0=@test.pdf |
NewerOlder