Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 208 for emitError (0.15 sec)

  1. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.cc

      if (parser.parseKeyword(&keyword)) return Type();
    
      if (keyword == "tf_tensor") return TFTensorType::get(getContext());
      if (keyword == "tf_allocator") return TFAllocatorType::get(getContext());
    
      parser.emitError(parser.getNameLoc(), "unknown type: ") << keyword;
      return Type();
    }
    
    /// Print a type registered to this dialect.
    void FallbackDialect::printType(Type type, DialectAsmPrinter &os) const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/visitor.cc

        auto func =
            llvm::dyn_cast_or_null<func::FuncOp>(symbol_table.lookupSymbolIn(
                module, builder.getStringAttr(function_name)));
        if (func == nullptr) {
          return module.emitError()
                 << "Cannot find function '" << function_name << "'";
        }
    
        const WalkResult result = WalkReachableFunctions(
            func,
            [&](func::FuncOp f) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 03:46:51 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/replica_id_to_device_ordinal.cc

    }
    
    void ReplicaIDToDeviceOrdinalPass::runOnOperation() {
      const Dialect* tf_dialect = getContext().getLoadedDialect("tf");
      if (!tf_dialect) {
        getOperation().emitError() << "'tf' dialect is not registered";
        return signalPassFailure();
      }
    
      // Get the number of devices per host.
      int device_num = 0;
      mlir::TF::RuntimeDevices devices;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

                                        BlockArgument& block_arg) {
      // check that inputs length is same as num_replicas.
      if (inputs.size() != replicate.getN()) {
        return replicate.emitError()
               << "Expected numper of inputs (" << inputs.size()
               << ") to append to replicate to be num_replicas ("
               << replicate.getN() << ")";
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.cc

        if (!sym) continue;
        auto callee = symtab.lookup<func::FuncOp>(sym.getRootReference());
        if (!callee) {
          // This is not expected to happen in practice.
          return op->emitError()
                 << "Cannot find function " << sym.getRootReference();
        }
        callees.push_back(callee);
      }
      return success();
    }
    
    bool HasSingleBlock(func::FuncOp func) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. 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)
  7. tensorflow/compiler/mlir/lite/metrics/error_collector_inst_test.cc

      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(MockSuccessPass)
    
      explicit MockSuccessPass() = default;
    
     private:
      void runOnOperation() override {
        getOperation().walk([](Operation* nestedOp) {
          nestedOp->emitError()
              << "Error at " << nestedOp->getName().getStringRef().str() << " op";
        });
      };
    };
    
    // MockFailurePass reports errors and fails.
    class MockFailurePass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc

    // 2. The wrapped launch op should be placed on CPU.
    LogicalResult CheckOpIsValid(Operation* op) {
      auto launch_op = llvm::dyn_cast<tf_device::LaunchOp>(op->getParentOp());
      if (!launch_op) {
        op->emitError() << "TPUCopyWithDynamicShapeOp is not in a launch";
      }
      std::string device_str = launch_op.getDeviceAttr().getValue().str();
      std::string cpu0_device;
      if (failed(tensorflow::GetNonReplicatedCPU0(op, &cpu0_device)))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/python/tfr_wrapper.cc

        if (!module) {
          return false;
        }
    
        mlir::SourceMgrDiagnosticHandler sourceMgrHandler(source_mgr, &ctx);
        if (failed(mlir::verify(*module))) {
          module->emitError("Invalid MLIR module: failed verification.");
          return false;
        }
        return true;
      });
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 13 06:54:12 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

        if (!replication_info_attr)
          return metadata_op.emitError() << kBadReplicateInfoAttrMsg;
    
        auto replication_info_attr_str =
            mlir::dyn_cast<StringAttr>(replication_info_attr);
        if (!replication_info_attr_str ||
            replication_info_attr_str.getValue().empty())
          return metadata_op.emitError() << kBadReplicateInfoAttrMsg;
    
        // Remove `name` attribute.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
Back to top