Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,694 for Auto (0.07 sec)

  1. tensorflow/compiler/mlir/tensorflow/analysis/tf_dataflow.h

                                     ArrayRef<StateT *> results) {
        if (auto cast = dyn_cast<TF::CastOp>(op)) {
          this->join(results[0], *operands[0]);
        } else if (auto while_op = dyn_cast<TF::WhileRegionOp>(op)) {
          for (auto &region : while_op->getRegions()) {
            for (auto [arg, value] :
                 llvm::zip(region.getArguments(), while_op->getOperands())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. tensorflow/cc/gradients/nn_grad.cc

        auto logits_softmax = Softmax(scope, logits);
    
        auto grad_grad_expand = ExpandDims(scope, grad_grad, 1);
        auto logits_softmax_expand = ExpandDims(scope, logits_softmax, 2);
        auto matmul_result =
            BatchMatMul(scope, grad_grad_expand, logits_softmax_expand);
        axis.push_back(1);
        auto squeeze_result = Squeeze(scope, matmul_result, Squeeze::Axis(axis));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 27 23:34:33 UTC 2022
    - 24.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/target_hardware.cc

      return false;
    }
    
    }  // namespace
    
    bool TargetHardware::Init() {
      auto* hardware_ops_factory = GetRegisteredTargetHardwareOps();
      for (auto& hardware_ops : *hardware_ops_factory) {
        if (hardware_ops->hardware_typeid != this->GetTypeId()) continue;
        auto& op_factories = hardware_ops->target_hardware_ops_factory;
        for (auto& op_factory : op_factories) {
          hardware_ops_.emplace_back(op_factory.getSecond()());
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 09 21:39:59 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc

      return %2 : tensor<10x10xi8>
    })mlir";
      TF_ASSERT_OK_AND_ASSIGN(auto input, CreateRandomI8Literal({10, 10}));
      TF_ASSERT_OK_AND_ASSIGN(
          auto input_scale,
          CreateRandomF32Literal({10}, /*min=*/0.0001, /*max=*/2));
      TF_ASSERT_OK_AND_ASSIGN(auto input_zp, CreateRandomI32Literal({10}));
      TF_ASSERT_OK_AND_ASSIGN(
          auto output_scale,
          CreateRandomF32Literal({10}, /*min=*/0.0001, /*max=*/2));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 01:03:21 UTC 2024
    - 35.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/compilability_check_util_test.cc

      function.set_name(kUncompilableFunctionName);
      const auto node_info_it =
          uncompilable_nodes.find(function.ShortDebugString());
      ASSERT_NE(uncompilable_nodes.end(), node_info_it);
      const auto& uncompilable_node_list = node_info_it->second.second;
      ASSERT_EQ(1, uncompilable_node_list.size());
      const auto& node_info = uncompilable_node_list.at(0);
    
      const auto& node_stack = node_info.stack_trace;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 10 12:32:39 UTC 2022
    - 22.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc

              typename Convert>
    static Attribute BinaryFolder(Op *op) {
      auto lhs_op = op->getLhs().template getDefiningOp<mhlo::ConstantOp>();
      auto rhs_op = op->getRhs().template getDefiningOp<mhlo::ConstantOp>();
      if (!lhs_op || !lhs_op) return {};
    
      auto lhs = dyn_cast_or_null<DenseElementsAttr>(lhs_op.getValue());
      auto rhs = dyn_cast_or_null<DenseElementsAttr>(rhs_op.getValue());
      if (!lhs || !rhs) return {};
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/push_transpose_through_ewise.cc

        }
    
        if (!tpose_arg->hasOneUse()) {
          return failure();
        }
    
        auto tpose_arg_type =
            llvm::dyn_cast<RankedTensorType>(tpose_arg->getResultTypes()[0]);
        auto cst_arg_type =
            llvm::dyn_cast<RankedTensorType>(cst_arg->getResultTypes()[0]);
    
        auto tpose_arg_rank = tpose_arg_type.getRank();
        auto cst_arg_rank = cst_arg_type.getRank();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/tests/tfrt_fallback/batch_function_fallback_benchmark_test.cc

    }
    
    TEST(BatchFunctionTest, Basic) {
      auto corert = CreateTestCoreRuntime();
      auto* host = corert->GetHostContext();
      auto [bef_buffer, bef_file] = CreateBefFile(host);
      auto* func = bef_file->GetFunction("main");
      CHECK(func);
      CHECK_EQ(func->result_types().size(), 113);
      CHECK_EQ(func->argument_types().size(), 113);
    
      auto arguments = CreateTestArguments(func, host);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 08 08:08:48 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc

      size_t start_map = fbb.StartMap();
    
      for (auto attr : attrs) {
        if (auto float_attr = mlir::dyn_cast_or_null<FloatAttr>(attr.second)) {
          fbb.Float(attr.first.data(), float_attr.getValue().convertToFloat());
        } else if (auto int_attr =
                       mlir::dyn_cast_or_null<IntegerAttr>(attr.second)) {
          fbb.Int(attr.first.data(), int_attr.getInt());
        } else if (auto bool_attr = mlir::dyn_cast_or_null<BoolAttr>(attr.second)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

                                       SmallVector<TransposeOp, 2>* transpose_ops) {
      for (auto it = transpose_ops->begin(); it != transpose_ops->end(); ++it) {
        auto tranpose_op = *it;
        for (auto tranpose_operand : tranpose_op.getOperands()) {
          auto ranked_tranpose_type =
              mlir::dyn_cast_or_null<RankedTensorType>(tranpose_operand.getType());
          if (!ranked_tranpose_type) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top