Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 174 for signalPassFailure (0.33 sec)

  1. tensorflow/compiler/mlir/tfr/passes/decompose.cc

        // Remove the call_op to finish the op expansion.
        call_op.erase();
        changed |= true;
        return WalkResult::advance();
      });
    
      if (walk_result.wasInterrupted()) {
        signalPassFailure();
        return failure();
      }
    
      // If `changed` is false, it is considered as a failure, so the recursive
      // rewrite will stop.
      return success(changed);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

      // to make things more modular.
      if (failed(ValidateOp(func))) {
        func.emitError() << "tfl-prepare-tf pass failed.";
        signalPassFailure();
        return;
      }
    
      if (failed(ConvertTf2XlaOps(func, ctx))) {
        signalPassFailure();
        return;
      }
    
      // This pattern will try to identify and optimize for dilated convolution.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc

        if (quant_specs_.inference_type == tensorflow::DT_INVALID) {
          func.emitError() << "prepare-quantize pass failed: unsupported "
                              "inference type specification";
          signalPassFailure();
          return;
        }
        quant_specs_.post_training_quantization = post_training_quantize_;
        quant_specs_.legacy_float_scale = legacy_float_scale_;
        quant_specs_.disable_set_input_nodes_quantization_params =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

                            {producer, min_consumer, bad_consumers})));
        break;
      }
    
      if (failed(applyFullConversion(module.getOperation(), target, finalPatterns)))
        signalPassFailure();
    
      // The uses of arg control dependency has been dropped. We can safely remove
      // the block argument here.
      module.walk([&](tf_executor::GraphOp graph) {
        graph.getBody().front().eraseArguments(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

      addPatterns(context, stage1Patterns, this->preserve_assert_op_);
    
      FrozenRewritePatternSet stage1FrozenPatterns(std::move(stage1Patterns));
      if (!applyPatterns(func, target, stage1FrozenPatterns)) {
        return signalPassFailure();
      }
      // Explict BroadcastTo addition for left-over broadcast-able ops.
      // The following pattern matchings should be done after the other legalization
      // rules in order not to add unnecessary BroadcastTo ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

    void LegalizeTFCommunication::runOnOperation() {
      auto module = getOperation();
      llvm::SmallDenseMap<StringRef, FuncToRewrite> funcs_to_rewrite;
      if (failed(GetFunctionsToRewrite(module, funcs_to_rewrite)))
        return signalPassFailure();
    
      OpBuilder builder(&getContext());
      for (const auto& func_and_name : funcs_to_rewrite) {
        const auto& func_to_rewrite = func_and_name.getSecond();
        func::FuncOp func = func_to_rewrite.original;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_validate_inputs.cc

        if (IsTpuRegularOp(op)) {
          success &= IsValidMAXIMALSharding(op, metadata_map);
          success &= IsValidShardingTupleForArity(op);
        }
        success &= !HasSingleCoreTpu(op);
        if (!success) {
          signalPassFailure();
        }
      });
    }
    
    }  // anonymous namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateTPUValidateInputsPass() {
      return std::make_unique<TPUValidateInputsPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 06:51:01 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

      RuntimeDevices devices;
      if (failed(::tensorflow::GetDevicesFromOp(func->getParentOfType<ModuleOp>(),
                                                &devices)))
        return signalPassFailure();
    
      // If there is no runtime device information and data format is not explicitly
      // forced, there is nothing to do.
      if (devices.NumDevices() == 0 && force_data_format_.empty()) return;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

      if (!shouldKeepUnusedQdqPattern()) {
        RewritePatternSet patterns_2(&getContext());
        patterns_2.add<RemoveUnusedQdqPattern>(ctx);
        if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns_2)))) {
          signalPassFailure();
        }
      }
    }
    }  // namespace
    
    // Creates an instance of the TensorFlow dialect Quantize pass.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass() {
      QuantizationSpecs quant_specs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

                  execute_launch, resource_analysis_info,
                  /*check_device=*/!parent_is_replicate,
                  /*check_same_region=*/parent_is_replicate, &builder))) {
            signalPassFailure();
            return;
          }
        }
      });
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateTPUMergeVariablesWithExecutePass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
Back to top