Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 127 for getLoc (0.16 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/unwrap_xla_call_module_op.cc

      if (call_op_has_platform_index_arg) {
        arg_mapper.map(func_op.getArgument(0),
                       builder.create<mhlo::ConstantOp>(
                           func_op.getLoc(), builder.getI16IntegerAttr(0)));
      }
      for (auto [func_arg, operand] : llvm::zip_equal(
               func_op.getArguments().take_back(call_op.getNumOperands()),
               call_op.getOperands())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/legalize_jax_random.cc

      if (result_tuple_ty.size() != 1) return;
      auto result_ty = mlir::dyn_cast<ShapedType>(result_tuple_ty.getType(0));
    
      func.eraseBody();
      func.addEntryBlock();
      ImplicitLocOpBuilder builder(func.getLoc(), func.getBody());
      llvm::SmallVector<int32_t> result_shape_i32;
      auto result_shape = result_ty.getShape();
      for (auto element : result_shape) {
        result_shape_i32.push_back(static_cast<int32_t>(element));
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/SitemapUrl.java

         * is only used to select between URLs on your site.
         */
        private String priority;
    
        @Override
        public String getLoc() {
            return loc;
        }
    
        public void setLoc(final String loc) {
            this.loc = loc;
        }
    
        @Override
        public String getLastmod() {
            return lastmod;
        }
    
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/utils.td

    include "mlir/IR/OpBase.td"
    include "mlir/Dialect/Func/IR/FuncOps.td"
    include "mlir/IR/PatternBase.td"
    
    def CreateNoneValue : NativeCodeCall<
      "$_builder.create<TFL::NoValueOp>($0.getLoc(), $_builder.getUnitAttr())">;
    
    // Returns shape of a ranked tensor.
    // if called without a ranked tensor it will fail.
    def GetShape: NativeCodeCall<"GetShape($0)">;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_calibration_statistics_saver.cc

      ArrayAttr ids_attr = builder.getStrArrayAttr(ids);
      ArrayAttr calibration_methods_attr =
          builder.getI32ArrayAttr(calibration_methods);
      builder.create<TF::CalibrationStatisticsSaverOp>(
          region.getLoc(), statistics_outputs, output_file_path_attr, ids_attr,
          calibration_methods_attr);
      return success();
    }
    
    // Returns true if the op contains a `CalibrationStatisticsSaverOp`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/tac/transforms/fold_constants_to_subgraph.cc

          (llvm::isa<TFL::ConstOp, TFL::QConstOp, arith::ConstantOp>(const_op)) &&
          "Expect QConst or Const op.");
      OpBuilder builder(func.getBody());
      auto cloned_const_op = const_op->clone();
      cloned_const_op->setLoc(func.getBody().getLoc());
      builder.insert(cloned_const_op);
      // Rewire the usage.
      func.getArgument(argument_index)
          .replaceAllUsesWith(cloned_const_op->getResult(0));
    }
    
    bool IsConstOrQConstInt(Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

        if (it.second) {
          auto resource_type = op.getResult(0).getType();
          op.getResult(0).replaceAllUsesWith(
              block.addArgument(resource_type, op.getLoc()));
          AddEntryFunctionInput(
              absl::StrCat("hash_table_", it.first->getValue(), ":0"), target_func);
          // Avoid deleting the op here, clone it to the caller function first.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc

            }
          }
    
          // Replace the arg with a tf.Const op in the function body.
          builder.setInsertionPointToStart(&func.getBody().front());
          auto const_op = builder.create<TF::ConstOp>(global_tensor.getLoc(),
                                                      *global_tensor.getValue());
          args_to_erase.set(val.getArgNumber());
          for (auto read_op : read_variable_ops_to_erase) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/prepare_quantize.cc

        auto preceding_qcast =
            q_op.getArg().getDefiningOp<quantfork::QuantizeCastOp>();
        if (!preceding_qcast) return failure();
    
        auto new_qcast = rewriter.create<quantfork::QuantizeCastOp>(
            q_op.getLoc(), q_op.getType(), preceding_qcast.getArg());
        new_qcast->setAttr(kVolatileOpAttrName, rewriter.getUnitAttr());
        q_op->replaceAllUsesWith(new_qcast);
        return success();
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 05:11:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/replicate_invariant_op_hoisting.cc

        if (block_arg.getOwner() != replicate_block) return;
    
        OpBuilder builder(shape_op);
        auto new_shape_op = builder.create<TF::VariableShapeOp>(
            shape_op.getLoc(), shape_op.getType(),
            replicate_op.GetReplicaOperandForBlockArgument(block_arg,
                                                           /*replica=*/0));
        shape_op.replaceAllUsesWith(new_shape_op.getOperation());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top