Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 159 for _conv (0.12 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/tests/quantize_composite_functions.mlir

    // RUN: tf-quant-opt %s -split-input-file -quant-insert-quantized-functions -quant-quantize-composite-functions | FileCheck %s
    
    module {
      func.func @conv(%arg0: tensor<1x2x2x3xf32>) -> (tensor<*xf32>, tensor<*xf32>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Nov 06 01:23:21 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec.cc

        StringRef function_name = entry_function.getValue();
        if (!function_name.starts_with("composite_")) {
          return spec;
        }
    
        if (function_name.contains("conv")) {
          // Looks up `Method` to see if it should be per-channel quantized and
          // populates the spec accordingly.
          PopulateCoeffOpQuantDimIfPerChannelQuantized(call_op, *spec);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

            # One pure conv
            out = nn_ops.conv2d(
                out,
                self.conv_filters,
                strides=(1, 1, 2, 1),
                dilations=(1, 1, 1, 1),
                padding='SAME',
                data_format='NHWC',
            )
    
            # One fakequant attached conv
            if is_qat_model:
              out = array_ops.fake_quant_with_min_max_args(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/typecheck.go

    	n = DefaultLit(n, types.Types[types.TINT])
    	*np = n
    
    	return true
    }
    
    func Conv(n ir.Node, t *types.Type) ir.Node {
    	if types.IdenticalStrict(n.Type(), t) {
    		return n
    	}
    	n = ir.NewConvExpr(base.Pos, ir.OCONV, nil, n)
    	n.SetType(t)
    	n = Expr(n)
    	return n
    }
    
    // ConvNop converts node n to type t using the OCONVNOP op
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ir/fmt.go

    	OCALLMETH:         8,
    	OCALL:             8,
    	OCAP:              8,
    	OCLEAR:            8,
    	OCLOSE:            8,
    	OCOMPLIT:          8,
    	OCONVIFACE:        8,
    	OCONVNOP:          8,
    	OCONV:             8,
    	OCOPY:             8,
    	ODELETE:           8,
    	OGETG:             8,
    	OLEN:              8,
    	OLITERAL:          8,
    	OMAKESLICE:        8,
    	OMAKESLICECOPY:    8,
    	OMAKE:             8,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_weight_param.cc

        const auto module_op = op->getParentOfType<ModuleOp>();
        const SymbolTable symbol_table(module_op);
        func::FuncOp func = symbol_table.lookup<func::FuncOp>(function_name);
    
        if (function_name.contains("conv")) {
          return (*(func.getOps<mlir::stablehlo::ConvolutionOp>().begin()))
              .getDimensionNumbers()
              .getKernelOutputFeatureDimension();
        } else if (function_name.contains("dot_general")) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/cc/config_test.cc

      ASSERT_THAT(new_config.specs().specs(), SizeIs(1));
    
      const QuantizationSpec& spec = new_config.specs().specs(0);
      EXPECT_THAT(spec.matcher().function_name().regex(),
                  StrEq("^.*(conv|dot_general).*"));
      EXPECT_TRUE(spec.method().has_weight_only_ptq());
    
      const WeightOnlyPtq& weight_only_ptq_spec = spec.method().weight_only_ptq();
    
      EXPECT_THAT(weight_only_ptq_spec.input_quantized_types(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 06:59:34 UTC 2024
    - 12K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h

    // or `std::nullopt` if the given op is not per-channel quantizable.
    std::optional<int64_t> GetDotGeneralQuantizationDim(
        ::mlir::stablehlo::DotGeneralOp dot_general_op);
    
    // Checks if a `StringRef` contains 'conv' or 'dot_general'.
    bool ContainsConvOrDot(StringRef str);
    
    }  // namespace mlir::quant
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. operator/cmd/mesh/test-util_test.go

    }
    
    func mustGetLabels(t test.Failer, obj object.K8sObject, path string) map[string]string {
    	t.Helper()
    	got := mustGetPath(t, obj, path)
    	conv, ok := got.(map[string]any)
    	if !ok {
    		t.Fatalf("could not convert %v", got)
    	}
    	ret := map[string]string{}
    	for k, v := range conv {
    		sv, ok := v.(string)
    		if !ok {
    			t.Fatalf("could not convert to string %v", v)
    		}
    		ret[k] = sv
    	}
    	return ret
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/post-quantize.mlir

    // CHECK-NEXT:  %[[conv:.*]] = "tfl.conv_2d"(%arg0, %[[q_cst_0]], %[[q_cst_1]]) <{dilation_h_factor = 1 : i32, dilation_w_factor = 1 : i32, fused_activation_function = "NONE", padding = "SAME", stride_h = 2 : i32, stride_w = 2 : i32}>
    // CHECK-NEXT:  %[[reshape:.*]] = "tfl.reshape"(%[[conv]], %[[cst]]) : (tensor<1x112x112x32x!quant.uniform<u8:f32, 0.023528476789885875>>, tensor<2xi32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 19.9K bytes
    - Viewed (0)
Back to top