def create_state_multi_precision(self, index, weight):
weight_master_copy = None<EOL>if self.multi_precision and weight.dtype == np.float16:<EOL><INDENT>weight_master_copy = weight.astype(np.float32)<EOL>return (self.create_state(index, weight_master_copy), weight_master_copy)<EOL><DEDENT>if weight.dtype == np.float16 and not self.multi_precision:<EOL><INDENT>warnings.warn('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>return self.create_state(index, weight)<EOL>
multi-precision state creation function.