Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,825 for Auto (0.04 sec)

  1. tensorflow/compiler/mlir/lite/transforms/legalize_hashtables.cc

    }
    
    bool checkWhetherGraphHasValidStaticLookupTables(ModuleOp module) {
      auto hashtables = GetAllOps<TF::HashTableV2Op>(&module);
      // No needs to run the legalization patterns.
      if (hashtables.empty()) {
        return false;
      }
    
      for (auto hashtable : hashtables) {
        auto key_dtype = hashtable.getKeyDtype();
        auto value_dtype = hashtable.getValueDtype();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. 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)
  3. tensorflow/compiler/mlir/lite/quantization/device_target.cc

      auto in_spec = input_specs[0].dyn_cast<UniformQuantizedType>();
      // TODO(fengliuai): handles the PerAxis QuantizedType.
      auto w_spec = input_specs[1].dyn_cast<UniformQuantizedType>();
      auto b_spec = input_specs[2].dyn_cast<UniformQuantizedType>();
      auto o_spec = out_specs[0].dyn_cast<UniformQuantizedType>();
      if (!in_spec || !w_spec || !b_spec || !o_spec) return failure();
    
      double scale_product = in_spec.getScale() * w_spec.getScale();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 10:41:08 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/translate_utils.cc

    void PopulateTfVersions(mlir::ModuleOp module, const VersionDef& versions) {
      mlir::Builder b(module.getContext());
      auto producer =
          b.getNamedAttr("producer", b.getI32IntegerAttr(versions.producer()));
      auto min_consumer = b.getNamedAttr(
          "min_consumer", b.getI32IntegerAttr(versions.min_consumer()));
      auto bad_consumers = b.getNamedAttr(
          "bad_consumers",
          b.getI32ArrayAttr(llvm::ArrayRef<int32_t>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 3.2K 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/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)
  7. tensorflow/c/experimental/stream_executor/stream_executor_test.cc

                              SP_Stream stream) -> void {
        auto custom_stream = static_cast<SP_Stream_st*>(stream);
        ASSERT_EQ(custom_stream->stream_id, 14);
        delete custom_stream;
        stream_deleted = true;
      };
    
      StreamExecutor* executor = GetExecutor(0);
      ASSERT_FALSE(stream_created);
      TF_ASSERT_OK_AND_ASSIGN(auto stream, executor->CreateStream());
      ASSERT_TRUE(stream_created);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 19:54:04 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.cc

        flattened_contracting_segids[i] = 0;
      }
      auto seg_prod_result_type =
          RankedTensorType::get(static_cast<int32_t>(1), builder.getI32Type());
      auto out_segids_cst = builder.create<TFL::ConstOp>(
          builder.getI32TensorAttr(flattened_out_segids));
      auto contracting_segids_cst = builder.create<TFL::ConstOp>(
          builder.getI32TensorAttr(flattened_contracting_segids));
      auto num_segids_tensor =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top