Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 22 of 22 for constant_ops (0.11 sec)

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

          // Use mhlo.Constant when it is consumed by the lowering passes since they
          // 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/quantization/common/quantization_lib/quantization_utils.h

                DenseFPElementsAttr attr;
                if (!matchPattern(q.getOperand(), m_Constant(&attr))) {
                  continue;
                }
                auto cst = rewriter.create<arith::ConstantOp>(
                    quantized_op->getLoc(), attr);
                quantizing_op->setOperand(i, cst.getResult());
              }
            }
    
            for (int i = 0, e = quantized_op->getNumResults(); i < e; ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
Back to top