Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 50 for constop (0.13 sec)

  1. tensorflow/compiler/mlir/lite/transforms/dilated_conv.h

              squeeze_op, "result for current op has more than 1 use");
        }
        // Make sure that the axis in `expand_op` is constant.
        if (auto const_op =
                llvm::dyn_cast<TF::ConstOp>(expand_op.getDim().getDefiningOp())) {
          expand_axis = (*mlir::cast<DenseElementsAttr>(const_op.getValue())
                              .getValues<APInt>()
                              .begin())
                            .getSExtValue();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc

      ShapedType weight_type = mlir::cast<ShapedType>(weight.getType());
      const int32_t input_rank = input_type.getRank();
      const int32_t weight_rank = weight_type.getRank();
      const int32_t broadcasted_rank = std::max(input_rank, weight_rank);
    
      const int32_t num_matmul_dim = 2;
      const int32_t num_input_batch_dim = input_rank - num_matmul_dim;
      const int32_t num_weight_batch_dim = weight_rank - num_matmul_dim;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

      for (const auto& arg : replicate.GetReplicatedBlockArguments()) {
        replicated_inputs.emplace_back();
        for (int64_t i = 0; i < num_replicas; ++i) {
          replicated_inputs.back().push_back(
              replicate.GetReplicaOperandForBlockArgument(arg, i));
        }
        new_replicated_inputs.emplace_back(replicated_inputs.back(), arg.getType());
      }
      for (const auto& arg : replicate.GetPackedBlockArguments()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc

    }
    
    bool IsTypeLegalizedWithMlir(const TypeID& type_id) {
      return MlirAlwaysOps().contains(type_id);
    }
    
    bool IsOpAllowedTf2xlaFallback(const TypeID& type_id) {
      return IsOpTypeAllowedTf2XlaFallback(type_id);
    }
    
    bool IsOpAllowedTf2xlaPreferred(const TypeID& type_id) {
      return IsOpTypeAllowedTf2XlaPreferred(type_id);
    }
    
    bool IsDynamicPadderOp(const TypeID& type_id) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tpu_validate_inputs.cc

            return false;
        }
        if (!is_cluster_op) {
          if (!CheckNonClusterSuccessors(succ, op, metadata_map)) return false;
        }
      }
      return true;
    }
    
    bool TypeMustBeNonXLA(const Type& type) {
      const Type elem = getElementTypeOrSelf(type);
      return !mlir::isa<TF::ResourceType>(elem) &&
             !tensorflow::TypeValidForXLA(type);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 06:51:01 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

    IslandOp GetDummyConstant(OpBuilder builder, ShapedType const_type,
                              Location loc) {
      DenseIntElementsAttr val = DenseIntElementsAttr::get(const_type, 1);
      auto const_op = builder.create<TF::ConstOp>(loc, val);
      auto const_island = CreateIsland(const_op, {}, builder);
      return const_island;
    }
    
    // Rewrites the while op with extra chaining operands and results. Uses a
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_experimental.cc

    }
    
    void TF_AttrBuilderSetTypeList(TF_AttrBuilder* builder, const char* attr_name,
                                   const TF_DataType* values, int num_values) {
      auto iter = builder->attr_names.insert(attr_name).first;
      builder->Set(*iter, tensorflow::gtl::ArraySlice<const tensorflow::DataType>(
                              reinterpret_cast<const tensorflow::DataType*>(values),
                              num_values));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

      // definition, potentially leading to bogus _replication_info attributes. So
      // we just scrub all tf.Constants of all extra attributes.
      // TODO(kramm): Remove this once tf.Const's folder is aware of extra
      // attributes.
      auto value_str_attr = StringAttr::get(&getContext(), "value");
      getOperation().walk([&](mlir::TF::ConstOp cst) {
        auto dict = cst->getAttrDictionary();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

      return compile_mlir_result.status();
    }
    
    absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> GraphToModule(
        bool unconditionally_use_set_output_shapes, const Graph& graph,
        llvm::ArrayRef<std::string> control_rets,
        const FunctionLibraryDefinition& flib_def, const GraphDebugInfo& debug_info,
        mlir::MLIRContext* context) {
      mlir::DialectRegistry registry;
      RegisterDialects(registry);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/const-fold.mlir

    Christian Sigg <******@****.***> 1714640622 -0700
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 45.8K bytes
    - Viewed (0)
Back to top