Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 103 for result_types (0.29 sec)

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

        const auto result_type = mlir::cast<TensorType>(op.getResult(0).getType());
        const SmallVector<int64_t> new_result_shape =
            Permute<int64_t>(result_type.getShape(), kNchwToNhwcPermutation);
    
        const TensorType new_result_type =
            result_type.cloneWith(new_result_shape, result_type.getElementType());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/worker/TestEventSerializerTest.groovy

            def event1 = new TestCompleteEvent(123L, TestResult.ResultType.SUCCESS)
            def event2 = new TestCompleteEvent(123L, null)
    
            when:
            def result1 = serialize(event1)
            def result2 = serialize(event2)
    
            then:
            result1 instanceof TestCompleteEvent
            result1.endTime == 123L
            result1.resultType == TestResult.ResultType.SUCCESS
            result2 instanceof TestCompleteEvent
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/folders.cc

      const bool lhs_splat = const_oprs[0].isSplat();
      const bool rhs_splat = const_oprs[1].isSplat();
    
      auto lhs_vals = const_oprs[0].getValues<ResultType>();
      auto rhs_vals = const_oprs[1].getValues<ResultType>();
      const auto num_results = std::max(lhs_vals.size(), rhs_vals.size());
      std::vector<ResultType> res;
      res.reserve(num_results);
    
      auto lhs_start = lhs_vals.begin();
      auto rhs_start = rhs_vals.begin();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 06:11:55 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.cc

      auto matmul = rewriter.create<TFL::BatchMatMulOp>(
          loc, RankedTensorType::get(matmul_shape, result_type.getElementType()),
          lhs_flattend, rhs_flattend, /*adj_x*/ false_attr, /*adj_y*/ false_attr,
          /*asym_quant_input*/ false_attr);
      if (result_type.hasStaticShape()) {
        auto reshaped =
            rewriter.create<mhlo::ReshapeOp>(loc, result_type, matmul.getResult());
        return reshaped.getResult();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/nchw_convolution_to_nhwc.cc

            mlir::cast<TensorType>(input.getType()), kNchwToNhwcPermutation);
    
        auto input_transpose_op = rewriter.create<mlir::stablehlo::TransposeOp>(
            op.getLoc(), /*resultType0=*/new_input_tensor_type, /*operand=*/input,
            rewriter.getDenseI64ArrayAttr(kNchwToNhwcPermutation));
    
        // Transpose the filter tensor: [o, i, 0, 1] => [0, 1, i, o]
        Value filter = op->getOperand(1);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

      values.reserve(rank);
      for (int i = 0; i < rank; ++i) values.push_back(APInt(bitwidth, r1[i]));
      auto result_type = tensorflow::GetTypeFromTFTensorShape(
          {rank}, IntegerType::get(builder.getContext(), bitwidth));
      return builder.create<TF::ConstOp>(
          loc, DenseElementsAttr::get(result_type, values));
    }
    
    Value GetIndicesForElement(Value index, Value buffer, OpBuilder builder,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h

        // Verify that the first result type is same as the rest of the results.
        // We skip the comparison against itself.
        for (auto result_type : llvm::drop_begin(op->getResultTypes(), 1)) {
          if (!mlir::tf_type::HasCompatibleElementTypes(type, result_type))
            return op->emitOpError()
                   << "requires all return types to have compatible element types";
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

        auto result_type =
            mlir::dyn_cast_or_null<ShapedType>(transpose_op.getResult().getType());
        auto is_valid_move =
            llvm::all_of(op->getOperands(), [result_type](Value operand) -> bool {
              auto operand_type =
                  mlir::dyn_cast_or_null<ShapedType>(operand.getType());
              return result_type && operand_type && result_type.hasRank() &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  9. platforms/jvm/testing-junit-platform/src/main/java/org/gradle/api/internal/tasks/testing/junitplatform/JUnitPlatformTestExecutionListener.java

        }
    
        private TestCompleteEvent completeEvent() {
            return completeEvent(null);
        }
    
        private TestCompleteEvent completeEvent(@Nullable ResultType resultType) {
            return new TestCompleteEvent(clock.getCurrentTime(), resultType);
        }
    
        private boolean wasStarted(TestIdentifier testIdentifier) {
            return descriptorsByUniqueId.containsKey(testIdentifier.getUniqueId());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:58:25 UTC 2024
    - 15K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.cc

        return false;
      }
      Type lhs_type = op->getOperand(0).getType();
      Type rhs_type = op->getOperand(1).getType();
      Type result_type = op->getResult(0).getType();
      return !IsQuantizedTensorType(lhs_type) && IsQuantizedTensorType(rhs_type) &&
             !IsQuantizedTensorType(result_type);
    }
    
    absl::StatusOr<bool> IsDotGeneralFullyConnected(DotGeneralOp dot_general_op) {
      if (dot_general_op == nullptr)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top