UNPKG

1.66 kBSource Map (JSON)View Raw
1{"version":3,"file":"tensor_types.js","sourceRoot":"","sources":["../src/tensor_types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG","sourcesContent":["/**\n * @license\n * Copyright 2018 Google LLC. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * =============================================================================\n */\n\nimport {Tensor, Variable} from './tensor';\n\n/** @docalias {[name: string]: Tensor} */\nexport type NamedTensorMap = {\n [name: string]: Tensor;\n};\n\nexport interface NamedTensor {\n name: string;\n tensor: Tensor;\n}\n\nexport type NamedVariableMap = {\n [name: string]: Variable;\n};\n\nexport type GradSaveFunc = (save: Tensor[]) => void;\n\n/**\n * @docalias void|number|string|TypedArray|Tensor|Tensor[]|{[key:\n * string]:Tensor|number|string}\n */\nexport type TensorContainer =\n void|Tensor|string|number|boolean|TensorContainerObject|\n TensorContainerArray|Float32Array|Int32Array|Uint8Array;\nexport interface TensorContainerObject {\n [x: string]: TensorContainer;\n}\nexport interface TensorContainerArray extends Array<TensorContainer> {}\n"]}
\No newline at end of file