Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 182 for created (0.08 sec)

  1. tensorflow/compiler/mlir/python/mlir.cc

      std::string error;
      std::unique_ptr<llvm::ToolOutputFile> outputFile =
          mlir::openOutputFile(filename, &error);
      if (!error.empty()) {
        TF_SetStatus(status, TF_INVALID_ARGUMENT,
                     ("Unable to create output file " + error).c_str());
        return;
      }
      outputFile->keep();
      if (failed(mlir::writeBytecodeToFile(*module, outputFile->os(),
                                           writer_config))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc

            }
          }
    
          // Replace the arg with a tf.Const op in the function body.
          builder.setInsertionPointToStart(&func.getBody().front());
          auto const_op = builder.create<TF::ConstOp>(global_tensor.getLoc(),
                                                      *global_tensor.getValue());
          args_to_erase.set(val.getArgNumber());
          for (auto read_op : read_variable_ops_to_erase) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/aot/codegen.cc

                         const CompileResult& compile_result, string* methods) {
      const int num_args = ps.parameters_size();
      // feed_size() + variable_size() is the maximum number of args as an
      // implementation may not create an argument for an unused variable.
      if (config.feed_size() + config.variable_size() < num_args) {
        return errors::InvalidArgument(
            "mismatch between feed_size(", config.feed_size(), ")+variable_size(",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 01:20:01 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph_test.cc

      CellReader<Histogram> compilation_time(kCompilationTimeStreamzName);
      CellReader<int64_t> compilation_status(kCompilationStatusStreamzName);
    
      FunctionDef empty_function =
          tensorflow::FunctionDefHelper::Create("empty", {}, {}, {}, {}, {});
    
      tensorflow::FunctionDefLibrary fdef;
      *(fdef.add_function()) = empty_function;
      tensorflow::FunctionLibraryDefinition flib_def(
          tensorflow::OpRegistry::Global(), fdef);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:08:57 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc

          };
    
          // Insert custom aggregation op between operand and operator.
          rewriter.setInsertionPointAfterValue(value);
          Operation *aggregator_op = rewriter.create<TF::CustomAggregatorOp>(
              op->getLoc(), output_types, value, attributes);
    
          Value aggregator_op_result = aggregator_op->getOpResult(0);
          value.replaceAllUsesExcept(aggregator_op_result, aggregator_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc

      }
    
      // Rewrite return if there are variable writes.
      const int return_operands_size = return_operands.size();
      if (return_operands_size > num_results_before) {
        builder.create<func::ReturnOp>(return_op.getLoc(), return_operands);
        return_op.erase();
      }
    
      // Update function argument and result types with new resource subtypes.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

        Value value = effect.getValue();
        found_any_effect = true;
    
        // We only collect value-based side effects here for which we can use
        // resource alias analysis. Other side effects are treated as op-based
        // side effects.
        if (!ShouldUseResourceAliasAnalysis(effect)) continue;
        if (value) processed_values.insert(value);
    
        TypeID type_id = effect.getResource()->getResourceID();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  8. tensorflow/cc/framework/scope.cc

    }
    
    CompositeOpScopes Scope::GetCompositeOpScopes(
        const string& composite_op_name) const {
      if (impl()->op_name_.empty() && composite_op_name.empty()) {
        UpdateStatus(errors::InvalidArgument(
            "Cannot create composite op scopes with empty name"));
        return {*this, *this};
      }
      if (!impl()->single_use_scope()) {
        Scope child = NewSubScope(impl()->op_name_.empty() ? composite_op_name
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

        if (can_eliminate(result)) continue;
        new_result_types.push_back(result.getType());
      }
    
      // Rebuild the new operation with lesser number of results.
      OpBuilder builder(op);
      Operation *new_op = Operation::create(
          op->getLoc(), op->getName(), new_result_types, op->getOperands(),
          op->getAttrs(), op->getPropertiesStorage(), op->getSuccessors(),
          op->getNumRegions());
      builder.insert(new_op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tf_tfl_passes.cc

    #include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h"
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_passes.h"
    #include "xla/mlir_hlo/mhlo/transforms/passes.h"
    
    namespace mlir {
    /// Create a pass to convert from the TFExecutor to the TF control dialect.
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateTFExecutorToControlDialectConversion();
    }  // namespace mlir
    
    namespace tensorflow {
    namespace {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top