Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 141 for created (0.24 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

    std::optional<Value> MaterializeIllegalCast(OpBuilder &builder, Type type,
                                                ValueRange inputs, Location loc) {
      return builder.create<UnrealizedConversionCastOp>(loc, type, inputs)
          ->getResult(0);
    }
    
    class StablehloToOdmlTypeConverter : public vhlo::VhloTypeConverter {
     public:
      StablehloToOdmlTypeConverter() : vhlo::VhloTypeConverter() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_dump_tensor_op.cc

                           const StringAttr &new_ref_func_name) {
      // Create PartitionedCallOp to the copied composite function. This
      // PartitionedCallOp does not have kQuantTraitAttrName, and therefore won't
      // get quantized.
      auto new_call_op = rewriter.create<TF::PartitionedCallOp>(
          call_op.getLoc(), call_op.getResultTypes(), call_op.getOperands(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 22:55:22 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

      if (!tensor_attr_or.ok()) return nullptr;
      return tensor_attr_or.value();
    }
    
    // Creates a constant op that holds 'tensor_elements'.
    TF::ConstOp GetConstOpFromElementsAttr(ElementsAttr tensor_elements,
                                           OpBuilder builder, Location loc) {
      return builder.create<TF::ConstOp>(loc, tensor_elements);
    }
    
    // Returns ElementsAttr which has the value held by 'resource_tensor'.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

    }
    
    FunctionDefLibrary CreateFunctionDefLibWithConstFunction(const string& name) {
      FunctionDefLibrary fdef_lib;
      FunctionDef func = FunctionDefHelper::Create(
          /*function_name=*/name, /*in_def=*/{}, /*out_def=*/{"out: float"},
          /*attr_def*/
          {}, /*node_def=*/{FunctionDefHelper::Const("one", 1.0f)},
          /*ret_def=*/{{"out", "out:output:0"}});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc

                                                        bcast_dims);
        } else {
          return rewriter.notifyMatchFailure(bcast_op, "Unsupported element type.");
        }
        Value new_const_op =
            rewriter.create<mhlo::ConstantOp>(bcast_op.getLoc(), result);
        rewriter.replaceOp(bcast_op, {new_const_op});
        return success();
      }
    };
    
    using FoldBroadcastInDimBeforeMulOp =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/converter_gen.cc

      assert(op_name.starts_with("TFL_") && "unexpected op prefix");
      assert(op_name.ends_with("Op") && "unexpected op suffix");
    
      // E.g., AddOp -> CreateAddOperator
      std::ostringstream oss;
      oss << "Create" << op_name.drop_front(4).str() << "erator";
      return oss.str();
    }
    
    static inline bool IsLstmOp(const StringRef op_name) {
      return op_name.take_back(6) == "LSTMOp";
    }
    
    static int HasOptions(const Record &def) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 23.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc

          return rewriter.notifyMatchFailure(
              contraction,
              "fused operation must be nested inside a function, If or While");
        }
    
        // If the contraction is used in multiple places, fusing it will only create
        // more contraction nodes, which is slower.
        if (!contraction.getResult().hasOneUse())
          return rewriter.notifyMatchFailure(contraction,
                                             "result is used by multiple ops");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  8. 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)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

            mlir::dyn_cast<ShapedType>(v.getType()).getShape()[rhs_batch_dim];
      }
    
      auto lhs_new_concat = rewriter.create<mhlo::ConcatenateOp>(
          concat->getLoc(), concat.getType().clone(lhs_new_concat_shape),
          all_dot_lhs, rewriter.getI64IntegerAttr(lhs_batch_dim));
      auto rhs_new_concat = rewriter.create<mhlo::ConcatenateOp>(
          concat->getLoc(), concat.getType().clone(rhs_new_concat_shape),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  10. 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)
Back to top