Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for emitError (0.25 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

        if (target_opset_ == OpSet::UNIFORM_QUANTIZED) {
          ShapedType new_output_type = ConvertIntToQint(
              mlir::cast<ShapedType>(output_type), rewriter.getContext());
          if (!new_output_type) {
            q_op->emitError(
                "Failed to convert the type to the corresponding qtype.");
            return failure();
          }
          output_types = {new_output_type};
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

        if (op.intermediates.size() != 5) {
          auto err = errors::InvalidArgument(
              "operator has intermediate tensors but the number of them is not "
              "five.");
          return emitError(loc, err.ToString()), err;
        }
        // Create intermediate value
    
        const llvm::SmallVector<llvm::StringRef, 5> kIntermediateNames = {
            "input_to_input_intermediate", "input_to_forget_intermediate",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

          }
          Operation* symbol = symbol_table.lookup(caller.getF());
          if (symbol == nullptr) {
            func.emitError() << "Symbol not found in SymbolTable: "
                             << caller.getF();
            return LogicalResult::failure();
          }
          if (!llvm::isa<func::FuncOp>(symbol)) {
            func.emitError() << "Invalid callee: " << caller.getF();
            return LogicalResult::failure();
          }
          auto callee =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

        if (strided_slice_op.getEllipsisMask() != 0) {
          // Ellipsis mask should have been lowered-away prior to invoking this
          // function.
          op->emitError() << "encountered a logical error";
          return failure();
        }
    
        // Insert a new reshape op.
        Value original_input = strided_slice_op.getInput();
        RankedTensorType original_input_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc

                   ComposeUniformQuantizedDotGeneralOpWithTwoQuantizedActivations>(
          &ctx);
    
      if (failed(applyPatternsAndFoldGreedily(module_op, std::move(patterns)))) {
        module_op.emitError()
            << "Failed to compose stablehlo uniform quantized types.";
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

    LogicalResult CheckClusterResults(mlir::tf_device::ClusterOp cluster) {
      for (OpResult result : cluster.getResults()) {
        if (!tensorflow::TypeValidForXLA(result.getType())) {
          return cluster.emitError()
                 << "The ExtractHeadTailOutsideCompilation pass produced a Device "
                    "cluster with a result with a non-XLA type: "
                 << result.getType();
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

      // represented with TF IfOp and WhileOp operations. In this case, there should
      // be only one basic blocks in the MLIR representation.
      if (!llvm::hasSingleElement(function)) {
        return function.emitError()
               << "expect the function to have 1 block while it has "
               << function.getBlocks().size();
      }
    
      if (failed(TF::CleanupAndCanonicalizeForResourceOpLifting(function)))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

                                             this->default_to_single_batch_);
      if (!this->allow_tensorlist_pass_through_) {
        if (failed(applyPartialConversion(module, target, std::move(patterns)))) {
          module.emitError(
              "Lowering tensor list ops is failed. Please consider using Select TF "
              "ops and disabling `_experimental_lower_tensor_list_ops` flag in the "
              "TFLite converter object. For example, "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  9. pkg/volume/csi/csi_mounter_test.go

    			}
    
    			// Mounter.SetUp()
    			err = csiMounter.SetUp(volume.MounterArgs{})
    			if tc.setupShouldFail {
    				if err != nil {
    					if tc.exitError != nil && reflect.TypeOf(tc.exitError) != reflect.TypeOf(err) {
    						t.Fatalf("expected exitError type: %v got: %v (%v)", reflect.TypeOf(tc.exitError), reflect.TypeOf(err), err)
    					}
    					t.Log(err)
    					return
    				} else {
    					t.Error("test should fail, but no error occurred")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  10. pkg/volume/csi/csi_attacher_test.go

    					if err != nil {
    						t.Errorf("failed to modify permissions after test: %v", err)
    					}
    				}
    				if tc.exitError != nil && reflect.TypeOf(tc.exitError) != reflect.TypeOf(err) {
    					t.Fatalf("expected exitError type: %v got: %v (%v)", reflect.TypeOf(tc.exitError), reflect.TypeOf(err), err)
    				}
    				return
    			}
    			if tc.shouldFail {
    				t.Errorf("test should fail, but no error occurred")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
Back to top