MCPcopy Index your code
hub / github.com/pytorch/pytorch / init_blob

Function init_blob

caffe2/python/helpers/normalization.py:54–56  ·  view source on GitHub ↗
(value, suffix)

Source from the content-addressed store, hash-verified

52 # bias: initialize with zeros
53
54 def init_blob(value, suffix):
55 return model.param_init_net.ConstantFill(
56 [], blob_out + "_" + suffix, shape=[dim_in], value=value)
57 scale, bias = init_blob(1.0, "s"), init_blob(0.0, "b")
58
59 model.AddParameter(scale, ParameterTags.WEIGHT)

Callers 1

instance_normFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…