Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 216 for emitError (0.16 sec)

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

      MLIRContext& ctx = getContext();
    
      RewritePatternSet patterns(&ctx);
      patterns.add<FoldTransposedConstantOp>(&ctx);
      if (failed(applyPatternsAndFoldGreedily(func_op, std::move(patterns)))) {
        func_op.emitError("Failed to fold constant->transpose pattern.");
        signalPassFailure();
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions_drq.cc

      FrozenRewritePatternSet frozen_patterns(std::move(patterns));
      for (auto func : module.getOps<func::FuncOp>()) {
        if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) {
          func.emitError()
              << "quant-lift-quantizable-spots-as-functions-drq failed.";
          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
    - 8.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/update_control_dependencies.cc

        // island wraps a single op.
        Operation& wrapped_op = island.GetBody().front();
        TF::ParallelExecutionIdPairs id_pairs;
        if (failed(TF::ParseParallelExecutionIds(&wrapped_op, id_pairs))) {
          wrapped_op.emitError()
              << "Malformed " << TF::kParallelExecAnnotation << " attribute";
          return failure();
        }
        if (id_pairs.empty()) continue;
    
        TF::ParallelIdsMap& ids_map = op_to_parallel_ids_map[island];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 30 07:53:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc

      // parallel.
      for (auto func : module_op.getOps<func::FuncOp>()) {
        if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) {
          func.emitError() << "quant-quantize-weights failed.";
          signalPassFailure();
        }
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateQuantizeWeightsPass(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc

        if (exportedNames.empty()) {
          name = "global_ml_" + globalTensor.getSymName().str();
        } else if (exportedNames.size() == 1) {
          name = exportedNames[0].str();
        } else {
          return globalTensor.emitError()
                 << "Multiple exported names for global tensor not supported yet";
        }
        Attribute initial_value;
        if (globalTensor.getValue()) {
          initial_value = *globalTensor.getValue();
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

          }
          if (!common_arg_index.has_value()) {
            common_arg_index = block_arg.getArgNumber();
          } else if (common_arg_index.value() != block_arg.getArgNumber()) {
            return op->emitError("result #")
                   << result_idx
                   << " is not tied to the same argument across all branches";
          }
        }
    
        if (io_match && result_idx != common_arg_index.value()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc

      // Iterate over the sorted list of functions to keep order deterministic.
      for (func::FuncOp func : GetSortedFunctions(module_op)) {
        if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) {
          func.emitError()
              << "quant-stablehlo-lift-quantizable-spots-as-functions failed.";
          signalPassFailure();
        }
      }
    
      // Remove all attr_map attributes.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc

      std::string bytecode;
      llvm::raw_string_ostream os(bytecode);
      if (mlir::failed(stablehlo::serializePortableArtifact(
              stablehlo_module, stablehlo::getCurrentVersion(), os))) {
        return stablehlo_module.emitError()
               << "failed to serialize the pruned stablehlo module";
      }
      return bytecode;
    }
    
    // Serializes the stablehlo functions called by XlaCallModuleOp to bytecode
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.cc

        return IsControlFlowV1Op(op) ? mlir::WalkResult::interrupt()
                                     : mlir::WalkResult::advance();
      });
      if (result.wasInterrupted()) {
        mlir::TFL::AttachErrorCode(
            module.emitError(
                "The graph has Control Flow V1 ops. TFLite converter doesn't "
                "support Control Flow V1 ops. Consider using Control Flow V2 ops "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc

            auto error_msg =
                "'main' FuncOp in XlaCallModuleOp missing or has visibility other "
                "than 'public'";
            if (main_func_op) {
              main_func_op->emitError(error_msg);
            }
            return rewriter.notifyMatchFailure(op, error_msg);
          }
        }
        Builder stablehlo_builder(stablehlo_module_op.get().getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 25 09:43:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top