In [ ]:
import torch
import syft as sy
sy.create_sandbox(globals())
In [ ]:
workers
また、すぐに使えるくのグローバル変数も用意されています。
In [ ]:
hook
In [ ]:
bob
In [ ]:
torch.Tensor([1,2,3,4,5])
In [ ]:
x = torch.tensor([1,2,3,4,5]).tag("#fun", "#boston", "#housing").describe("The input datapoints to the boston housing dataset.")
y = torch.tensor([1,2,3,4,5]).tag("#fun", "#boston", "#housing").describe("The input datapoints to the boston housing dataset.")
z = torch.tensor([1,2,3,4,5]).tag("#fun", "#mnist",).describe("The images in the MNIST training dataset.")
In [ ]:
x
In [ ]:
x = x.send(bob)
y = y.send(bob)
z = z.send(bob)
# 下記は完全一致のタグ、もしくは部分一致のdescriptionを検索します。
results = bob.search(["#boston", "#housing"])
In [ ]:
results
In [ ]:
print(results[0].description)
In [ ]:
grid = sy.PrivateGridNetwork(*workers)
In [ ]:
results = grid.search("#boston")
In [ ]:
boston_data = grid.search("#boston","#data")
In [ ]:
boston_target = grid.search("#boston","#target")
In [ ]:
In [ ]: