Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for inputs_ty (0.31 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

    LogicalResult XlaVariadicSortOp::verify() {
      XlaVariadicSortOp op = *this;
      const auto &inputs_ty = op.getInputs().getType();
      int n_inputs = inputs_ty.size();
      auto input_ty_0 = inputs_ty[0].cast<ShapedType>();
      if (input_ty_0.hasStaticShape()) {
        for (int i = 1; i < n_inputs; ++i) {
          auto input_ty_i = inputs_ty[i].cast<ShapedType>();
          if (input_ty_i.hasStaticShape() &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/output-shapes-attr.mlir

      func.return %graph#0 : tensor<2xi32>
    }
    
    // Test with a TPUPartitionedCallOp that is not inlined.
    func.func @dont_inline_tpu_partitioned_call(%arg0: tensor<2xi32> {tf._user_specified_name = "inputs_0"}, %arg1: tensor<2xi32> {tf._user_specified_name = "inputs_1"}) -> tensor<2xi32> {
      %graph = tf_executor.graph {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 25 12:28:56 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  3. tensorflow/c/c_test_util.cc

        targets_.emplace_back(t);
      }
    }
    
    void CSession::Run(TF_Status* s) {
      if (inputs_.size() != input_values_.size()) {
        ADD_FAILURE() << "Call SetInputs() before Run()";
        return;
      }
      ResetOutputValues();
      output_values_.resize(outputs_.size(), nullptr);
    
      const TF_Output* inputs_ptr = inputs_.empty() ? nullptr : &inputs_[0];
      TF_Tensor* const* input_values_ptr =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 15 03:16:52 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      DataFormatVecPermuteOp op = *this;
      auto input_ty = mlir::dyn_cast<RankedTensorType>(op.getX().getType());
      if (!input_ty) return success();
    
      int rank = input_ty.getRank();
      if (rank != 1 && rank != 2)
        return op.emitOpError("requires input of rank 1 or 2");
    
      if (rank == 1) {
        int64_t dim0 = input_ty.getDimSize(0);
        if (dim0 != ShapedType::kDynamic && dim0 != 4 && dim0 != 2)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        // as its an input requirement.
        if (!input_ty.hasRank() || input_ty.getRank() != 4) {
          return failure();
        }
    
        int64_t batch_cst = input_ty.getShape()[0];
        int64_t channels_cst = input_ty.getShape()[3];
    
        int64_t in_y_cst = input_ty.getShape()[1];
        int64_t in_x_cst = input_ty.getShape()[2];
        int64_t in_spatial_cst =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/converter/KatakanaConverter.java

            readingList.add(toKatakana(text));
            return readingList;
        }
    
        protected String toKatakana(final String inputStr) throws IOException {
            final StringBuilder kanaBuf = new StringBuilder();
    
            final Reader rd = new StringReader(inputStr);
            try (TokenStream stream = createTokenStream(rd)) {
                if (stream == null) {
                    throw new IOException("Invalid tokenizer.");
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. tensorflow/cc/framework/ops.h

        for (auto const& x : out) {
          inputs_.push_back(x);
        }
      }
    
      typename std::vector<Input>::iterator begin() { return inputs_.begin(); }
      typename std::vector<Input>::iterator end() { return inputs_.end(); }
      typename std::vector<Input>::const_iterator begin() const {
        return inputs_.begin();
      }
      typename std::vector<Input>::const_iterator end() const {
        return inputs_.end();
      }
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc

    }
    
    Type InferReductionOpType(Value input, Value reduction_indices,
                              BoolAttr keep_dims) {
      Type input_ty = input.getType();
      Type element_ty = getElementTypeOrSelf(input_ty);
    
      // Output type is unranked if input type is not ranked.
      auto ranked_ty = mlir::dyn_cast<RankedTensorType>(input_ty);
      if (!ranked_ty) return UnrankedTensorType::get(element_ty);
      int64_t rank = ranked_ty.getRank();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        }
        int axis = val.getSExtValue();
    
        auto input_ty = mlir::dyn_cast<RankedTensorType>(op.getInput().getType());
        if (!input_ty || !input_ty.hasStaticShape()) {
          return rewriter.notifyMatchFailure(
              op, "require the type of input to have static shapes");
        }
        ArrayRef<int64_t> input_shape = input_ty.getShape();
        int input_rank = input_ty.getRank();
        if (axis < 0) axis += input_rank;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  10. tensorflow/cc/framework/ops.cc

    namespace tensorflow {
    
    Operation::Operation(Node* n) : inputs_(GetInputs(n)), node_(n) {}
    
    Output Operation::input(int32_t i) const {
      CHECK_NOTNULL(node_);
      CHECK_GE(i, 0);
      CHECK_LT(i, node_->num_inputs());
      // Handle the case where the input was unknown at the time this
      // Operation was constructed.
      if (inputs_[i].first == nullptr && inputs_[i].second == -1) {
        for (const Edge* e : node_->in_edges()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 3.5K bytes
    - Viewed (0)
Back to top