| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 90bbbdc commit 3c799b4
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,8 +35,21 @@ namespace tensorflow { | |||
| 35 | 35 | namespace java { | |
| 36 | 36 | namespace { | |
| 37 | 37 | ||
| 38 | - const char* kLicenseSnippet = | ||
| 39 | - "tensorflow/java/src/gen/resources/license.java.snippet"; | ||
| 38 | + const char* kLicense = | ||
| 39 | + "/* Copyright 2018 The TensorFlow Authors. All Rights Reserved.\n" | ||
| 40 | + "\n" | ||
| 41 | + "Licensed under the Apache License, Version 2.0 (the \"License\");\n" | ||
| 42 | + "you may not use this file except in compliance with the License.\n" | ||
| 43 | + "You may obtain a copy of the License at\n" | ||
| 44 | + "\n" | ||
| 45 | + " http://www.apache.org/licenses/LICENSE-2.0\n" | ||
| 46 | + "\n" | ||
| 47 | + "Unless required by applicable law or agreed to in writing, software\n" | ||
| 48 | + "distributed under the License is distributed on an \"AS IS\" BASIS,\n" | ||
| 49 | + "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n" | ||
| 50 | + "See the License for the specific language governing permissions and\n" | ||
| 51 | + "limitations under the License.\n" | ||
| 52 | + "=======================================================================*/\n"; | ||
| 40 | 53 | ||
| 41 | 54 | // There is three different modes to render an op class, depending on the | |
| 42 | 55 | // number and type of outputs it has: | |
@@ -401,7 +414,7 @@ void GenerateOp(const OpSpec& op, const EndpointSpec& endpoint, | |||
| 401 | 414 | SourceFileWriter writer(op_file.get()); | |
| 402 | 415 | std::list<Type> dependencies; | |
| 403 | 416 | CollectOpDependencies(op, mode, &dependencies); | |
| 404 | - writer.WriteFromFile(kLicenseSnippet) | ||
| 417 | + writer.Write(kLicense) | ||
| 405 | 418 | .EndLine() | |
| 406 | 419 | .BeginType(op_class, PUBLIC|FINAL, &dependencies, &op_javadoc); | |
| 407 | 420 | if (!op.optional_attributes().empty()) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments