MCPcopy Create free account
hub / github.com/apple/ml-pointersect / __init__

Method __init__

cdslib/core/utils/print_and_save.py:553–562  ·  view source on GitHub ↗

Args: convert_to_float: whether to convert input values (from Tensor, ndarray) to float

(self, convert_to_float: bool = True)

Source from the content-addressed store, hash-verified

551 """
552
553 def __init__(self, convert_to_float: bool = True):
554 """
555 Args:
556 convert_to_float:
557 whether to convert input values (from Tensor, ndarray) to float
558 """
559 self.convert_to_float = convert_to_float
560 self.x_sum_dict = dict()
561 self.x2_sum_dict = dict()
562 self.x_count_dict = dict()
563
564 def record(
565 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected