Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/examples
/ target_transform
Function
target_transform
super_resolution/data.py:46–50 ·
view source on GitHub ↗
(crop_size)
Source
from the content-addressed store, hash-verified
44
45
46
def
target_transform(crop_size):
47
return
Compose([
48
CenterCrop(crop_size),
49
ToTensor(),
50
])
51
52
53
def
get_training_set(upscale_factor):
Callers
2
get_training_set
Function · 0.85
get_test_set
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected