Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 153 for CST (0.05 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc

          // can't lower tf.Const.
          Value cst;
          if (use_mhlo_const) {
            cst = builder.create<mhlo::ConstantOp>(func_op->getLoc(), attrs);
          } else {
            cst = builder.create<TF::ConstOp>(func_op->getLoc(), attrs);
          }
          func_op.getArgument(i).replaceAllUsesWith(cst);
        }
        return module_op;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 01:03:21 UTC 2024
    - 35.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/decompose_resource_ops.mlir

    // CHECK-SAME: ([[INDEX:%.+]]: tensor<2x?xi32>, [[UPDATE:%.+]]: tensor<?x?x?xi32>)
    func.func @decompose_resource_scatter_add_op(%indices : tensor<2x?xi32>, %updates: tensor<?x?x?xi32>) {
      // CHECK-DAG: [[CST:%.+]] = "tf.Const"() <{value = dense<-1> : tensor<i32>}> : () -> tensor<i32>
      "tf_device.cluster"() ({
        // CHECK-DAG: [[VAR:%.+]] = "tf.VarHandleOp"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v2/testdata/func_with_dead_ops.mlir

        %9 = "tf.Const"() <{value = dense<"test"> : tensor<3x!tf_type.string>}> : () -> tensor<3x!tf_type.string>
        %cst = "tf.Const"() <{value = dense<0> : tensor<i32>}> : () -> tensor<i32>
        %11:4 = "tf.Split"(%cst, %0) {num_split = 4 : i32} : (tensor<i32>, tensor<128x1024xf32>) -> (tensor<32x1024xf32>, tensor<32x1024xf32>, tensor<32x1024xf32>, tensor<32x1024xf32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/importer_test_min_max.cc

      // CHECK-SAME:      <[-1.000000e+00, 1.000000e+00]> : tensor<2xf32>}>
      // CHECK-SAME:      : (tensor<40x37xf32>) -> tensor<40x37xf32>
      // CHECK-NEXT:    %[[cst:.*]] = "tfl.pseudo_const"() <{value = dense<
      // CHECK-SAME:      1.000000e+00> : tensor<40xf32>}> : () -> tensor<40xf32>
      // CHECK-NEXT:    %[[fc:.*]]:2 = "tfl.fully_connected"(%[[stat]], %arg1,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver_test.cc

          /*infer_tensor_range=*/true, /*legacy_float_scale=*/false,
          /*is_qdq_conversion=*/false);
    
      quantization_driver.Initialize();
    
      int64_t num_constant_op = 0;
      main_fn.walk([&](arith::ConstantOp cst) { ++num_constant_op; });
      EXPECT_EQ(num_constant_op, 4);
    }
    
    TEST_F(ApplyQuantizationParamsPropagationTest,
           PropagateParamsCreatesQuantState) {
      const OwningOpRef<ModuleOp> module_op_ref =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. src/internal/coverage/cfile/emit.go

    			// We found a function that was executed.
    			nCtrs := sd[i+coverage.NumCtrsOffset].Load()
    			pkgId := sd[i+coverage.PkgIdOffset].Load()
    			funcId := sd[i+coverage.FuncIdOffset].Load()
    			cst := i + coverage.FirstCtrOffset
    			counters := sd[cst : cst+int(nCtrs)]
    
    			// Check to make sure that we have at least one live
    			// counter. See the implementation note in ClearCoverageCounters
    			// for a description of why this is needed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

      getOperation().walk([&](mlir::TF::ConstOp cst) {
        auto dict = cst->getAttrDictionary();
        if (dict.size() == 1) {
          return;  // Optimization. Assume the one attribute is "value".
        }
        // Recreate the attributes dictionary to only contain "value".
        NamedAttrList attributes;
        attributes.append(NamedAttribute(value_str_attr, cst->getAttr("value")));
        cst->setAttrs(attributes.getDictionary(&getContext()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/GroovyScriptClassCompiler.java

                }
    
                @Override
                public void visitLdcInsn(Object cst) {
                    super.visitLdcInsn(remap(cst));
                }
    
                @Override
                public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:23:24 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/control_flow.mlir

      %cst = "tf.Const"() {value = dense<1.1> : tensor<100x512xf32>} : () -> tensor<100x512xf32>
      %one = "tf.Const"() {value = dense<1> : tensor<i32>} : () -> tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 00:40:32 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.h

      void SetupAllStates();
    
      // Returns Whether the constant is a weight, which shouldn't be shared by
      // different ops.
      bool IsWeight(Operation* cst) { return llvm::is_contained(weights_, cst); }
    
      // Returns all the related quantization constraints of the op.
      std::unique_ptr<OpQuantSpec> GetQuantSpec(Operation* op);
      std::unique_ptr<OpQuantScaleSpec> GetQuantScaleSpec(Operation* op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:42:17 UTC 2024
    - 16.8K bytes
    - Viewed (0)
Back to top