Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for X__val (0.1 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

            Args:
              use_variable: If True, creates a variable for weight.
            """
            super().__init__()
            w_val = np.random.randn(128, 32).astype('f4')
            if use_variable:
              self.w = variables.Variable(w_val)
            else:
              self.w = w_val
    
          @def_function.function(
              input_signature=[
                  tensor_spec.TensorSpec(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc

        // number without knowing this, so we need to manually dispatch to each
        // possible member of TensorProto, depening on its dtype.
    #define MATCH(DTYPE, FIELD) \
      case DTYPE:               \
        return tensor.FIELD##_val().size()
    
      switch (tensor.dtype()) {
        MATCH(DT_FLOAT, float);
        MATCH(DT_DOUBLE, double);
        MATCH(DT_INT8, int);
        MATCH(DT_UINT8, int);
        MATCH(DT_INT16, int);
        MATCH(DT_UINT16, int);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 20.5K bytes
    - Viewed (0)
Back to top